getNavigatorPosition (NotesXspViewEntry - JavaScript™)
Gets the position of the entry in the view navigator hierarchy, for example, "2.3" for the third document of the second category.
Defined in
NotesXspViewEntry (JavaScript)Syntax
getNavigatorPosition() : string
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 isrowdata
. The script gets a column value depending
on whether the entry is a category, total, or document, and returns
the position plus the value.try {
if (rowdata.isCategory()) {
return rowdata.getNavigatorPosition() + " = " + rowdata.getColumnValue("category") + "\n"
} else if(rowdata.isTotal()) {
return rowdata.getNavigatorPosition() + " = " + rowdata.getColumnValue("number").toString() + "\n"
} else if (rowdata.isDocument()) {
return rowdata.getNavigatorPosition() + " = " + rowdata.getColumnValue("subject") + "\n"
}
} catch (e) {
return e.toString();
}