Using the Script Assistant 
On the SAP MII administration menu, choose
The SAP MII Workbench screen appears.
On the Web tab, create or select a file.
Click the up arrowhead (Open Display Pane) on the bottom left of your file tab.
The Script Assistant tab appears.
Select an applet to which you want to create a link.
Select an applet method.
Select an object method.
Click Insert.
The system pastes the applet.object method into the text area.
Click Save.
The system inserts the JavaScript text into the script block.
Note
You can manually edit the script in the text area or create it on the page and edit it in the HTML view.
For more information, see Script Assistant.
You are using the Script Assistant in FrontPage and have an .html page that contains the BatchTrend chart and BatchList applets. The applet definition for the BatchTrend applet is:
<APPLET NAME="BatchTrend" WIDTH="715" HEIGHT="45" CODE="iGrid" CODEBASE="/Illuminator/Classes" ARCHIVE="illum8.zip" MAYSCRIPT>
<PARAM NAME="QueryTemplate" VALUE="Training/BatchTrendQuery">
<PARAM NAME="DisplayTemplate" VALUE="Training/BatchTrendChart">
</APPLET>
The applet definition for the BatchList applet is:
<APPLET NAME="BatchList" WIDTH="715" HEIGHT="45" CODE="iGrid" CODEBASE="/Illuminator/Classes" ARCHIVE="illum8.zip" MAYSCRIPT>
<PARAM NAME="QueryTemplate" VALUE="Training/BatchListQuery">
<PARAM NAME="DisplayTemplate" VALUE="Training/BatchListGrid">
</APPLET>
On the Script Assistantscreen, you select the BatchList applet as the target applet. The system uses SelectionEvent to call the BatchList_Selected function. You select the BatchTrend applet, the getQueryObject() object, and a corresponding setParam(Index, Value) object method. When you click Insert, the system inserts the document.BatchTrend.getQueryObject().setParam(INDEX, NEWVALUE); expression into the text area. When you click Save Script, the following changes are made to the applet and the JavaScript:
The system creates a new function with a unique ID and places it in the header of the Web page inside its own script block.
<SCRIPT Language="JavaScript" id="BatchList_Updated">
function BatchList_Selected() {
document.BatchTrend.getQueryObject().setParam(INDEX, NEWVALUE);
}
</SCRIPT>
The BatchList applet includes an additional parameter name-value pair with Name=SelectionEvent, which is shown below before the </Applet> tag:
<APPLET NAME="BatchList" WIDTH="715" HEIGHT="45" CODE="iGrid" CODEBASE="/Illuminator/Classes" ARCHIVE="illum8.zip" MAYSCRIPT>
<PARAM NAME="QueryTemplate" VALUE="Training/BatchListQuery">
<PARAM NAME="DisplayTemplate" VALUE="Training/BatchListGrid">
<PARAM NAME="SelectionEvent" VALUE="BatchList_Selected">
</APPLET>
Note
This is a simple example and requires additional logic to be functional.