1.6

Table Of Contents
steps Object
Returns a steps object encapsulating properties and methods pertaining to the current
DataMapper process.
This object is available in an Extract, Condition, Repeat or Multiple Conditions step script.
Methods
The following table lists the methods of the steps object.
Method Description
currentPosition()
Returns the current position of the pointer in the data.
currentLoopCounter
()
Returns an integer value representing the current iteration of the
containing loop.
currentPage()
Returns an integer value representing the current page where the
current position is located, inside the current record.
currentPageHeight
()
Returns the height of the current page in millimeters.
currentPageWidth()
Returns the width of the current page in millimeters.
moveTo()
Moves the position of the pointer in the source data file.
moveToNext()
Moves the position of the pointer in the source data file to the next
line, row or node. The behavior and arguments are different for each
emulation type: text, PDF, tabular (CSV), or XML.
totalPages()
Returns an integer value representing the total number of pages
inside the current record.
Example
if(steps.currentPage > curPage) {
steps.moveTo(0, steps.currentPosition+14); /* Moves the current
Page 234