Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh or Requery?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00101032
Message ID:
00101687
Vues:
18
Enrique,

> The two combos are in same Page2, of the maintform's pageframe. But Why its important? (I read it but isn't me clear)>

If the comboboxes are on the same page, you need to refresh the second combobox when the user selects a different item in the first combobox.

> and each combo is in diferente bizobj. Note BizObj Main of my form is other, specified in Page1.>

If you have set up ComboBox2 as a "foreign key" combobox as described in the Mere Mortals Developer's Guide, you can do the following:

1. At design time, in the ComboBox2's business object PostInitHook() you can set its aViewParameters array as follows (see the Developer's Guide for details):

DIMENSION This.aViewParameters[1, 2]
This.aViewParameters[1,VPARM_NAME] = ''
This.aViewParameters[1,VPARM_EXPR] = ''

NOTE: In the above sample replace the text that is contained within brackets <> with code that is specific to your form.

2. In the Requery() of ComboBox2's business object, don't forget to issue a Requery() to ComboBox2!

3. In ComboBox1's InteractiveChange() event, issue a Requery() to ComboBox2's business object.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform