getRead (NotesXspViewEntry - JavaScript)

Checks if the document is read.

Defined in

NotesXspViewEntry (JavaScript)

Syntax

getRead() : boolean

getRead(onBehalfOf:string) : boolean

Parameter Description
onBehalfOf:string The user whose unread marks are being checked. Defaults to the current user.
Return value Description
boolean true if the unread marks for the user indicate that the document is read; false otherwise.

Examples

This value script for a Computed Field is embedded in a Data Table control with a Domino® view data source whose collection name is rowdata. The script determines if the current user has read a document.
try {
	if (rowdata.isDocument()) {
		if (rowdata.getRead()) {
			return session.getCommonUserName() + " has read this";
		} else {
			return session.getCommonUserName() + " has not read this";
		}
	}
} catch (e) {
	return e.toString()
}
This value script for a Computed Field is embedded in a Data Table control with a Domino® view data source whose collection name is rowdata. The script determines if a specified user has read a document.
try {
	if (rowdata.isDocument()) {
		if (rowdata.getRead(sessionScope.username)) {
			return sessionScope.username + " has read this";
		} else {
			return sessionScope.username + " has not read this";
		}
	}
} catch (e) {
	return e.toString()
}