8.2 Managing MLE Modules

A JavaScript module is a unit of MLE's language code stored in the database as a schema object.

Creating a JavaScript Module in the Database

A JavaScript Module can be created in two ways:

  • By entering Javascript code directly into the editor
  • By opening a file already available on your local computer

To create an MLE module by entering JavaScript code directly into the editor:

  1. In the left pane, select the Navigator tab. Select Object submenu and click Create Object.

  2. In the right editor pane, select the Editor tab (if not already selected) and enter the JavaScript code.

  3. In the Name field, enter a name for the module.

  4. Select the appropriate environment from the drop-down list.

    This is needed when importing or exporting modules already saved to the database and imported in the selected environment.

  5. Click Save to save in database, file system or both database and file system.

    The MLE module is saved in the database.

To create an MLE module by opening a file:

  • In the right pane, select the Editor tab, click Open File and browse for the file you want. The file contents are displayed in the editor.
  • In the Name field, enter a name for the module.
  • Click Save.

    The MLE module is saved in the database.