The core of the JavaScript routines is found in the Globals_EIS section, that contains buttons with JavaScript functions. These buttons are clicked programmatically by the dashboard activation logic as it starts up. With the exception of cbtStartUp, which performs the initialization at the start, the other buttons simply hold function definitions that are imported to the Interactive Reporting Studio object model and made available to be used later. Approximately 100 functions are contained within a dashboard created with Dashboard Studio.
Globals_EIS acts as the backbone of a Dashboard Studio template. Each frame contains a text label called txlMe whose text property points to Globals_EIS. Buttons, drop-down lists, and check boxes use Globals_EIS to detect where their generic control handler is imported, and therefore can construct the call in an open and straightforward manner.
All frame controls contain the line of JavaScript:
ActiveDocument.Sections[txlMe.Text].Qiq_onControlClick(ActiveSection,this)
(In some template versions, ActiveSection replaces this.Parent. This does not affect the execution of the code).
The generic event broker uses these parameters to route the call to the control handler and determine the action to take.