Parent (NotesDocumentCollection - JavaScript)

Read-only. The database that contains a document collection.

Defined in

NotesDocumentCollection

Syntax

getParent() : NotesDatabase

Usage

This method throws an exception if the parent database is not accessible.

Examples

A button processing a document collection assigns the NotesDocumentCollection object to a global variable. This computed field queries the global variable and displays the title of the parent database.
var dc:NotesDocumentCollection = sessionScope.dc;
if (dc != null) {
	return dc.getParent().getTitle();
}