ParentDatabase (NotesDocument - JavaScript)

Read-only. The database that contains a document.

Defined in

NotesDocument

Syntax

getParentDatabase() : NotesDatabase

Examples

This computed field displays the title of the database containing a document made available through a global variable.
var doc:NotesDocument = sessionScope.doc;
if (doc != null) {
	return doc.getParentDatabase().getTitle();
}