isSelected setSelected (NotesXspViewEntry - JavaScript™)
Indicates whether entries are selected.
Defined in
NotesXspViewEntry (JavaScript)Syntax
isSelected() : boolean
setSelected(boolean) : void
Return value and parameter | Description |
---|---|
boolean |
true if the entry is selected; false otherwise |
Usage
Examples
Thisonclick
script
for a Button control is embedded in a Data Table control with a Domino® view data source whose
collection name is rowdata
. The script toggles the
selection mode for a view entry.try {
if (rowdata.isSelected()) {
rowdata.setSelected(false)
} else {
rowdata.setSelected(true)
}
requestScope.status = "row selection changed to " + rowdata.isSelected();
} catch (e) {
requestScope.status = e.toString()
}