ShowColumn()
The ShowColumn() function will show a specified column in specified table.
CAUTION! The ShowColumn() function does not work when the table is displayed in the form mode. In this case, you can use ShowField() in the table rule or in foreachrow loop. This applies to 250331 and previous versions of AMODIT. Since 250630 and next versions of AMODIT the ShowColumn() function works also for tables displayed in the form mode.
Syntax
ShowColumn("tableName[>tableName>...]","fieldName");
Function arguments
- tableName – (String) The name of the table to in which the column should be shown
- fieldName – (String) The name of the field in table, column with this field will be shown
Return value
This function returns Boolean. This function always returns true
Examples
Example 1: This will show column named 'Quantity’ in Orders table.
ShowColumn("Orders","Quantity");
Example 2: This will show column named 'Quantity’ in Positions table that is added inside Orders table.
ShowColumn("Orders>Positions","Quantity");