IsPendingDelete (NotesDatabase - JavaScript™)
Read-only. Indicates whether a database on a server in a cluster is marked for deletion.
Defined in
NotesDatabaseSyntax
isPendingDelete() : boolean
Legal value | Description |
---|---|
true |
if the database is marked for deletion |
false |
if the database is not marked for deletion |
Usage
The markForDelete method sets this property to true.The database must be open to use this property.
Examples
This button does not perform the main work if a database is pending deletion.if (database.isPendingDelete()) {
requestScope.status = "Database pending delete";
} else {
var doc = database.createDocument();
doc.replaceItemValue("Subject", "Test one");
doc.replaceItemValue("Form", "main");
requestScope.status = "Document created";
doc.save();
}