getNextDocument (NotesViewNavigator - JavaScript)

Returns the next document entry in a view navigator.

Defined in

NotesViewNavigator

Syntax

getNextDocument() : NotesViewEntry
Return value Description
NotesViewEntry The document entry following the current entry. Returns null if there is no next document entry.

Usage

This method moves the current pointer to the retrieved entry unless the return value is null.

Examples

This button gets all the document entries in a view.
var v:NotesView = database.getView("By category");
var nav:NotesViewNavigator = v.createViewNav();
var entry:NotesViewEntry = nav.getFirstDocument();
while (entry != null) {
	requestScope.status += "\n" +
		entry.getColumnValues().elementAt(1).toString();
	var tmpentry:NotesViewEntry = nav.getNextDocument();
	entry.recycle();
	entry = tmpentry;
}