getPosition (NotesXspViewEntry - JavaScript)

Gets the position of the entry in the view hierarchy, for example, "2.3" for the third document of the second category.

Defined in

NotesXspViewEntry (JavaScript)

Syntax

getPosition() : string

getPosition(position:char) : string

Parameter Description
position:char The separator that appears in the return value. Defaults to a period.
Return value Description
string A series of integers (in string format) and separators. The integers indicate the positions of the view entry at each level, where 1 is the first position. The first integer indicates the first level 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();
}