Function Manager

Last modified by Aurelie Bertrand on 2026/07/20 09:25


DigDash Enterprise offers a range of predefined functions of various types.

The Function Manager allows you to create new functions, as well as edit or delete existing ones.

❗Editing a function affects all elements that use it.
Right-click on the function and select Dependency Analysis to view its scope of use, or use the Duplicate function.

Shared_function_en.png

Creating a new function

To create a new function:

  1. Click the button above the list of functionsthe New dialog box appears.
    Shared_function_new_en.png
  2. From the Type drop-down list, select the function type.
  3. Enter the function’s Name .
  4. From the Role drop-down list, select the role to which you wish to restrict access to the function, or select None to make it available to all roles. This field can also be used as a search bar if there are a large number of roles.
  5. Click OK to add it to the list of functions.
  6. Then enter the JavaScript function in the dedicated area on the right-hand side of the window.

For the Column Transformation type, a set of variables is available:

  • value: returns the current value in the column for each row;
  • values: returns the values in the column (column position).
    For example, values [2] returns the contents of the third column (starting from zero).
  • col: returns the index of the column currently being transformed;
  • row: returns the index of the row currently being transformed;
  • rawValue: returns the current ‘raw’ value in the column for each row (without interpretation by DigDash);
  • rawValues: returns the values in the column (column position) in their ‘raw’ format.
  • namedValues: returns the values in the column (column name).
    For example, namedValues [Age] returns the contents of the “Age” column.
  • namedRawValues: returns the values in the column (column name) in their ‘raw’ format.

To remove a function, select it and click the Supprimer.

Duplicating a function

To duplicate a function:

  1. Click the button Dupliquer : the New box appears .
  2. Enter the Name of the function.
  3. From the Role drop-down list, select the role to which you wish to restrict access to the function, or select None to make it available to all roles.
  4. Click OK to add it to the list of functions.
  5. Then edit the JavaScript function to achieve the desired result.

Editing a function’s description

You can enter a description for a new function or edit an existing one.

Shared_function_description_en.png

Click the 1736870838793-785.png button to access the multilingual edition interface and edit the value displayed in the different languages.