Hi Kasper,
So the issue is concurrency of the update?
Person 1 opens form and see's data
Person 1 changes data
Person 2 opens form and see's original data
Person 1 saves data
Person 2 changes data
Person 2 overwrites Person 1's updated data
I would have to question why you data is architected to allow this to happen, assuming that Person 1 and Person 2 need to change different data that is, but aside from that, you are on the correct track.... Prior to every submit, you would have secondary data connection that queried the original data souce, then determins if there are any changes to the underlying data, copy those changes into the current form and then submit the current form. So the workflow steps become:
Person 1 opens form and see's data
Person 1 changes data
Person 2 opens form and see's original data
Person 1 queries secondary data source to original data
Person 1 determines is there are any updates since retrieving the original data and makes appropriate modifications
Person 1 saves data
Person 2 changes data
Person 2 queries secondary data source to original data
Person 2 determines is there are any updates since retrieving the original data and makes appropriate modifications
Person 2 saves data
Hopw this helps
Cheers