Programming Guide : Working with Arrays, Table Fields, and Collections : Table Fields : Table Fields and Associated Arrays
 
Share this page          
Table Fields and Associated Arrays
There are three ways to create a table field in OpenROAD Workbench:
You can create an activefield for each column, select them all, and then group them into a Tablefield.
You can Create Fields from Database Table, and select the table field option.
You can Create Fields from User Class, and select the table field option.
If you do not create the table field from a UserClass, OpenROAD provides a default unnamed user class for the underlying array. If you created the table field using a Group, the attribute names correspond to the names of the activefields that were grouped and have data types corresponding to the activefield's data types. If you created the table field from a database table, the names and values of the attributes correspond to the column names and data types of the table.
The data type of the array variable associated with the table field is the UserClass associated with it, either a named one, or the default unnamed one. The correspondence between array attributes and table field columns facilitates selection of multiple rows from a database table into the field display.