VLF-WEB V13 - Locking Mechanism ?
Posted: Sat Mar 18, 2017 1:35 am
Hi all,
We have implemented a VLF-WEB solution using LANSA V13 SP2 EPC132900 with VLF EPC132100.
We want to know if there is any locking mechanism in VLF-Web that will lock processing of an item to a specific user and inform the others that this item is currently locked.
As an example of what I am asking is the following.
A user wants to edit a client’s data.
He or she clicks on Edit Command Handler in order to edit the client data.
At this time a record in the db is inserted to hold the locking information.
Another user tries to edit the same client’s data.
By clicking on the Edit command handler, the VLF-Web checks if there is a record on the db that hold the locking information.
The VLF-WEB finds that record and informs the second user that he/she cannot edit client’s data as there are processed by another user and automatically disables the save button.
If the first user presses the cancel button the locking record is deleted form the db and therefore the client’s data are available for edit by another user.
Up to this point, the locking mechanism can be easily constructed.
The questions arise in the following situation.
When the first user, who is editing the client’s data, decides to change command or even to close the VLF-WEB application, how VLF-Web is going to understand that the user is leaving the Edit Command Handler, who has already locked the clients data, and inform him/her that he/she is in edit mode?
If the user accepts the message and decides to leave without saving the changes or cancel the edit, how VLF-Web is going to delete the locking record in db?
Is in VLF-WEB some mechanism that:
i. Will understand if the user changed Command Handler (some kind of focusOut() from the command Handler)
ii. Will interact with the db without that being via user interaction (e.g. press of a button)
Are you aware of any locking mechanism that has been developed by any of LANSA partners?
Thanks in advance for your answers.
We have implemented a VLF-WEB solution using LANSA V13 SP2 EPC132900 with VLF EPC132100.
We want to know if there is any locking mechanism in VLF-Web that will lock processing of an item to a specific user and inform the others that this item is currently locked.
As an example of what I am asking is the following.
A user wants to edit a client’s data.
He or she clicks on Edit Command Handler in order to edit the client data.
At this time a record in the db is inserted to hold the locking information.
Another user tries to edit the same client’s data.
By clicking on the Edit command handler, the VLF-Web checks if there is a record on the db that hold the locking information.
The VLF-WEB finds that record and informs the second user that he/she cannot edit client’s data as there are processed by another user and automatically disables the save button.
If the first user presses the cancel button the locking record is deleted form the db and therefore the client’s data are available for edit by another user.
Up to this point, the locking mechanism can be easily constructed.
The questions arise in the following situation.
When the first user, who is editing the client’s data, decides to change command or even to close the VLF-WEB application, how VLF-Web is going to understand that the user is leaving the Edit Command Handler, who has already locked the clients data, and inform him/her that he/she is in edit mode?
If the user accepts the message and decides to leave without saving the changes or cancel the edit, how VLF-Web is going to delete the locking record in db?
Is in VLF-WEB some mechanism that:
i. Will understand if the user changed Command Handler (some kind of focusOut() from the command Handler)
ii. Will interact with the db without that being via user interaction (e.g. press of a button)
Are you aware of any locking mechanism that has been developed by any of LANSA partners?
Thanks in advance for your answers.