Skip to main content

NIM

Create, edit, or remove a JavaScript filter column
Create a JavaScript filter column

For more information, see Custom JavaScript columns.

  1. For the relevant filter, Edit a filter.

  2. Go to the Columns Specification tab.

  3. Click Add Script Column.

    2021-05-19_10-48-57.png
  4. Enter a Column Name.

  5. Enter your JavaScript in the Code pane.

  6. Optional: Click a 2021-05-19_11-01-11.png Green Arrow to insert a column variable into the current cursor position in the Code pane.

    Note

    Column variables are accessed using non-standard JavaScript notation, in the format tableName['variableName']. For example, employees['employee_id'].

  7. Optional: Click Insert A JavaScript Function to insert hash functions, Vault queries, or variable queries.

    2022-01-12_13-00-55.png
  8. Click Test Script to execute your JavaScript code.

    The result appears in the Script Result Value field.

    2021-05-19_11-06-08.png
  9. Click Save and Exit.

  1. For the relevant filter, Edit a filter.

  2. Go to the Columns Specification tab.

  3. Click edit-custom-column.png Edit Column.

    2021-05-19_11-21-44.png
  4. Continue by following the instructions in Create a JavaScript filter column.

  1. For the relevant filter, Edit a filter.

  2. Go to the Columns Specification tab.

  3. Click remove-custom-column.png Remove Column.

    2021-05-19_11-21-44.png
  4. Click Save.