|
jr_get_subtable_value(string subtableViewName, int rowId, string columnName) |
Scroll Prev Top Next More |
The function determines the value of an element as a JavaScript data type. This data type depends on the element type.
Parameter |
Type |
Description |
|---|---|---|
subtableViewName |
string |
Name of subtable view |
rowId |
int |
Row ID |
columnName |
string |
Column name |
Depending on the dialog elements, one of the following JavaScript data types is used for returning the value.
JobRouter element type |
JavaScript data type |
|---|---|
DATE |
Date |
TEXTBOX |
Text |
DECIMAL |
Number |
RADIO |
Text (stored default value) |
CHECKBOX |
Boolean using 0 (false) and 1 (true) |
With this function it is also possible to read the sum of a specific column of a sub-table view if the Sum option is enabled for the column. For this purpose, the value sum must be used as rowId.
Example:
var decimalValue = jr_get_subtable_value('Position_Data', 'sum', 'amount');