LOCKED ATTRIBUTES

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11.2 (Modified)


LOCKED ATTRIBUTES ({aTable; }process; 4Duser; sessionUser; processName)

ParameterTypeDescription
aTableTableTable to check for record locked, or
Default table, if omitted
processNumberProcess reference number
4DuserString4D user name
sessionUserStringName of user that opened work-session
processNameStringProcess name

Description

LOCKED ATTRIBUTES returns information about the user and process that have locked a record. The process number (on the server machine), the user name in the 4D application and in the system as well as the process name are returned in the process, 4Duser, sessionUser, and processName variables. You can use this information in a custom dialog box to warn the user when a record is locked.

If the record is not locked, process returns 0 and 4Duser, sessionUser, and processName return empty strings. If the record you try to load in read/write has been deleted, process returns -1 and 4Duser, sessionUser, and processName return empty strings.

The 4Duser parameter returned is the user name from the 4D password system, even if user name is blank. If there is no password system, "Designer" is returned.

The sessionUser parameter returned corresponds to the name of the user that opened the session on the client machine (this name is displayed more particularly in the 4D Server administration window for each open process).

See Also

Locked, Record Locking.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next