Develop > Programming > System Language reference > List: RAD functions > RAD function: get.lock.owner

RAD function: get.lock.owner

A RAD function that returns the owner of a resource (lock). The function returns the name of the user who currently has the resource locked.

Function

get.lock.owner

Format

$owner= get.lock.owner("locked resource")

Example

Assume the user "falcon" is actively updating Incident IM1017. By viewing the Lock Resource Status display, one can determine that the name of the associated resource is probsummary;IM1017. To verify the owner from any other application:

$lock="probsummary;IM1017"
$owner=get.lock.owner($lock)

After execution, the value of $owner is falcon.

Note This function is primarily intended for internal use as it requires specific knowledge of the underlying resource names associated with a specific action.