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
  • Characteristics of the columns in a Table control in a window
  • Image of column title
  • Resize column
  • Sortable column
  • Movable column
  • Search (Search icon / Filter)
  • Fixed column, anchored column
  • Progress Bar column
  • Description
  • Progress bar with a different upper bound for each row of the Table control
  • Properties that can be used on a Progress Bar cell
  • Calculated column and Check Box column (Table control populated programmatically and with in-memory data source)
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Overview
In a Table field, columns are used to display information.. The same type of information is displayed in the same column.
The Table field description window lets you add, delete and specify column characteristics using various tabs.. Specific characteristics can be configured for each type of column.
The following types of data can be displayed in a column:
  • Text
  • Currency
  • Time
  • Combo Box
    AndroidiPhone/iPad Not available.
  • Image
  • Progress Bar
  • Numeric
  • Date
  • Caption
  • Check Box
    AndroidiPhone/iPad Not available.
  • Duration
    Android Not available.
  • Container
    (not available in Java and in WINDEV Mobile)
The following paragraphs present the main characteristics of the Table control columns displayed in a window, available regardless of the column type.
Remarks:
Characteristics of the columns in a Table control in a window
Most characteristics of the columns found in a Table control are configured in the "General" tab of the characteristics of each column.
Characteristics of columns

Image of column title

This option allows you to define the image that will be used as the background image of the column title.
AndroidiPhone/iPad Table control columns cannot have an image in the column title.

Resize column

If a column is resizable:
  • The user can change the size of the columns with the mouse.
  • This column will be automatically resized with the "Adjust all columns" option in the context menu of the column header.
Programming in WLanguage:
  • You can resize columns using TableAdjust.
  • You can make columns resize to fit their content by using AAFExecute with the aafAdjustAllColumns constant.

Sortable column

The user will be able to sort the column via a click performed on its header. This option is available:
  • for all columns in a Table or TreeView Table control populated programmatically.
  • for some columns in the Table control based on a data file (only columns based on key items and without filter).

Note: At runtime, the Ascending sort and Descending sort icons indicate the column sort direction at all times.. You can customize the images used. For more details, see Configuring the titles of the columns found in a Table control.
WLanguage programming: Sorting can also be programmed using the:
TableSortUsed to sort the content of a Table or TreeView Table control on one or more columns
TableSortChildUsed to sort a branch of a TreeView Table control on one or more columns (lexicographical sort).

The SortOption property allows you to define the sorting options.

Movable column

The user will be able to move the column in the Table control and to change the order in which the columns are displayed.
AndroidiPhone/iPad The columns of the Table control cannot be moved.

Search (Search icon / Filter)

The user will be able to implement a "Starts with" filter in the column. Only the elements starting with the letters typed for the column will be displayed.
AndroidiPhone/iPad The user clicks the column header to open the context menu.
  • In the context menu, the user selects the search icon:
    Search icon
  • In the input area that is displayed at the top of the Table control, the user types the sought word.
    Edit the search
The search icon is available:
  • for all the columns in a Table control populated programmatically.
  • for the columns of Table controls based on a data file with automatic iteration (only sortable columns based on key items, and without filter).
Attention: The magnifying glass is not available:
  • for items associated with a multi-file link.
  • for the Table controls that use a non-proportional scrollbar ("Proportional scrollbar" unchecked in the "Details" tab of the description window of the Table control).
Programming: This function can be programmed using the:
TableSearchSearches for a value in a column of a Table or TreeView Table control based on a data file or populated programmatically.
TableSearchChildSearches for a value in a column of a TreeView Table control, in a specified branch.

Fixed column, anchored column
Progress Bar column
AndroidiPhone/iPad

Description

The configuration of the progress bar is performed in the "General" tab of the column description. You can configure:
  • the initial value of the progress bar,
  • the maximum value of progress bar,
  • the active image and the background image.
The "Details" tab of the column description is used to configure the display of the progress percentage, ...
AndroidiPhone/iPad

Progress bar with a different upper bound for each row of the Table control

You have the ability to display a progress bar with a different upper bound for each row. In this case, you must:
  1. Assign the MaxValue property to 100 for the column.
  2. Perform the desired calculation in the display code of the row:
    <Colonne Jauge> = <Valeur Jauge>*100/<Valeur Max>
AndroidiPhone/iPad

Properties that can be used on a Progress Bar cell

You can use the MaxValue and MinValue properties on the Progress Bar cells using the following syntax:
<Nom de la colonne>[<Numéro de la ligne>].BorneMax = <Valeur>
<Nom de la colonne>[<Numéro de la ligne>].BorneMin = <Valeur>
Calculated column and Check Box column (Table control populated programmatically and with in-memory data source)
Versión mínima requerida
  • Versión 12
Esta página también está disponible para…
Comentarios
Table with create columns runtime
FiltraUsuarios("")

//AlteraNomeColunasQuery("TABLE_usuario","QRY_Select_All_Usuarios")

//usando a estrutura da query
sColuna is string = pTableNameControl+".COL_Column"
ItemList is string = HListItem( {pQueryName,indFile} , hLstDetail)
CountCampos is int = StringCount(ItemList,CRLF)

//c is int
//
//loop (CountCampos)
// c+=1
//
// //TableInsertColumn /// windev
//
//END


ItemList = Replace(ItemList,CRLF,";")
ItemList = Replace(ItemList,TAB,";")
x is int = 6
y is int = 0
VARTEXT is string
LOOP(CountCampos)
y+= 1
VARTEXT = ExtractString(ItemList,x,";",FromBeginning)
{sColuna+y,indControl}..Caption = VARTEXT
{sColuna+y,indControl}..Visible = True
x+= 6
END
BOLLER
25 06 2018

Última modificación: 21/09/2024

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