createViewNavFromDescendants (NotesView - JavaScript)

指定したエントリのすべての子に対するビューナビゲータを作成します。

定義場所

NotesView

構文

createViewNavFromDescendants(entry:any) : NotesViewNavigator

createViewNavFromDescendants(entry:any, cacheSize:int) : NotesViewNavigator

パラメータ 説明
entry 親エントリを表す NotesDocument オブジェクトまたは NotesViewEntry オブジェクト。 NULL にすることはできません。
cacheSize ビューエントリでのナビゲータキャッシュのサイズ。 適正値は、 0 (キャッシュなし) から 128 (デフォルト) です。リモート (IIOP) 操作のみに適用されます。
戻り値 説明
NotesViewNavigator 新規ビューナビゲータ。

使用法

ナビゲータ内のエントリは、指定したエントリの下のすべてのレベルの階層に属するビュー内のエントリです。 親自身は除外されます。

エントリに子がない場合は、空のナビゲータが作成されます。 すべてのナビゲーションメソッドが null を返します。

キャッシュは、パラメータを取らないナビゲーションメソッドを使用して、エントリの反復プロセスのパフォーマンスを強化します。

このボタンは、現在の文書の子孫のビュー内のすべてのエントリを取得します。
var v:NotesView = database.getView("main");
var nav:NotesViewNavigator = v.createViewNavFromDescendants(currentDocument.getDocument());
if (nav.getCount() == 0) {
	requestScope.status = "No descendants";
	return;
}
var entry:NotesViewEntry = nav.getFirst();
while (entry != null) {
	requestScope.status += "¥n" + 
		entry.getColumnValues().elementAt(0);
	var tmpentry = nav.getNext();
	entry.recycle();
	entry = tmpentry;
}

言語間の参照

LotusScript® NotesView クラスの CreateViewNavFromDescendants メソッド

Java™ View クラスの CreateViewNavFromDescendants メソッド