2022.2

Table Of Contents
Tip: ThedefaultextractionmethodforfieldsinaCSVorXLS(X)fileisdata.extract(colum-
nName, rowOffset).Changingtheexpressiontousethedata.extractByIndex(index,
rowOffset)methodwillallowthedatamappingconfigurationtoextractdatafromfilesthat
havethesamestructure,butdifferentcolumnnames.
Property-based field
Aproperty-basedfieldisfilledwiththevalueofaproperty(see"Propertiesandruntimeparameters"
onpage227).
CustompropertiescanbeaddedviathePreprocessorstep;see"Preprocessorstep"onpage249.
Aproperty-basedfieldcannotbeaddeddirectly.Tofillafieldwiththevalueofaproperty,youhaveto
changeanexistingfield'sModetoProperties.
1. SelectthefieldintheDataModel.
2. OntheSteppropertiespane,underFieldDefinition,changeitsModetoProperties.
3. SelectthepropertyfromthePropertydrop-downlist,orclickthebuttontotheright,toopenafil-
terdialogthatletsyoufindapropertybasedonthefirstfewlettersthatyoutype.
Anotherwaytoaddthevalueofapropertytoafieldisbysettingthefield'sModetoJavaScriptand
enteringthecorrespondingpropertyintheExpressionfield,e.g.data.properties.myProperty;.
Adding empty fields via the Data Model pane
YoucanaddfieldsanddetailtablesdirectlyintheDataModelpane.Right-clickanywhereontheData
Modelandacontextualmenuwillappear.Whichmenuitemsareavailabledependsonwhereyou've
clicked.Ifyouright-clickinsidetherecorditself,youcanaddafield,detailtableorgroup.Afieldwillbe
addedwithnoextraction,whileadetailtablewillbeaddedwithnofieldsinside.
Here'showyoucanfillthefieldwithdata.
l
Drag&dropdataintoit.Thefieldwillbeconvertedintoalocation-basedfieldandisthenaccess-
ibleviatheSteppropertiespane.
l
FillthefieldwithanActionstep(seeExtractingdatawithascript).Fieldsthatarefilledthisway
arenotaccessibleviatheSteppropertiespane.
Adding fields dynamically
OutsideoftheDataMappertheDataModelcannotbechanged.Itisn'tpossibletoaddfieldstoitwhen
usingthedatamappingconfigurationinanautomatedprocess.Itishoweverpossibletoadddatato
existingfieldsviaWorkflow;see"AddingfieldsanddataviaWorkflow"onpage263.
Page 266