getPrevDocument (NotesViewNavigator - JavaScript™)
Returns the previous document entry in a view navigator.
Defined in
NotesViewNavigatorSyntax
getPrevDocument() : NotesViewEntry
Return value | Description |
---|---|
NotesViewEntry |
The document entry preceding the current entry. Returns null if there is no previous 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 in reverse order.var v:NotesView = database.getView("By category");
var nav:NotesViewNavigator = v.createViewNav();
var entry:NotesViewEntry = nav.getLastDocument();
while (entry != null) {
requestScope.status += "\n" +
entry.getColumnValues().elementAt(1).toString();
var tmpentry:NotesViewEntry = nav.getPrevDocument();
entry.recycle();
entry = tmpentry;
}