Who has the record locked?

I’m using in my application record locking, using the database manager.

var _success = databaseManager.acquireLock(_foundset, _recordnumber)
if (_success == false)
{
	_try = plugins.dialogs.showQuestionDialog('',  'This record is locked by another user. Do you want to try again?', 'yes', 'no')
	if ( _try == 'no')
                     // More coding
                else
                     // Other coding;
}

(This is only part of the coding. The coding is stripped and shows only the essential part)

My problem is that I want to show which user has locked the record.

The record is locked by Martin. Do you want to try again?

This info should be available, because my Servoy Application server shows the locked record. In case some person has locked the record, but is gone away drinking a big cup of coffee, it would be nice that the end-user (not administrator!) could make a call to that person and ask him to leave the record that he has locked.

Is this possible? And if not, I’ll ask Servoy to create an extra method in Servoy:

Object databaseManager.getLockinfo()

where the Object is a lock-info object containing all data that you can see in the Applicationserver.

I would like to support this request.

I posted this as a feature request

Hi,

I was searching through the forums and came across a few threads asking for this feature.

I was wondering if this feature was added or if there was another way to find out who has the record locked.

Thanks

Hi everybody!!!

Somebody know if this feature has been added??? If not, it will be added???

In my opinion, this feature will be useful for everybody.

Best regards,

Gerardo.