Please enable JavaScript to view this site.

Process Designer

Navigation: Javascript API > User dialog functions > Subtable view functions > Data > Read values

jr_loop_table(string subtableViewName, string callbackFunction)

Scroll Prev Top Next More

This function allows looping iteratively over a subtable view and executing functions for each row. Only the subtable view and the function that you have written for the single rows have to be entered. This function will be called up for each row of the subtable view and receives the name of the subtable view as well as the ID of the current row as parameters. Using these parameters any data can then be retrieved from the row.

Parameter

Type

Description

subtableViewName

string

Name of subtable view

callbackFunction

function

Optional: Specifies a callback function (see examples) to be called for each row.

 

Please note: The following parameters are expected: callback(subtableViewName, rowId)

Example:

function TableLoop (subtable, rowId) {

 jr_get_subtable_value(subtable, rowId, 'SPALTE1');

}

jr_loop_table('Untertabelle1', TableLoop);