ビューエントリコレクションから指定された文書を削除します。
パラメータ | 説明 |
---|---|
noteID | 文書の文書 ID。 |
documents | 種類が NotesDocument、NotesDocumentCollection、NotesViewEntry、NotesViewEntryCollection のオブジェクトです。ビューエントリは文書を指す必要があります。 |
このメソッドが正常に終了すると、呼び出しの前に元のビューエントリコレクションに含まれていたエントリのうち、入力引数で指定されていないエントリのみが、コレクションに含まれます。
if (requestScope.query.isEmpty()) return;
if (!database.isFTIndexed()) database.createFTIndex(0, false);
var vec:NotesViewEntryCollection = database.getView("main").getAllEntries();
vec.FTSearch(requestScope.query);
if (vec.getCount() > 0) {
var doc:NotesDocument = currentDocument.getDocument();
if (doc != null) vec.subtract(doc);
vec.putAllInFolder("searchResults", true);
requestScope.status = "Document(s) put in folder";
} else {
requestScope.status = "No match";
}