LockHolders (NotesDocument - JavaScript™)
Read-only. The names of the holders of a lock.
Defined in
NotesDocumentSyntax
getLockHolders() : java.util.Vector
Usage
If the document is locked, the vector contains the names of the lock holders. The document can be locked by one or more users or groups.If the document is not locked, the vector contains one element whose value is an empty string ("").
Examples
This computed field displays the lock holders for the current document.var doc:NotesDocument = currentDocument.getDocument();
var lh:java.util.Vector = doc.getLockHolders();
if (lh.isEmpty()) {
return;
}
var iterator = lh.iterator();
while (iterator.hasNext()) {
var holders:string = iterator.next() + " ";
}
return holders.trim()