I have two requirements
- Before editing a record make sure no one else is editing it
- Refresh the data for that record before editing
I have added a custom button instead of the standard edit that will check if anyone else is editing it and pull the new data. I go and update all the columns with the new values but my problem is if the user clicks cancel it reverts back to the old values. I have tried setting the dirty flag to false but that does not seem to have any affect.