Hi, i have a UI5 application with JS views and I need to implement locking so that when a form is being edited by person, then no one else can open that form and start editing it parallel.
When a user enters a form it sets the field Locked = 'X' in the DB, when user leavers the form the it is set to Locked = '-'.
Now I want to set the Locked field to '-' when user either closed the browser or the application without leaving the form correctly. Can anyone suggest how to do that?