Home > Developer > Scripting
Scripting
Meta defines three scripting objects AM_data, AM_view and AM_function to work with the respective data, view and function Objects. These scripting objects can be used within script code included as part of the web page resource or declared as part of script function Meta Object. Any ActiveScript compatible scripting language can be used.
Furthermore the Internet Explorer document object model (DOM) can be accessed using the AM_browser scripting object. The methods and properties of these scripting objects are described below.
Data Scripting Object: AM_data |
| Object Name |
| AM_data |
| Description |
| Scripting object used to work with the data Objects. |
| Properties |
| Scalar data Meta Object values are able to be accessed directly as properties using the Meta Object identifier. |
| Methods |
| getValue | Returns the value of a scalar data object or item within an array data object. |
| setValue | Sets the value of a scalar data object or item within an array data object. If the data object has not previously been declared, it will be created as scalar data object with volitile state. |
| getPointer | Returns the value of the scalar data object pointed to by the pointer data object. |
| setPointer | Sets the value of the scalar data object pointed to by the pointer data object. |
| getDims | Returns the dimensions of an array data object. |
| getRows | Returns the number of rows of an array data object. |
| getCols | Returns the number of columns of an array data object. |
| lockObject | Lock a data object, preventing it from being modified without the access key. |
| unlockObject | Unlock a previously locked data object, allowing it to be modified. |
| key | Returns the access key associated with a locked data object. |
| setLockedValue | Sets the value of a locked scalar data object or item within a locked array data object. |
| setLockedPointer | Sets the value of the data object pointed to by the locked pointer data object. |
top
View Scripting Object: AM_view |
| Object Name |
| AM_view |
| Description |
Scripting object used to work with the view Objects.
|
| Methods |
| isDlgOpen | Retrieves the boolean value indicating whether a dialog is open. |
| isDlgActive | Retrieves the boolean value indicating whether a modeless dialog has the active focus. |
| minimizeDlg | Minimizes the dialog. |
| maximizeDlg | Maximizes the dialog. |
| restoreDlg | Restores a previously minimized dialog to its original size and position. |
| openfileDlg | Opens the systems default file dialog. |
| folderDlg | Opens the systems default folder dialog. |
| inputDlg | Opens an input dialog. |
| textDlg | Opens a text area input dialog. |
| msgDlg | Opens a message dialog box. |
| addStyle | Creates a new style element with the specified CSS and inserts it into the head element the current web page html. |
top
Function Scripting Object: AM_function |
| Object Name |
| AM_function |
| Description |
Scripting object used to work with the function Objects. Example:
AM_function.run("fid_showwindow");
|
| Methods |
| run | Executes the specified function object. |
| wait | Causes the execution of code within the script host to Wait for a set time period. |
top
Internet Explorer Scripting Object: AM_browser |
| Object Name |
| AM_browser |
| Description |
Scripting object used within script function Objects to access the Internet Explorer document object model.
|
| Example |
| This example shows how to access Internet Explorer from within a scipt function Meta Object. |
| cookie = AM_browser.document.cookie; |
top