getPosition (NotesXspViewEntry - JavaScript)

ビュー階層内のエントリの位置を取得します。例えば、2 番目のカテゴリの 3 番目の文書の場合、「2.3」という値が取得されます。

定義場所

NotesXspViewEntry (JavaScript)

構文

getPosition() : string

getPosition(position:char) : string

パラメータ 説明
position:char 戻り値に表示されるセパレータ。 デフォルト値はピリオドです。
戻り値 説明
string 一連の整数 (文字列形式) と区切り記号です。この整数は、各レベルのビューエントリの位置を示し、1 が最初の位置です。最初の整数は最初のレベルを示し、以下同様に続きます。

複数行編集ボックスのこのデータバインディングスクリプトは、コレクション名が rowdata の Domino® ビューデータソースを使用する繰り返しコントロールに埋め込まれます。スクリプトは、各ビュー行の情報を取得します。
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();
}