DocumentObject.<Document name>.IsLocked

Syntax:

IsLocked()

Returned value:

Type: Boolean.
If True, the document is locked; if False, the opposite.

Description:

Determines whether or not a document with the given object is locked.

Availability:

Server, thick client, external connection.

Note:

Note that this method is used to check if a database object is locked by a certain object of script. It cannot be used to check whether a database object is locked in general.

Example:

If ExpenseBill.IsLocked() Then
    ExpenseBill.Unlock();
EndIf
;


    

1C:Enterprise Developer's Community