Determines the value of a subtable field.
Parameter |
Type |
Description |
|---|---|---|
$subtable |
string |
Name of the subtable |
$row |
int |
ID of the row |
$fieldname |
string |
Name of the column |
The format of the return depends on the type of the subtable column.
Type |
Format |
Example |
|---|---|---|
Text |
Output as text |
Text … |
Integer |
Output as integer |
1000 |
Decimal |
Output as decimal value |
1000.00 |
Attachment |
Output of the directory and file name below the JobRouter upload directory |
030df2c553e040cc89b943081d682114/test.pdf |
Long text |
Output as text |
Text … |
Date |
Output in format YYYY-MM-DD |
2012-01-20 |
If an error occurs, the function throws a JobRouterException.
Example:
$attachment = $this->getSubtableValue('ATTACHMENT', 1, 'MATERIAL');