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?
this sounds it could work. I'll give it a try. I think I have to enhance it because of deletes.
Thank you!