markUnread (NotesDocument - JavaScript)

Marks the document as unread.

Defined in

NotesDocument

Syntax

markUnread() : void

markUnread(username:string) : void

Parameter Description
username If present the method marks the document unread on behalf of the given name. If omitted, the method marks the document unread on behalf of the current user ID.

Usage

If the database does not track unread marks, all documents are considered read, and this method has no effect.

Examples

This button marks the current document as unread.
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";
}