Product Documentation
Virtuoso Layout Suite SKILL Reference
Product Version IC23.1, November 2023

xfgrSetColumnProps

xfgrSetColumnProps ( 
t_tableName
t_colName
[ ?visible {t|nil} ]
[ ?enable { t|nil } ]
[ ?value t_value ]
[ ?defValue t_defValue ]
[ ?label t_label ]
[ ?validValues l_values ]
) 
=> t / nil

Description

Sets properties of a column of a table. You can use this function from the xFGR Create form customization callback functions.

Arguments

t_tableName

The name of the table.

t_colName

Name of a column of the table.

?visible {t|nil}

Makes a column visible. Valid values are:

  • t: Makes a column visible.
  • nil: Makes a column invisible.

?enable {t|nil}

Enables or disables a cell. Valid values are:

  • t: Enables a cell of the table.
  • nil: Disables a cell of the table.

?value t_value

Value of a cell of the table.

?defValue t_defValue

Default value of a column.

?label t_label

Label of a column.

?validValues l_values

Range of valid values for a combo-box.

Value Returned

t

The properties of a column are set.

nil

The properties of a column are not set.

Example

Sets properties of a column of a table.

procedure(tableValueChanged(tableName row colName value prevValue)
    when(tableName == "myTable" && colName == "myColumn"
    xfgrSetColumnProps("myTable" "myColumn" ?visible t ?label "NewLabel")
    )
    )
;;xFGR Create form customization callback. It is triggered when cell is updated.
    xfgrTableCellValueChangedCB("r" "tableValueChanged")

Return to top
 ⠀
X