I have appointments displayed in the mobile version. A user can view the appointment, enter the results of their appointments and other details. Once a user has entered all details there is a process called 'complete' that can be run that basically changes the appointment end time to the current time and marks the appointment as complete. All good so far.
The problem is this: If the user enters their results and then runs the 'complete' process, the process is run before the form is saved. Therefore the results get lost and the user is asked if she would 'like to save the changes made' after the process has finished. When yes is clicked an error is displayed stating 'Appointment has been changed by another user. Please get the latest version of the data and try the operation again.' and all changes are lost.
In the normal version of the app when a process is run the user gets asked to save the data BEFORE the process runs. In the mobile version the user is asked AFTER the process runs. Is this a bug or am I missing something.
Thanks