getIndentLevel (NotesXspViewEntry - JavaScript)

Gets the indent level of a view entry within the view.

Defined in

NotesXspViewEntry (JavaScript)

Syntax

getIndentLevel() : int

Usage

The indent level corresponds to the number of levels in the position. Position 1 is indent level 0, position 1.1 is indent level 1, position 1.1.1 is indent level 2, and so on.

Examples

This data binding script for a Multiline Edit Box is embedded in a Repeat control with a Domino® view data source whose collection name is rowdata. The script gets information about each view row.
try {
	return rowdata.getPosition(",").toString() +
	"   indent level = " + rowdata.getIndentLevel().toFixed() +
	"   column indent level = " + rowdata.getColumnIndentLevel().toFixed() +
	"   sibling count = " + rowdata.getSiblingCount().toFixed() +
	"   child count = " + rowdata.getChildCount().toFixed() +
	"   descendant count = " + rowdata.getDescendantCount().toFixed() +
	"\n"
} catch (e) {
	return e.toString();
}