Scripts Libraries Manager

Last modified by Aurelie Bertrand on 2026/07/15 15:58

The Scripts Libraries Manager allows you to create JavaScript functions that can be used when creating measures. You can also import them via a file.

❗ Modifying a JavaScript function affects all measures that use it.

Script library

To add a JavaScript function:

  1. Click the + button above the function list.
  2. In the New dialog box that appears, enter the function name with a .js extension, then click OK.
    ➡ The function is added to the left list.
  3. Enter the function code in the Script section on the right.

You can also import a JavaScript functions file:

  • Click the en_Load_file_button.png button and select the file to import.

To duplicate a JavaScript function:

  1. Select the original function and click the arrow button to the right of the + button, then Duplicate.
    ➡ A copy of the function is added.
  2. Rename it and modify the JavaScript code as needed.

To rename a JavaScript function:

  • Click the en_Rename_button_FR.png button and enter the desired name.

To delete a JavaScript function:

  • Select the function you want to delete and click the en_Delete_button.png button.

 You can also access these functions by right-clicking on a JavaScript function.

Script_context_menu_en.png