unlock (NotesDocument - JavaScript™)
Unlocks a document.
Defined in
NotesDocumentSyntax
unlock() : void
Usage
IsDocumentLockingEnabled in Database must be true or this method throws an exception.This method throws an exception if the current user is not one of the lock holders and does not have lock breaking authority.
Examples
This button unlocks the current document.try {
var doc:NotesDocument = currentDocument.getDocument();
doc.unlock();
requestScope.status = "Document unlocked";
} catch(e) {
requestScope.status = "Document not unlocked";
}