on 06-21-2016 12:29 PM
Hello BRFplus gurus,
Is it possible to have a rollback step when using BRFplus APIs? Let assume I want to populate 2 dependent decision tables A and B. The order is insert records into A first and save. Then insert records into B (if insert A was successful). However, if insert B fails a rollback for the decision table A should occur. I understand that it is possible to discard changes before the save method call, though.
Thanks.
Hi,
you are right as soon as you save a change the data is written to the DB. There is no API method to do a rollback or to save something as draft.
If you strictly use the API you can rollback the changes via ROLLBACK WORK (but be aware of implicit commits)
BR
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.