getLast (NotesViewNavigator - JavaScript™)
Returns the last entry in a view navigator.
Defined in
NotesViewNavigatorSyntax
getLast() : NotesViewEntry
Return value | Description |
---|---|
NotesViewEntry |
The last entry. Returns null if there are no entries. |
Usage
This method moves the current pointer to the retrieved entry unless the return value is null.If the view has totals, this method retrieves the grand total.
Examples
This computed field displays the grand total for a view that has totals for the fourth column.var nav:NotesViewNavigator = database.getView("By category").createViewNav();
var entry:NotesViewEntry = nav.getLast();
return "Total: " + entry.getColumnValues().elementAt(3).toFixed();