Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parent/Child objects
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00096601
Message ID:
00096921
Vues:
14
Paul,

>I'm putting together a form (which will probably be based on CBizObjMaintenanceForm) that will contain a number of container objects that have their own data environment. From what I understand from the manual, and answers to some of my previous questions, this form will have one parent object and several child objects (my containers). I'd like to have my parent object, when the user "saves" their changes, save only the keys to the data in the containers in the parent data environment. The container objects, of course, will save any information changed in any of their controls into their respective D.E. I'm not quite sure how/what I need to do to get my parent object to do this. My table/view of the parent D.E. is filled with mostly foreign keys.>

If I understand you correctly, you are asking how to save the foreign keys that point to your child business objects into your parent business object's InitialSelectedAlias...

If this is what you're asking, you can place code in the parent business object's PreSaveHook() that REPLACEs the foreign key fields with the correct values.

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