markAllRead (NotesViewEntryCollection - JavaScript)

コレクション内のすべての文書に既読マークを付けます。

定義場所

NotesViewEntryCollection

構文

markAllRead() : void

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";
}

言語間の参照

LotusScript® NotesViewEntryCollection クラスの MarkAllRead メソッド

Java™ ViewEntryCollection クラスの markAllRead メソッド