How to get know other client issue a record lock

I have use databaseManager.acquireLock to lock a record, eg Record A on client 1.
Then, I use another client, client 2 try to modify Record A.
I fail to save the record on client 2 which is correct.
but then, how do I know the cause that cause client 2 fail to save Record A?

I have try databaseManager.getFailedRecords() and ServoyException.getMessage() to get error message for this situation but no error message I get.
The servoy log file does tell the error: “Record is locked”.
I wish to get this error message also in client, what can I do?

Thank you.

I am using
Servoy Version 3.5-build 513
Java version 1.6.0_02-b05 (Windows XP)

databaseManager.acquireLock(...)
```returns a boolean. With that result you are free to hand over whatever message you want...

IT2Be:

databaseManager.acquireLock(...)
```returns a boolean. With that result you are free to hand over whatever message you want...

Thanks for your reply.

but do I have other option?
because not all module really need to lock the record. They can just modify without issue any lock, only on certain condition I need to issues the lock.

If somebody, eg. admin lock the record, I will just ask the user wait and try again after a while, and if user wait too long, I will ask them check with their admin.

I just wanna test do the record was locked only.
In version 2.2.7, I manage to use application.getLastErrorCode to test on it. but now in version 3.5, I lost on it.