getRead (NotesViewEntry - JavaScript)

Indicates whether an entry is read.

Defined in

NotesViewEntry

Syntax

getRead() : boolean

getRead(username:string) : boolean

Parameter Description
username The user being queried. Defaults to the current user.
Return value Description
boolean True if the entry is read; false otherwise.

Examples

This button indicates whether each document in a view is read.
var nav:NotesViewNavigator = database.getView("By category").createViewNav();
var entry:NotesViewEntry = nav.getFirst();
while (entry != null) {
	if (entry.isCategory()) {
		requestScope.status += "\n" + 
		entry.getColumnValues().firstElement().toString();
	} else if (entry.isDocument()) {
		requestScope.status += "\n\t" + 
		entry.getDocument().getItemValueString("subject");
		if (entry.getRead()) {
			requestScope.status += " [has been read]";
		} else {
			requestScope.status += " [has not been read]";
		}
	}
	var tmpentry:NotesViewEntry = nav.getNext(entry);
	entry.recycle();
	entry = tmpentry;
}