isTotal (NotesXspViewEntry - JavaScript)

Indicates whether a view entry is a total.

Defined in

NotesXspViewEntry (JavaScript)

Syntax

isTotal() : boolean
Return value Description
true true if the entry is a total; 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();
}