Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving a grandchild piece by piece.
Message
De
15/01/2009 14:34:34
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01373682
Message ID:
01374168
Vues:
11
>>>>>I don't understand the problem exactly here. Why you can not have 3 related biz objects with appropriate properties for the child objects (Save on Save parent, etc.) ?
>>>>
>>>>I do have three business objects, and that's how they're set. If I requery() when changing pages to get different grandchild sets, any changes to a previous page(and previous view) are lost. How can I set it to edit different subsets, and only use one save/cancel?
>>>
>>>Don't requery. Do save on a parent first, then requery() on the parent. Save on the parent should save children also (if properly set up) and requery() on the parent should requery all too.
>>
>>While that works, it makes it impossible to revert those changes - a feature I need.
>
>Can you again define your case, please?

I have a form with a parent-child-grandparent relation. Only one parent record, as this is the edit result of a find operation. They can change between child records, and are prompted to save/cancel when switching records. All this works just fine.

There is a pageframe on the form, each page has its own parameterized view of grandchild records. I want to be able to switch pages and make changes on all pages without having to save/cancel changes when switching pages.

How can/should I do that?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform