Hello everyone,
I am trying to find the best approach to avoid conflict in editing BOs.
Until now I used for many BO the option "auto-save". I find it useful especially for text field with a long text (minutes of meeting, reports, etc..).
The problem is that in the scenario where two users are opening it and editing, the one that edit later will be propted that the BO has been changes ant therefore cannot be changes, and since is in auto-saving cannot close anymore the BO form unless refresh the whole app. either case he will lose his editing.
In my view, as different approach, I would like to implement a edit button on top of the form, in order to:
- when you open the BO is always in view mode only
- if you click EDIT button then the fields are editable (possibly also with auto-save, but not always)
- if another user has clicked the EDIT button then the edit button is not active for other users
- once the first user save the edit button is available to other (but also the form shall be refreshed)
- finally in case of interruption from the first user, the edito button shall be left unlock after a certain period of time
in order to do that, I would need at least some kind a context general information that someoneelse has opened the BO. Does this information exsists?
or can you reccomend different approaches?
Thanks
Sergio