getCurrent (NotesViewNavigator - JavaScript™)
Returns the current entry in a view navigator.
Defined in
NotesViewNavigatorSyntax
getCurrent() : NotesViewEntry
Return value | Description |
---|---|
NotesViewEntry |
The current entry. Returns null if the navigator is empty. |
Examples
This button gets all the first-level category entries in a categorized view in reverse order.var nav:NotesViewNavigator = database.getView("By category").createViewNav();
var entry:NotesViewEntry = nav.getLast();
do {
entry = nav.getCurrent();
} while (nav.gotoParent());
while (entry != null) {
if (!entry.isTotal()) {
requestScope.status += "\n" +
entry.getPosition(".") + " " +
entry.getColumnValues().firstElement().toString() + " has" +
entry.getDescendantCount().toFixed() + " total entries";
}
var tmpentry:NotesViewEntry = nav.getPrevSibling(entry);
entry.recycle();
entry = tmpentry;
}