Script Assistant 
You can use this function to improve your scripting syntax and knowledge of the SAP Manufacturing Integration and Intelligence (SAP MII) Applet Object Model.
The Script Assistant does the following:
Inserts property name-value pairs into applet definitions
Inserts function calls to link applets based on the selected applet event
Some of the fields on the Script Assistant screen are listed in the following table:
Function |
Description |
Used In |
Applet |
It lists the applet names found in the open Web page. In the stand-alone version, it lists the SAP MII applet types. |
FrontPage, Dreamweaver, and stand-alone |
Applet Methods |
Lists the base applet methods that apply to the selected applet type. |
FrontPage, Dreamweaver, and stand-alone |
Object Methods |
Lists the object method names that apply to the selected applet method. |
FrontPage, Dreamweaver, and stand-alone |
Include Document Object Method |
If the checkbox is selected, the system addes the document object as a prefix to the applet name to reference an applet or a control on the Web page. For example, document.BatchTrend.getQueryObject(); where document is the document object prefix. We recommend that you use a prefix. |
FrontPage, Dreamweaver, and stand-alone |
Note
If you deleted scripts using Dreamweaver, some data might remain in the .html or .irpt.
To provide query status, you can use the following object methods:
isDataValid(); is a validity flag that shows true or false.
For example, document.appletName.getQueryObject().isDataValid();
getLastStatusCode(); shows a numeric status code.
For example, document.appletName.getQueryObject().getLastStatusCode();
getStatusMessage(); shows the last message.
For example, document.appletName.getQueryObject().getStatusMessage();