Retrieving and Setting Object Properties

Interactive Reporting objects have associated properties, which represent attributes such as name, visible, enabled, and text. Most properties can be set using the Properties dialog box in the dashboard section.

Example—Get a ListBox property

/* Get the value of the ListBox MultiSelect property*/
var sect_name=’Dashboard’;
var ctrl_name=’ListBox1’;
TextBox1.Text =
ActiveDocument.Sections[sect_name].Shapes[ctrl_name].MultiSelect;

Example—Set a CheckBox property

/* Set the value of the CheckBox Checked property */
var sect_name=’Dashboard’;
var ctrl_name=’CheckBox1’;
ActiveDocument.Sections[sect_name].Shapes[ctrl_name].Checked = true;

Example—Get a RadioButton group property

/* Get the value of the RadioButton Group property */
var sect_name=’Dashboard’;
var ctrl_name=’CheckBox1’;
TextBox1.Text =
ActiveDocument.Sections[sect_name].Shapes[ctrl_name].Group;