How to locked the object for users

Hi all, I have a requester and approver. Requester can select one or more approver. Example: Requester select the approver A and approver B. If  A opens the objects then B will not able to open it. It should locked for A and once A leaves the page then B will able to open that. How can I implements this. Please guide.   Thanks.
2 answers


You can use a control entity to lock the object when someone opens it. The controller needs to be committed when there are changes in your object. So, it will only be possible to open your object when the lock in the controller is set to false.





Have a look at this – 

Mendix Marketplace - Pessimistic Locking


Its Mx V7 but will work on later versions too, as long as you don’t need support for native/offline working.