markAllUnread (NotesDocumentCollection - JavaScript)

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

定義場所

NotesDocumentCollection

構文

markAllUnread() : void

markAllUnread(username:string) : void

パラメータ 説明
username 指定すると、メソッドは、コレクションのすべての文書に、指定された名前の未読マークをつけます。省略すると、メソッドは、現在のユーザー ID の未読マークを文書につけます。

使用法

データベースが未読のマークをトラッキングしない場合、すべての文書は読み取り済みと認識され、このメソッドは無効になります。

以下のボタンは、現在のデータベース内で検索照会に一致する文書に未読のマークを付けます。
var dc:NotesDocumentCollection = database.getAllDocuments();
var query:string = requestScope.query;
if (!query.isEmpty()) {
	query = "¥"" + query + "¥"";
	database.updateFTIndex(true);
	dc.FTSearch(query);
	dc.markAllUnread();
} else {
	requestScope.status = "No query";
}

言語間の参照

LotusScript® NotesDocumentCollection クラスの MarkAllUnread メソッド

Java™ DocumentCollection クラスの markAllUnread メソッド