Selection (SELECT)
The selection operators create properties that report the user's row selection in an object group:
- the property of an object collection returns
TRUEif that collection is currently selected (checked) by the user in the group, andNULLotherwise; - the property of the group as a whole returns
TRUEif multiple-row selection is currently active for the group, andNULLotherwise.
Language
To declare these properties, use the SELECT and SELECT ACTIVE operators.
Examples
CLASS Store;
name = DATA STRING[100] (Store);
FORM stores
OBJECTS s = Store
PROPERTIES(s) name
;
selectedCount 'Number of selected stores' () = GROUP SUM 1 IF [ SELECT stores.s](Store s);
multiSelectActive 'Multiple-row selection is on' () = [ SELECT ACTIVE stores.s]();