文書に未読マークを付けます。
markUnread(username:string) : void
パラメータ | 説明 |
---|---|
username | 指定すると、メソッドが文書に、指定されたユーザー名に代わって未読マークを付けます。省略すると、メソッドが文書に現在のユーザー ID に代わって未読マークを付けます。 |
var doc:NotesDocument = currentDocument.getDocument();
var rdoc:NotesDocument = database.createDocument();
rdoc.appendItemValue("Form", "response");
rdoc.appendItemValue("Subject", session.getCommonUserName() + " needs to look at this further<>");
rdoc.makeResponse(doc);
doc.markUnread();
if (rdoc.save()) {
requestScope.status = "Response posted and document marked unread";
} else {
requestScope.status = "Unable to save response";
}