I have the following two methods on the same layout linked to: OnRecordEditStart
databaseManager.acquireLock(foundset, 0)
and OnRecordSave
databaseManager.releaseAllLocks()
This works well, between all clients, but it does’nt work well in combination with Servoy Developer. If I edit a record in Developer and I go thru a client to the same record, i’ll get the message: Record is locked. So far so good! If I leave the record in the developer and go back to the client en try to have acces, it still give me the message: record is locked!
As I said: between all clients, it works good!
[/quote]
It has been identified as an issue in Servoy Developer, the good news is that you only need locking in Servoy Client. The client functionality in developer is meant for quick access to your data only. We recommend doing lock testing in client only for the time being.
It is certainly possible to create this in a global method, in fact this kind of things is exactly where global methods were meant for.
This works well, between all clients, but it does’nt work well in combination with Servoy Developer. If I edit a record in Developer and I go thru a client to the same record, i’ll get the message: Record is locked. So far so good! If I leave the record in the developer and go back to the client en try to have acces, it still give me the message: record is locked!
As I said: between all clients, it works good!