2022.2

Table Of Contents
Alternatively,youcanaddfieldsanddetailtablesdirectlyintheDataModelpane(see"Addingempty
fieldsviatheDataModelpane"onthefacingpage).
Afteraddingafieldordetailtablethisway,youcandrag&dropdataintoittoconvertitintoalocation-
basedfield.WithoutdataitisnotaccessibleviatheSteppropertiespane.
Expression-based field
Expression-basedfieldsarefilledwiththeresultofa(JavaScript)expression:thescriptprovidesa
value.Notethatthelastvalueattributiontoavariableistheoneusedastheresultoftheexpression.
Thereisanumberofwaystoaddanexpression-basedfield.
Via the Steps pane
1. Makesurethereisno data selectionintheDataViewer.
2. Right-clickonanExtractstepontheStepspaneandselectAdd a Step > Add Extract Field.
(ToaddanewExtractstep,selectAdd a Step > Add Extractionfirst.)
3. OntheSteppropertiespane,underFieldDefinition,enterthescriptintheExpressionfield.
Via the Step properties pane
1. SelectanExtractstepontheStepspane.(Toaddanew,emptyExtractstep,right-clickthe
StepspaneandselectAdd a Step > Add Extraction.)
2. OntheSteppropertiespane,underFieldDefinition,clicktheAdd JavaScript Fieldbuttonnext
totheFieldList.
3. OntheSteppropertiespane,underFieldDefinition,enterthescriptintheExpressionfield.
By changing a field's mode
Alternativelyyoucanchangealocation-basedfieldintoaJavaScript-basedfield.
1. SelectthefieldintheDataModel.
2. OntheSteppropertiespane,underFieldDefinition,changeitsModetoJavaScript.
3. EnterthescriptintheExpressionfield.
Page 265