ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Table Column control
  • Overview
  • Attribute column: Store a value that will not be displayed
  • Creating a column of type Attribute to store a value
  • Manipulating the Attribute column programmatically
  • Attribute column: Associating an attribute to a control (container column)
  • Creating a column of type Attribute associated with a control
  • Manipulating the Attribute column associated with a control programmatically
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
WINDEV and WEBDEV allow you to use columns of type "Attribute" in Table controls. This type of column is used to:
  • store a value that will not be displayed in the Table control.
  • WINDEV simplify the use and programming of Container columns, by allowing you to associate an attribute to a control of the container column.
Attribute column: Store a value that will not be displayed

Creating a column of type Attribute to store a value

To create a column of type Attribute in a Table control:
  1. If necessary, create a Table control (based on a data file, populated programmatically or based on a variable).
  2. Create an Attribute column (via the description window or context menu of the Table control).
  3. If necessary, validate the control description window.
  4. The Attribute column does not appear in the Table control in the editor. The column is hidden by default and can only be manipulated programmatically.
Remarks:
  • The Attribute column must not be associated with a control.
  • Attribute columns are available for Table controls (based on a data file, populated programmatically or based on a variable) and TreeView Table controls,

Manipulating the Attribute column programmatically

Attribute columns can be manipulated programmatically like other column types. The column and its value will never be displayed in the control.
Attribute columns are taken into account when calling TableAdd, TableAddLine, TableInsert and TableInsertLine.
It can be manipulated directly, using the following syntax:
<Column_name>[Row_number]
WINDEV
Attribute column: Associating an attribute to a control (container column)

Creating a column of type Attribute associated with a control

To create a column of type Attribute in a Table control and associate it to a control in a Container column:
  1. If necessary, create a Table control (based on a data file, populated programmatically or based on a variable).
  2. Create an Attribute column (via the description window or context menu of the Table control).
  3. In the "General" tab of the column description window:
    • Select the associated control. This control must be in a container column of the Table control.
    • Select the control property associated with the Attribute column: the content of the column will correspond to the value of this property.
  4. Validate the control description window.
  5. The Attribute column does not appear in the Table control in the editor. The column is hidden by default and can only be manipulated programmatically.
Remarks:
  • Attribute columns are available for Table controls (based on a data file, populated programmatically or based on a variable) and TreeView Table controls,

Manipulating the Attribute column associated with a control programmatically

Attribute columns associated with a control can be manipulated programmatically like other column types. The column and its value will never be displayed in the control.
Attribute columns can make programming Container columns easier.
This makes it possible to change a characteristic of an element in a Container column by changing only the corresponding value in the associated Attribute column.
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/01/2024

Send a report | Local help