IsDocumentLockingEnabled (NotesDatabase - JavaScript)

Read-write. Indicates whether document locking is enabled for a database.

Defined in

NotesDatabase

Syntax

isDocumentLockingEnabled() : boolean

setDocumentLockingEnabled(flag:boolean) : void

Legal value Description
true if document locking is enabled
false if document locking is not enabled

Usage

The database must be open to use this property.

Examples

This button toggles document locking for the current database.
database.setDocumentLockingEnabled(!database.isDocumentLockingEnabled());
requestScope.status = "Document locking = " + database.isDocumentLockingEnabled();