getNextSibling (NotesViewNavigator - JavaScript)

Returns the next sibling entry after the current or specified entry in a view navigator.

Defined in

NotesViewNavigator

Syntax

getNextSibling() : NotesViewEntry

getNextSibling(entry:NotesViewEntry) : NotesViewEntry

Parameter Description
entry An entry in the view. Cannot be null.
Return value Description
NotesViewEntry The sibling entry following the current or specified entry. Returns null if there is no next sibling entry.

Usage

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

Examples

This button gets all the first-level category entries in a categorized view.
var nav:NotesViewNavigator = database.getView("By category").createViewNav();
var entry:NotesViewEntry = nav.getFirst();
while (entry != null && !entry.isTotal()) {
	requestScope.status += "\n" +
	entry.getPosition(".") + " " +
	entry.getColumnValues().firstElement().toString() + " has" +
	entry.getDescendantCount().toFixed() + " total entries";
	var tmpentry:NotesViewEntry = nav.getNextSibling(entry);
	entry.recycle();
	entry = tmpentry;
}