How to lock a document from editing when a user is editing it from web browser?
Subject: Document Loking in web application.
Create a new document (Lock) with a couple fields like UNID of the main document, user who is editing the main document, start time of editing.
On the WebQueryOpen event of main document, call an agent to create the Lock document.
On WebQueryClose, call another agent to delete the lock document based main document’s UNID + current user name as key values.
Create a view to keep the lock documents.
Whenever the main document is attempted for editing, do a lookup to see if there is lock document present. If so abort opening the main form in edit mode and display appropriate message.
Regards,
Byju Joy