xfgrAddTable
xfgrAddTable(
t_tableName
[ ?tableColProps l_tableColProps ]
[ ?tableRowProps l_tableRowProps |
?tableRowDefaultValues l_tableRowDefaultValues ]
[ ?groupName t_groupName ]
[ ?deviceName t_deviceName ]
[ ?defaultRows x_defaultRows ]
[ ?minRows x_minRows ]
[ ?maxRows x_maxRows ]
)
=> t / nil
Description
Adds a table to the xFGR Create form.
Arguments
|
t_tableName
|
The name of the table.
|
|
?tableColProps l_tableColProps
|
|
|
List of column and the properties of the column. Supported column types are integer, double, string, radio button, spin box, combo box, and check box.
|
|
?tableRowProps l_tableRowProps | ?tableRowDefaultValues l_tableRowDefaultValues
|
|
|
-
?tableRowProps: List of the values for rows. Each entry should have elements equal to column number and its value should match with type of column. This argument fixes the rows in table. You cannot add or delete rows. -
?tableRowDefaultValues: The default row value. You can add or delete rows.
|
|
?groupName t_groupName
|
|
|
The name of group where the table is be added. The group is the section in the xFGR Create form where custom fields will be added. Default value: Custom Options
|
|
?deviceName t_deviceName
|
|
|
The name of fluid guard ring devices for which the table is visible. By default, the table is visible for all fluid guard ring devices.
|
|
?defaultRows x_defaultRows
|
|
|
The number rows available when the table is visible for the first time. This argument is only applicable when the argument tableRowDefaultValues has been specified.
|
|
?minRows x_minRows
|
|
|
The minimum number of rows in the table. The default value is 0. This argument is only applicable when argument the ?tableRowDefaultValues has been specified.
|
|
?maxRows x_maxRows
|
|
|
The maximum number of rows in the table. The default value is 9999. This argument is only applicable when the argument ?tableRowDefaultValues has been specified.
|
Value Returned
|
t
|
The function is successful.
|
|
nil
|
The function is not successful.
|
Example
Adds a table to the xFGR Create form.
procedure(_xfgrCreateFormInit()
let((colProps rowProps)
;;There will be 4 columns. The type will be string, string, double, double
colProps = list(list("layer1" "string" "Layer1")
list("layer2" "string" "Layer2")
list("spacing" "double" "Spacing" "lineedit" 0.0)
list("layer2Width" "double" "Layer2 Width" "lineedit" 0.0)
)
rowProps = list(list("" "" 0.0 0.0) list("" "" 0.0 0.0)) ;;This will avoid add/ delete push button on table
xfgrAddTable(?tableName "implant_layer_ref" ?groupName "Implant Layers" ?tableColProps colProps ?tableRowProps rowProps ?deviceName "testFGR")
))
xfgrConfigureOptionsCB("r" "_xfgrCreateFormInit")
Return to top