Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving a grandchild piece by piece.
Message
 
 
À
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:
01374264
Vues:
22
>>>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?

Do you want to be able to revert child's changes without affecting the parent and other biz objects?

If yes, you woud need to set your child's biz object to be the primary when you activate the page and reset it back in deactivate. You may also temporarily disable relations (remove references to the parent). Something along these lines should work, I hope you would be able to figure out the exact implementation details.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform