2022.1

Table Of Contents
Expression-based field
Expression-based fields are filled with the result of a (JavaScript) expression: the script
provides a value. Note that the last value attribution to a variable is the one used as the result of
the expression.
There is a number of ways to add an expression-based field.
Via the Steps pane
1. Make sure there is no data selection in the Data Viewer.
2. Right-click on an Extract step on the Steps pane and select Add a Step > Add Extract
Field. (To add a new Extract step, select Add a Step > Add Extraction first.)
3. On the Step properties pane, under Field Definition, enter the script in the Expression
field.
Via the Step properties pane
1. Select an Extract step on the Steps pane. (To add a new, empty Extract step, right-click
the Steps pane and select Add a Step > Add Extraction.)
2. On the Step properties pane, under Field Definition, click the Add JavaScript Field
button next to the Field List.
3. On the Step properties pane, under Field Definition, enter the script in the Expression
field.
By changing a field's mode
Alternatively you can change a location-based field into a JavaScript-based field.
1. Select the field in the Data Model.
2. On the Step properties pane, under Field Definition, change its Mode to JavaScript.
3. Enter the script in the Expression field.
Page 297