Skip to main content
Solved

Prevent users from editing the same record simultaneously.

  • November 21, 2022
  • 2 replies
  • 88 views

MtHoen
Apprentice

Hi, I am looking for a solution to a challenge we seem to have with the possibility of two users editing the same record simultaneously. Now, any changes made by the first user to save his or her changes will be overwritten by the changes of the second user.

Is there any known way to prevent this from happening? (Preferably using some form of user feedback, “User X is editing this record, it is not possible to update it at this time”) I'm not familiar with whether/what kind of session information is available in Thinkwise. 

Thanks in advance. 
 

Best answer by Mark Jongeling

Hi,

My colleague Frank has created a Thinkstore solution for this, it's called Optimistic locking. This will certainly help a bit. 

For being notified upon editing a record that someone is editing it, you could write something inside a Default procedure that could check every (editable) column in a record and compare it to the database record. Then it could notify the user that the record has been edited by another user. 

We currently don’t have anything natively built-in that could notify a user that a record is in midst of being altered.

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23
  • Administrator
  • 3936 replies
  • Answer
  • November 21, 2022

Hi,

My colleague Frank has created a Thinkstore solution for this, it's called Optimistic locking. This will certainly help a bit. 

For being notified upon editing a record that someone is editing it, you could write something inside a Default procedure that could check every (editable) column in a record and compare it to the database record. Then it could notify the user that the record has been edited by another user. 

We currently don’t have anything natively built-in that could notify a user that a record is in midst of being altered.


MtHoen
Apprentice
  • Author
  • 7 replies
  • November 21, 2022

That definitely helps, for now this solution is sufficient. Thank you! 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings