Adding custom functions from repository

You can use the functions from JavaScript modules for building different expressions in calculated columns.

Before you begin

You must have a JavaScript module with functions in the repository. For more information about JavaScript modules, see Creating JavaScript Modules.

About this task

To add functions from JavaScript modules:

Procedure

  1. Open the query to that you want to add a JavaScript module with the functions in the query editor.
  2. From the main menu, select Query > Manage JavaScript Modules. The JavaScript Modules window opens.
  3. Click the Add JavaScript Module button, the Open from Repository window opens.
  4. Select the JavaScript module that you want to add, click Finish.
    The module is added and the available functions are listed in the Available Functions list.

Results

You added a JavaScript module to a query and can use the module functions in calculated columns. The functions from the added JavaScript modules are available in the JavaScript Modules node of the Calculated Column window.