clear (NotesView - JavaScript)

ビューの全文検索フィルタをクリアします。

定義場所

NotesView

構文

clear() : void

使用法

後続の getDocument メソッドの呼び出しにより、 検索結果のみではなく、ビュー内のすべての文書が取得されます。

このボタンは、ビューの検索に基づいて文書をフォルダ内に格納し、この検索をクリアします。次に、同じビューの別の検索に基づき、別のフォルダ内に文書を格納します。
database.updateFTIndex(true);
var v:NotesView = database.getView("main");
var query:string = requestScope.query;
if (!query.isEmpty()) {
	if (v.FTSearch(query) > 0) {
		var doc:NotesDocument = v.getFirstDocument();
		while (doc != null) {
			doc.putInFolder("Search Results", true);
			tmpdoc = v.getNextDocument(doc);
			doc.recycle();
			doc = tmpdoc;
		}
	}
}
v.clear();
if (!query2.isEmpty()) {
	if (v.FTSearch(query2) > 0) {
		doc = v.getFirstDocument();
		while (doc != null) {
			doc.putInFolder("Search Results 2", true);
			tmpdoc = v.getNextDocument(doc);
			doc.recycle();
			doc = tmpdoc;
		}
	}
}

言語間の参照

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

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