Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strategies for reverting data
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01278863
Message ID:
01278957
Vues:
22
>>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).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform