Applet Events 
The SAP Manufacturing Integration and Intelligence (SAP MII) iChart, iGrid, iBrowser, iTicker, and iCalendar all support links from a JavaScript function to a selection event. You can link, correlate, or drill down between template types on a Web page. Even if template types are linked to different data sources, the relationships are transparent.
Events
Name |
Data Type |
Default Value |
Use |
Details |
CreationEvent |
String |
None |
Provides the name of a JavaScript function that is called when the applet is first loaded into the Web page. |
Other applets on the same page may not be initialized. The string can be used to configure initial properties and behaviors for an applet using Web page scripting. |
UpdateEvent |
String |
None |
Provides the name of a JavaScript function in a Web page after the applet's contents are updated through a query to the underlying data source. |
You can use this event when new data is received or the time period changes. For example, you can update multiple charts when the main chart's time period changes. Do not create loops between applets that constantly update each other. The setUpdateEventEnabled method can be used to dynamically enable or disable this event. |
FirstUpdateEvent |
String |
None |
Similar to UpdateEvent, except it is called when an applet is initialized on a page. |
Not all applets support this capability. |
SelectionEvent |
String |
None |
Provides the name of a JavaScript function in a Web page when you select an item in the applet. |
This event works when you do the following:
|
DoubleClickEvent |
String |
None |
Provides the name of a JavaScript function in a Web page when you double-click an item in the applet. |
This event works when you do the following:
|
The MAYSCRIPT attribute has already been included in the APPLET HTML tag when you use these events.
When you use the SAP MII wizards to insert HTML content, the MAYSCRIPT attribute is automatically included. The following example shows how to specify the name of the JavaScript function when an event is fired:
<APPLET NAME="Untitled" CODEBASE="/XMII/Classes" CODE="iChart" ARCHIVE="illum8.zip" WIDTH="640" HEIGHT="400" TABINDEX=1 MAYSCRIPT>
<PARAM NAME="QueryTemplate" VALUE="MyProject/MyQuery">
<PARAM NAME="DisplayTemplate" VALUE="MyProject/MyChart">
<PARAM NAME="Content-Type" VALUE="image/png">
</APPLET>
The following template types also include the events listed above:
iChart
ChartSelectionEvent
ChartDoubleClickEvent
UpperChartSelectionEvent
UpperChartDoubleClickEvent
LowerChartSelectionEvent
LowerChartDoubleClickEvent
ColumnSelectionEvent
GridScrollEvent
CellSelectionEvent