Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handling ComboBoxes
Message
 
À
12/07/1999 11:23:01
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00240227
Message ID:
00241314
Vues:
22
Rex,

>What is the preferred way of handling a lookup type combo box? My choices are to create business objects for each and create a one to many relationship or to add the cursor to the data environment and requery comboboxes in the PostRequeryHook of the primary bizobj.
>
>I know there is no "right" way, but what way do you use and why?

If you add a cursor to a business object's DE, it goes wherever the business objects goes. If the business object truly needs this "lookup" cursor wherever it goes, this is a good thing. If it only needs the lookup cursor in the context of a particular form, then it's extra baggage and you should consider using a separate business object to load the cursor for the combobox.

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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform