Please enable JavaScript to view this site.

Process Designer

Navigation: PHP API > Work with Subtables

Row IDs of subtable rows (getSubtableRowIds)

Scroll Prev Top Next More

This function allows you to determine the row ids of the subtable rows for this step in order to e.g. access specific rows.

Parameter

Type

Description

$subtable

string

Subtable name

This function returns an array, which contains the row ids of all entries in the subtable for this step. The row IDs correspond to the column row_id in the subtable.

Example:

// determining RowIds

$rowIds = $this->getSubtableRowIds('INVOICEITEMS');

 

// Loop over all rows

foreach ($rowIds as $rowId) {

    $position = $this->getSubtableValue('RECHNUNGSPOSITIONEN', $rowId, 'POSITION');

}