ParentView (NotesDocument - JavaScript)

Read-only. The view from which a document was retrieved, if any.

Defined in

NotesDocument

Syntax

getParentView() : NotesView

Usage

If the document was retrieved directly from the database or a document collection, this property returns null.

Examples

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