Editing a field script

You can edit a field script to combine fields and text or specify conditional data.

  1. Access the Report configuration section of the Report Details screen.
  2. Right-click a field in the Available fields list or the Selected fields. Select Edit field script.
  3. Write a JavaScript. Insert the variable data within the hard brackets. See this example:
    if(1 == 2)
    {
    return "Not possible";
    }
    else
    {
    return "[1LMTITNO]" + "–[1LWWUNMS]";
    }
  4. To test the script, click Validate. If the script is correct, a validation notification, which is highlighted in green, is displayed. The validation notification shows the real sample data, which replaces the variable data. If the script is invalid, the validation notification is highlighted in yellow.
  5. Click Save.