You need to sign in to do that
Don't have an account?

How to impose concurrent update control in controller extension?
Hi,
When two users use the standard Edit page to edit the same record of a custom object at the same time, Force.com does control the concurrent update properly and display the error message as below when the second user tries to save his changes:Your Changes Cannot Be Saved |
The record you were editing was modified by Apple88 during your edit session. Please re-display the record before editing again. |
I'd assume that the code that is backing the standard pages is checking that the page has not been updated before applying the changes, so you just need to add something similar.
It should just be a case of capturing the last modified date when the record is retrieved for editing and when a user clicks save, execute a soql query to see if the database has a later version of the record. If it does, you can then block the save.