IsTotal (NotesViewEntry - JavaScript™)
Read-only. Indicates whether a view entry is a total.
Defined in
NotesViewEntrySyntax
isTotal() : boolean
Legal value | Description |
---|---|
true |
if the entry is a total |
false |
if the entry is not a total |
Examples
This button gets the first-column value and child count for the top-level entries in a view excluding the total.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.getChildCount().toFixed() + " immediate entries";
var tmpentry:NotesViewEntry = nav.getNextSibling(entry);
entry.recycle();
entry = tmpentry;
}