selectedObjects

Specifies the selected values (not the labels) of the component as an array. Applies to multi-value input elements (Check Boxes) and selection elements (Selection Lists, Selection Trees, Range Slider, Calendars).

This property is readable and writable for Selection Lists and Selection Trees, and is read-only for other components. Script that reads the value of the selectedObjects property can be placed either at the element level or in the onLoad Handler, while script that writes the selectedObjects property must be placed in the onLoad Handler.

Type

Array array of selected option values

Example

var num = SelectionList1.selectedObjects.length;

var msg = 'You selected ' + num + ' objects: ';

msg += SelectionList1.selectedObjects.join(', ');

alert(msg)

See Also

values, to access the values presented in the component list.

Accessing the Most Recent User Modification, to retrieve the most recent modified object.

selectedLabels, to access the labels corresponding to the values.

selectedObject, to access the current selection in single-valued components.

Accessing User Input in Script, for more information about selectedObjects.

<< selectedObject © 1996-2013 InetSoft Technology Corporation (v11.5) size >>