DescendantCount (NotesViewEntry - JavaScript)

Read-only. The number of descendants belonging to the current view entry.

Defined in

NotesViewEntry

Syntax

getDescendantCount() : int

Examples

This button gets the first-column value and descendant 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.getDescendantCount().toFixed() + " total entries";
	var tmpentry:NotesViewEntry = nav.getNextSibling(entry);
	entry.recycle();
	entry = tmpentry;
}