2022.2

Table Of Contents
JavaScript Expression
Alternativelyyoucanchangeafield'sModefromLocationtoJavascript:
1. SelectthefieldintheDataModel.
2. OntheSteppropertiespane,underFieldDefinition,changeitsModetoJavaScript.
YouwillseethattheJavaScriptExpressionfieldisnotempty;itcontainsthecodethatwasusedto
extractdatafromthelocation.Thiscodecanbeusedordeleted.
Note:
Thelastvalueattributiontoavariableistheoneusedastheresultoftheexpression.
Deletingafield
ThelistoffieldsthatareincludedinanextractionisoneofthepropertiesofanExtractstep.Todeletea
field:
1. Selectthefield:clickonthefieldintheDataModel,orselecttheExtractstepthatcontainsthe
fieldthatyouwanttodelete,andintheSteppropertiespane,underFieldDefinition,selectthe
fieldfromtheFieldList.
2. IntheSteppropertiespane,underFieldDefinition,clicktheRemove Extract Fieldbuttonnext
totheFieldListdrop-down.
Detail tables
AdetailtableisafieldintheDataModelthatcontainsarecordsetinsteadofasinglevalue.Detail
tablescontaintransactionaldata.TheyarecreatedwhenanExtractstepisaddedwithinaRepeat
step;see"Extractingtransactionaldata"onpage235.
Inthemostbasicoftransactionalcommunications,asingledetailtableissufficient.However,itispos-
sibletocreatemultipledetailtables,aswellasnestedtables.Detailtablesandnestedtablesaredis-
playedasseparatelevelsintheDataModel(see"TheDataModel"onpage260).
DetailtablescanbeincludedinatemplateviaaDynamic Table;see"DynamicTable"onpage742.
Renamingadetailtable
Renamingdetailtablesisespeciallyusefulwhentherearemoredetailtablesinonerecord,orwhena
detailtablecontainsanotherdetailtable.Forthisdetailtable,‘products’wouldbeabettername.
Page 269