コレクション内のすべての文書に既読マークを付けます。
markAllRead(username:string) : void
パラメータ | 説明 |
---|---|
username | 指定すると、メソッドは、コレクション内の指定された名前のすべての文書に既読マークを付けます。省略すると、メソッドは、コレクション内の現在のユーザー ID のすべての文書に既読マークを付けます。 |
if (requestScope.query.isEmpty()) return;
if (!database.isFTIndexed()) database.createFTIndex(0, false);
var vec:NotesViewEntryCollection = database.getView("main").getAllEntries();
vec.FTSearch(requestScope.query);
var n:int = vec.getCount();
if (n > 0) {
vec.markAllRead();
requestScope.status = n.toFixed() + " document(s) marked as read";
} else {
requestScope.status = "No match";
}
Java™ ViewEntryCollection クラスの markAllRead メソッド