gotoEntry (NotesViewNavigator - JavaScript)

Moves the current pointer to a specified document or view entry.

Defined in

NotesViewNavigator

Syntax

gotoEntry(entry:any) : boolean
Parameter Description
entry A NotesDocument or NotesViewEntry object. Cannot be null.
Return value Description
boolean
  • true if the operation succeeds
  • false if there is no entry for the specified document or view entry

Usage

The NotesDocument or NotesViewEntry object provided as the parameter does not have to come from the current view navigator. This method searches for the existence of the entry in the current view navigator.

Examples

This button determines whether a document is in a view.
var nav:NotesViewNavigator = database.getView("By category and date").createViewNav();
var doc:NotesDocument = currentDocument.getDocument();
if (nav.gotoEntry(doc)) {
	requestScope.status = "Current document is in this view: " + 
		nav.getParentView().getName();
} else{
	requestScope.status = "Current document is not in this view: " + 
		nav.getParentView().getName();
}