Parent (NotesViewEntry - JavaScript)

Read-only. The parent ViewEntryCollection, ViewNavigator, or View object of a view entry.

Defined in

NotesViewEntry

Syntax

getParent() : any

Examples

This button assigns a view entry to a global variable.
var bycat:NotesView = database.getView("main");
if (requestScope.query.isEmpty()) return;
var entry:NotesViewEntry = bycat.getEntryByKey(requestScope.query);
if (entry == null || entry.getDocument() == null) {
	requestScope.unid = null;
	return;
}
requestScope.entry = entry;
This computed field uses the global variable to get the name of the parent view.
var entry = requestScope.entry;
if (entry == null) {
	return null;
} else {
		return entry.getParent().getName();
}