unlock (NotesView - JavaScript™)
Unlocks a view.
Defined in
NotesViewSyntax
unlock() : void
Usage
IsDesignLockingEnabled 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 a view.database.setDesignLockingEnabled(true);
var v:NotesView = database.getView("main");
try {
v.unlock();
requestScope.status = v.getName() + " unlocked";
} catch(e) {
requestScope.status = v.getName() + " not unlocked";
}
database.setDesignLockingEnabled(false);