Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strategies for reverting data
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01278863
Message ID:
01278957
Views:
21
>>I select a child record (order detail line 1) in a grid on the parent form. Then I click edit. The child edit screen opens. I change a field called partnum from "11X" to "12X". I click "save" on child form. I have now returned to parent form. Then I realize I want to change order detail line 1 again. So I edit the same record. Now I change partnum to "13X". Then I decide not to change the record and I want partnum left as "12X" so I click "cancel" on the child form. So what value do you expect partnum to be and how does it get the value? I cannot tablerevert because that will change partnum back to "11X".
>
>What does you Save button do on the Child form? Does it tableupdate the child or simply closes the child form? If the former, than your Cancel button would work just fine in your scenario.

The save button on the child would just close the form (and run the record validation). I do not want to tableupdate the child. That is handled when save is clicked on the parent form. If cancel is clicked on the parent I expect the changes on both the parent and child to be reverted (which is easy to do with tablerevert).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform