I have created a product database which will now be used by many people. The problem is if 2 people are editing a record then one will lose information when the second submits.
The main problem with locking records is if some edits then closes the page it remains locked.
I have searched around and here is the best solution I have found, please look at second post from the bottom.
This gives a user a 5 minute window to edit a record if they close it then its free to edit after 5 mins is up.
The main problem is if Bob works on a record then goes for a coffee, then after 5 mins Jane gets the lock and changes the record. Then Bob comes back with his coffee and hits submit. Jane still has a few minutes left on her lock time, so when Bob submits he gets a lock message saying Jane has the lock and he is denied access to the edit page and loses his work.
This must be quite a common dilemma for web based record locking and hopefully someone here can shed some light on a full proof way of overcoming this?
The main problem with locking records is if some edits then closes the page it remains locked.
I have searched around and here is the best solution I have found, please look at second post from the bottom.
This gives a user a 5 minute window to edit a record if they close it then its free to edit after 5 mins is up.
The main problem is if Bob works on a record then goes for a coffee, then after 5 mins Jane gets the lock and changes the record. Then Bob comes back with his coffee and hits submit. Jane still has a few minutes left on her lock time, so when Bob submits he gets a lock message saying Jane has the lock and he is denied access to the edit page and loses his work.
This must be quite a common dilemma for web based record locking and hopefully someone here can shed some light on a full proof way of overcoming this?