isCategory (NotesXspViewEntry - JavaScript)

Indicates whether a view entry is a category.

Defined in

NotesXspViewEntry (JavaScript)

Syntax

isCategory() : boolean
Return value Description
boolean true if the entry is a category; false otherwise

Examples

This data binding script for a Multiline Edit Box is embedded in a Repeat control with a Domino® view data source whose collection name is rowdata. The script gets a column value depending on whether the entry is a category, total, or document.
try {
	if (rowdata.isCategory()) {
		return "Category = " + rowdata.getColumnValue("category") + "\n"
	} else if(rowdata.isTotal()) {
		return "Total = " + rowdata.getColumnValue("number").toFixed() + "\n"
	} else if (rowdata.isDocument()) {
		return "  Subject = " + rowdata.getColumnValue("subject") + "\n"
	}
} catch (e) {
	return e.toString();
}