文書がユーザーによって読み取られたかどうかを返します。
パラメータ |
説明 |
username |
ユーザーの名前。デフォルトで現在のユーザーの名前になります。 |
戻り値 |
説明 |
boolean |
現在の文書がユーザーによって読み取られている場合は true。その他の場合は false。 |
例
以下のボタンは、現在のデータベース内のビューに含まれる文書がユーザーによって読み取られているかどうかを報告します。
try {
var username:string = requestScope.query; // edit box
var view:NotesView = database.getView("main");
var doc = view.getFirstDocument();
while (doc != null) {
requestScope.status = requestScope.status + "¥n" + username +
((doc.getRead(username)) ? " has " : " has not ") + "read " + doc.getItemValueString("subject");
var tmpdoc = view.getNextDocument(doc);
doc.recycle();
doc = tmpdoc;
}
} catch(e) {
requestScope.status += "¥n" + e.toString();
}
言語間の参照
LotusScript® NotesDocument クラスの
GetRead メソッド
Java™ Document クラスの getRead メソッド