Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User-defined grid's layout
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01153465
Message ID:
01153520
Vues:
15
Hello Naomi,

You may want to re-read my grids article from the second issue of the UT Magazine. I think those techniques will work well in a situation like this. You can handle the changing data from the parent with a BINDEVENTS call to the child.

Bob

>Hi everybody,
>
>I'd like to get your ideas in addition to mine for the following problem.
>
>I have a TQM screen which displays certain fields in a grid. The cursor for the grid is created in the class code, then I'm running select to get the data, then append data to my cursor. So far, so good.
>
>Now we want to display a different field depending on user's preference. E.g. currently I display Status field, but we may want to display Insurance Carrier for some users instead of Status. The select statement will have to change (field name and join condition).
>
>I'm thinking how should I attack this problem.
>
>Here are my ideas:
>1) Add a new memo field to Profile table and put there
>field_name|Join expression
>
>2) Add a new field cExtra_Field to my cursor (assuming I always want to have character extra field - what if I want a field of different type?) and use this name in my select.
>
>This would work, but there is one catch. This form calls another form, which may change information in my TQM form. Currently the changes are reflected using subject-observer mechanism from MereMortals framework. I'm not sure how to generalize this part.
>
>Anyway, what do you think? How would you approach this problem?
>
>Thanks for your ideas in advance.
'If the people lead, the leaders will follow'
'War does not determine who is RIGHT, just who is LEFT'
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform