13. Creating Dynamic Frames : How You Can Create and Modify Fields Dynamically : How You Can Create Dynamic Composite Fields : How You Can Create Dynamic Table Fields and Table Field Columns
 
Share this page                  
How You Can Create Dynamic Table Fields and Table Field Columns
You can create table fields dynamically in the same way as other composite fields, or you can add new columns to an existing table field (so long as its underlying array has not been declared in OpenROAD Workbench).
To add or remove columns dynamically from a table field created in Workbench, the variable for the table field must not be declared until runtime. When you create the table field, set the Variable Declared property to off. At runtime, add or remove the requisite columns. After the table field contains only the desired columns, declare an array variable for the table field with the DeclareData method of the ActiveField system class.
The following section describes the process of dynamically adding columns to a table field. For a discussion of dynamically removing table field columns, see How You Can Remove Columns from a Table Field (see How You Can Remove Columns from a Table Field). For a discussion of dynamically declaring the array variable for the table field, see How You Can Declare a Composite Field's Array Variable Dynamically (see How You Can Declare a Composite Field's Array Variable Dynamically).