Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
>>>>In form1 user is presented with a list of dates worked. He can chose to add a new date or edit an existing date at which point form2 (or page2) appears allowing entering values for that date. When done with form2 user can choose to save or cancel changes made. This is not a problem. It can be handled by buffering data tables and either commiting or rolling back.
>>>>
>>>>Problem is, I would like to also allow user to change many dates in one session and then either commit or cancel changes made to all dates including the ones just added.
>>>>
>>>>I believe this can be handled by transactions within a transaction but I don;t know how to do it. I am using Codemine framework. All help is appreciated.
>>>>
>>>>TIA,
>>>>
>>>>Alex
>>>
>>>This also can be done with TABLE buffering :-)
>>>Just the final TABLEUPDATE() or TABLEREVERT() should be changed to commit all records.
>>
>>Thank you Borislav.
>>
>>All tables use table buffering. I did not mention that as user edits in form2, related records in other tables are changed and sometimes even other records in main table are affected because of crazy labor rules. For this reason I need to go back to the original question of how to do transactions within a transaction.
>>
>>In an older and related application designed during FoxPro DOS days we made a copy of memory variables and of some tables upon entering form2 an then restored them if user backed out, but I don;t want to do it that way in the new application.
>>
>>Thanks for the help,
>>
>>Alex
>
>You can do nested transactions.
Thanks Naomi.
Would you suggest starting a new transaction as soon as entering form2 which is commited or rolled back according to user response?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement