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 / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Tabla
  • Characteristics of Table controls (by default)
  • Table control populated programmatically
  • Columns
  • Miscellaneous
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
Creates a Table control from the items of a data file (view or query). Each column of the control is bound to an item in the data file. The width of the columns changes automatically according to the data in the file or query.
This function is used to get a Table control adapted to the browse of a specific data file.
// Affiche le contenu du fichier "CLIENTS" dans un champ Table fichier
BuildBrowsingTable(TABLE_TABLE1, "CLIENTS", taWithAutoID)
// Affiche le contenu d'une requête dans un champ Table par programmation
IF HExecuteQuery(REQ_LISTE_CLIENTS_ACTIFS) = True THEN
BuildBrowsingTable(TABLE_CLIENTS, ...
REQ_LISTE_CLIENTS_ACTIFS, taFillTable)
END
Sintaxis
BuildBrowsingTable(<Table control> , <Data file> [, <Options>])
<Table control>: Control name
Name of the Table control (based on a data file or populated programmatically).
Caution: This control must exist in the window. It may have been created by ControlCreate.
The records in the data file can be viewed directly if this parameter corresponds to a Table control based on a data file.
<Data file>: Character string
Name of data file, view or query used as a base for creating the Table control.
<Options>: Optional constant (or combination of constants)
Configures the creation mode of columns in the Table control.
Operating mode with the constantDefault operating mode
taWithBinaryBinary items (link composite key for example) are added to the Table control.By default: Binary items (link composite key for example) are not added to the Table control.
taWithAutoIDA column is generated for the automatic identifier.By default: No column for the automatic identifier.
taWithDetailsBindingA sub-table is automatically generated to display the bound items from the data files of the analysis. By default: No "row details" window is displayed.
Novedad versión 2024
taSingleLineColumn
Text columns are created with Property Multiline to False by Default. By default: Text columns corresponding to memo items are Multiline and other text columns are monoline..
Novedad versión 2024
taMultiLineColumn
Text columns are created with Property Multiline to by Default. By default: Text columns corresponding to memo items are Multiline and other text columns are monoline..
taKeepBrowseKeyThe search key of the Table control based on a data file does not change (this search key is returned by the BrowsedItem property).By default: The first key item found is positioned as search key.
taKeepColumnThe existing columns in the Table control are not deleted.By default: The existing columns are deleted.
taItemCaptionThe captions of items are used for the titles of columns.By default: The name of the item is used as column title.
taByLogicalOrderThe columns are created according to the logical order of items defined in the data model editor.
For the queries, the logical order and the physical order of items are identical.
By default: The physical order of the items in the data file is used.
For the queries, the logical order and the physical order of items are identical.
taFillTableTable controls are populated programmatically with the content from the data file (Caution: long operation that can saturate the memory).By default: Table controls are not populated programmatically.
taWithAutoIDInput allowed in the column associated with the automatic identifier (if it exists and if the Table control is in edit).
taNoAdjustThe width of the columns is not adjusted (the records are not read).
taNoMemoTextThe 'text memo' items are not added into the Table control.By default: The "text memo" items are added into the Table control.
taNoMemoImageThe "image memo" items are not added into the Table control.By default: The "image memo" items are added into the Table control.
Observaciones

Characteristics of Table controls (by default)

  • The columns of Table control defined in the editor are deleted.
  • The input modes defined in the editor for the Table control are kept.
  • A column whose type is identical to the item type is created for each item of the data file.
  • No column is created for the binary memo items (a column is created for the text memo items or for the image memo items).
  • The properties of Table controls and columns are updated to allow the file to be browsed through:
    <Champ Table>.FichierParcouru = <Nom du fichier de données>

    and for each column:
    <Nom Colonne>.LiaisonFichier = <Nom de la rubrique associée>
    <Nom Colonne>.RubriqueParcourue = <Première clé du fichier de donnée>
WINDEVReportes y ConsultasCódigo de Usuario (UMC)

Table control populated programmatically

If <Table control> corresponds to a Table control populated programmatically, no data is displayed (the Table control is empty) but the Table control and column properties are assigned like in the case of a Table control based on a data file.
To display data in the Table control, use the TableAdd or BuildBrowsingTable functions with the taFillTable constant.
Remark: The taFillTable constant cannot be used to programmatically populate Table controls with image memos. To add an image into a Table control populated programmatically, the corresponding file must be found in the application library (WDL file) or it must be accessible from the current computer.

Columns

The created columns are named "_COL1", "_COL2", "_COL3", etc. These columns are accessible by programming via the indirection operator { }.
You cannot write:
TABLE_TABLE1._COL1.Largeur = 120 // Génère une erreur "_COL1 inconnu"
You must write:
{"TABLE_TABLE1._COL1"}..Width = 120

Miscellaneous

  • Function BuildBrowsingTable traverses the data file. The current record may be modified once this function has been used.
  • The table is populated by BuildBrowsingTable in a parallel process in the background: if the data source is a query, this query must not be freed before closing the window or before reinitializing the Table control.
Componente: wd290obj.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 01/02/2024

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