AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control Columna de tabla
  • Overview
  • How to create a Container column in a Table control?
  • Steps to follow
  • Main control of a Container column
  • Limitations
  • Using a Container column
  • Table control based on a data file or Table control based on a variable
  • Table control populated programmatically
  • Manipulating the controls found in the Container column
  • Limit: Unavailable control types
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Otros
Procedimientos almacenados
Overview
A table cell can contain a set of controls. Several types of controls can be include in a Container column:
  • Static control,
  • edit control,
  • Image control,
  • Button control,
  • etc.
A main control can be defined for the cell. This control will be the one used:
  • for the additions performed through programming,
  • for the sorts,
  • for the link with the data (link with an item or with a variable), ...
WEBDEV - Código Servidor Container columns are also available for hierarchical Table controls s.
How to create a Container column in a Table control?

Steps to follow

To create a Container column 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 a Container column (via the popup menu of the Table control or from the description window of the Table control).
  3. Increase (if necessary) the height of the rows found in the Table control with the mouse.
  4. Position the requested controls in the Container cell of the first row found in the Table control. It is possible to:
    • move the existing controls in the window to the Container column.
    • drag and drop the items from the analysis displayed in the "Project explorer" pane.
  5. In the description of the Container column, specify (if necessary) the main control of the column ("General" tab) and validate.

Main control of a Container column

The main control of the Container column corresponds to the control handled by default in the column. For example:
  • The sort of the Container column will be performed on the main control.
  • The searches performed in a Container column will be performed on the main control.
  • Programming additions and modifications: the value of the column specified in TableAddLine for example will be assigned to the main control.
  • Exports made from Table control (exports to Excel, Open Office, Word, etc.) will take into account the value of the column's main control.
  • If the Container column is linked to a data file or to a variable, the control actually linked will be the main control.
The definition of a main control in a Container column is optional.

Limitations

  • The captions of the options found in the Radio Button and Check Box controls cannot be customized for each row in a Container column.
Using a Container column

Table control based on a data file or Table control based on a variable

A Table control based on a data file can contain one or more Container columns. The controls found in this Container column can display the records of the data file for example.
In this case, the Table control is linked to the data file.
Each control found in the Container column is linked to the corresponding item.
If a main control is defined on the Table control, we advise you to:
  • solution 1: keep the link between the main control and the item found in the data file. The Container column is linked to no item.
  • solution 2: link the Container column to the item associated with the main control and delete the link at control level.

Table control populated programmatically

A Table control populated programmatically can contain one or more Container columns. The main control of the Container column will be manipulated programmatically by the Table control functions
For example, when a row is added by TableAddLine, only the main control of the column will be assigned with the value defined by the column. If several controls must be initialized in the column, you must use the syntax described in the next paragraph. For example:
NumLigne is int 
NumLigne = TableAddLine(TABLE_Table2, "Moulain")
COL_Colonne1[NumLigne].SAI_Prenom = "Florence"

Manipulating the controls found in the Container column

The controls found in a Container column can be handled via the following syntax:
<Nom de la colonne>[<Numéro de Ligne>].<Nom du champ>
For example:
  • Assigning a value to a control:
    COL_Colonne1[NumLigne].SAI_Prenom = "Florence"
  • Assigning elements to a Combo Box control of a container:
    COL_Colonne1[NumLigne].COMBO_Combo1.Contenu = "Elément 1" + CR + "Elément 2"
  • Modifying a control property:
    COL_Colonne1[NumLigne].PrixHT.Couleur = LightRed
  • Indirection on a control in a Container column:
    sNomChampDansColoneConteneur is string 
    sNomChampDansColoneConteneur = "TABLE_AvecColConteneur.COL_Conteneur[" + ...
    		nIndiceLigne + "].SAI_DansColConteneur"
    //ou
    //sNomChampDansColoneConteneur = "TABLE_AvecColConteneur[" + ...
    // 	nIndiceLigne + "].COL_Conteneur.SAI_DansColConteneur"
    
    Info({sNomChampDansColoneConteneur})
    Remark: For a Table control based on a data file, the controls of a Container column should be handled in the "Row display" event.
    Limit: Unavailable control types
    WEBDEV - Código Servidor In a Container column, only the following types of controls can be used:
    • Rich Text Area control,
    • Simple Static control,
    • Formatted display control,
    • Link control,
    • Button control,
    • Image control,
    • Edit control,
    • Combo Box control,
    • Radio Button control,
    • Check Box control,
    • List Box control,
    • Calendar control,
    • Rating control,
    • Slider control,
    • Bar Code control (not available in browser Table controls),
    • Social Link control (not available in AJAX or Browser Table controls).
      Versión mínima requerida
      • Versión 14
      Esta página también está disponible para…
      Comentarios
      Haga clic en [Agregar] para publicar un comentario

      Última modificación: 24/05/2024

      Señalar un error o enviar una sugerencia | Ayuda local