2022.2

Table Of Contents
ThesearethecustompropertiesdefinedinthePreprocessorstepthathavetheirScopesetto"Each
record".See:"Propertiesandruntimeparameters"onpage227.
Properties
sourceRecord.properties.property;
Property Description
properties ReturnsanarrayofpropertiesdefinedinthePreprocessorstepwiththeRecordScope(i.e.dynamicallyresetwith
eachnewrecord).
steps
ReturnsastepsobjectencapsulatingpropertiesandmethodspertainingtothecurrentDataMapper
process.
ThisobjectisavailableinanExtract,Condition,RepeatorMultipleConditionsstepscript.
Methods and properties
Thefollowingtableliststhemethodsandpropertiesofthestepsobject.Theseareavailablein
Extract,Condition,Repeat,andActionsteps,dependingonthefiletype.
Method Description File
type
currentPosition Returnsthecurrentpositionofthepointerinthedata.Dependingonthetypeofdatabeingprocessed,the
returnvaluemaybeastring(e.g.XPathvalueinXML),aninteger(e.g.linenumbersintextottabulardata),
orameasureinmillimeters(e.g.PDFdata).
All
currentLoopCounter Anintegervaluerepresentingthecurrentiterationofthecontainingloop.Whenloopsarenested,you
haveaccesstotheiterationforthecurrentloopbutnottoanyoftheparentloops.
Note: Thisvariableisacountersoitstartsat1asopposedtoanindexwhichusuallystarts
at0.
All
"currentPage"onthe
facingpage
Returnsanintegervaluerepresentingthecurrentpagewherethecurrentpositionislocated,insidethecur-
rentrecord.
Text,PDF
currentPageHeight Theheightofthecurrentpageinmillimeters. PDF
currentPageWidth Thewidthofthecurrentpageinmillimeters. PDF
lines Anintegervaluerepresentingthenumberoflinesinthecurrentrecordofdata. CSV,TEXT
Page 397