- René Ullrich
- PowerBuilder
- Friday, 31 August 2018 05:58 AM UTC
Hi,
I have a datawindow where the user can insert, update and delete rows.
My problem: If the user clicks the save button I won't use the update function because it updates all the changes in a single transaction. I need to update the datawindow row by row so each row is updated in a single transaction.
Background: On update of a single row I have to call external resources (a web service) the will update an external system. I have no control over this external update and it is not transactional.
So my idea:
FOR all rows to insert update or delete
do the datawindow update for the single row
do the external update
IF external update was ok THEN
COMMIT
Resetupdate the single datawindow row
ELSE
ROLLBACK
// let the row unupdated
END IF
NEXT row for update
Any idea how to do that in a simple way?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.