2022.2

Table Of Contents
l
Use JavaScript Editor:Clicktodisplaythe"boundaries"onpage370dialog.
l
Use selected text:InsertsthetextinthecurrentdataselectionintheJavaScript
Expression.Ifmultiplelinesorelementsareselected,onlythefirstoneisused.
l
Use selection:Clicktousethevalueofthecurrentdataselectionfortheextraction.
Note: Iftheselectioncontainsmultiplelines,onlythefirstlineisselected.
l
Properties:Thevalueofthepropertyselectedbelowwillbethevalueoftheselectedfield.
l
Property:Thisdrop-downlistsallthecurrentlydefinedproperties(includingsystem
properties).
CustompropertiescanbedefinedinthePreprocessorstep;see"Preprocessorstep"
onpage249.
Foranexplanationoftheobjectstowhichthepropertiesbelong,see"DataMapper
ScriptsAPI"onpage360.
l
Choose a propertybutton:Clickthisbuttontoopenafilterdialogthatletsyoufinda
propertybasedonthefirstfewlettersthatyoutype.
l
Type:Thedatatypeoftheselecteddata;see"Datatypes"onpage275.Makesurethat
thedataformatthattheDataMapperexpectsmatchestheactualformatofthedatainthe
datasource;see"DataFormat"onpage331.
Settings for location-based fields in a Text file
l
Left:Definesthestartofthedataselectiontoextract,countingthenumberofcharactersfromthe
left.E.g.1means:startwiththefirstcharacterfromtheleft.
l
Right:Definestheendofthedataselectiontoextract,countingthenumberofcharactersfrom
theleft.E.g.3means:stopafterthethirdcharacterfromtheleft.
l
Top offset:Theverticaloffset(thenumberoflines)fromthecurrentpointerlocationintheData
Viewer).
l
Height:Theheightoftheselectionbox,inthenumberoflines.Whensetto0,thisinstructsthe
DataMappertoextractalllinesstartingfromthegivenpositionuntiltheendoftherecordand
storetheminasinglefield.
l
Use selection:Clicktousethevalue(Left,Right,TopoffsetandHeight)ofthecurrentdata
selection(intheDataViewer)fortheextraction.
Note: Iftheselectioncontainsmultiplelines,onlythefirstlineisextracted.
l
Post Function:EnteraJavaScriptexpressiontoberunaftertheextraction.
Page 328