Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Playing With Codebook: Some Simple Stuff
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Playing With Codebook: Some Simple Stuff
Divers
Thread ID:
00059273
Message ID:
00059273
Vues:
68
Just playing around with Codebook once again and was wondering about some simple stuff. I have two views, consigne and address. Consigne is a view without any view parameters. Address is a view with one view parameter, vp_key, which relates back to co_key in consigne. Thus, consigne has a one-to-many relationship with address.

I've created two business objects, bizconsigne and bizaddress. Bizconsigne is a onetomanybizobj and bizaddress is a bizobj which is placed on bizconsigne. Now, the problem is this: When I instanciate the form this bizobj is on and requery, prev, next, top, etc., the VFP view parameter request box for address always pops up. Obviously this is because vp_key hasn't been defined anywhere. I could put custom code in the Requery() method to assign vp_key before the child is requiried, but if I do that I'll have to put custom code in every navigation method method. Not a very time saving approach.

Is there a better approach to this whereby vp_key can be linked to co_key so vp_key will not have to be assigned each and every time?

Michael G. Emmons
memmons@nc.rr.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform