Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Business Objects for Lookup Lists?
Message
De
19/06/2003 10:06:02
 
 
À
19/06/2003 06:27:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00801655
Message ID:
00801743
Vues:
11
>I know this is more of a business-logic question, but I was just wandering how anyone represents a lookup list, the lists are all held in seperate tables and usually have the odd difference.
>
>Do you just create a BO for each lookup list?
>
>I know this isn't a straight-forward answer, but an example would be lovely.

My overloaded Lookuplist table has three fields, LookupID(I Primary Key), LookupType(C10), and Entry(C20). A local view of it has a LookupType parameter, to grab whichever group is needed. A custom Combobox uses the application object's Lookup bizobj (or instantiates one), requeries the view for combobox.lookuptype, and stores the results (Entry, LookupID) to the combobox's aElements array. Any other table needing a lookup value has a namedID integer that matches the LookupID.

Hope it helps, ask if there's anything that needs more explanation.

Chris.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform