|
|
|
|
|
- Overview
- Columns of Table controls populated programmatically
Table control populated programmatically
A Table control populated programmatically is directly linked to lists stored in memory. This control automatically uses advanced methods to handle lists. One Table control populated programmatically corresponds to multiple lists used in parallel. Therefore: - all the columns contain the same number of elements.
- column indexes remain synchronized.
- new rows are inserted in all the columns of the Table control.
- when deleted, rows are removed from all the columns of the Table control.
The content of the Table control must be assigned programmatically. Columns of Table controls populated programmatically The columns of a Table control populated programmatically can be: - linked to a memory area (memory area associated with the control),
- calculated each time a row is displayed (calculated columns). For example, this is the case of columns used to make calculations based on data present in the current row.
For calculated columns: - the column content is recalculated each time a row is displayed. It is not stored.
- the formula of a calculated column must be written in the "Display a row" event of the Table control.
- it is not recommended to use editable columns. The events associated with a calculated column (entry, exit and modification) are of no use.
Related Examples:
|
Unit examples (WEBDEV): The memory Table control
[ + ] This example explains how to use a memory table in a WEBDEV application and it allows you to: - Clear a memory table - Fill a row in the memory table - Select a row - Sort a memory table - Delete a row from the memory table
|
|
Unit examples (WINDEV): The memory Table control
[ + ] Using a memory table in an application: - Clear a memory table - Fill a row in the memory table - Select a row - Sort a memory table - Delete a row from the memory table
|
|
Unit examples (WINDEV Mobile): The memory Table control
[ + ] Using a memory table in an application: - Clear a memory table - Fill a row in the memory table - Select a row - Sort a memory table - Delete a row from the memory table
|
|
Training (WINDEV): WD HTML Export
[ + ] This example explains how to export data in HTML format with the WLanguage functions. The following topics are presented in this example: 1/ the functions for managing the external files for generating the HTML file 2/ the operations performed on the HTML tags 3/ the generation of an HTML report The generation of an HTML page is performed from the data found in a memory table. By programming The principle consists in generating a text file with a "HTM" extension. The WLanguage function named "fWrite" will be used. This example easily writes the text strings by respecting the syntax of the HTML language. Automatically The principle consists in creating a report on table based on the memory table that was previously filled. The printout is requested with an HTML output.
|
|
Training (WINDEV): WD JAVA Calls
[ + ] WD JAVA Calls is an example containing two configurations of project: - A "Windows Application" configuration that is used to create the executable of the application - A "Java Application" configuration that is used to create the Java archive (.JAR) of the application This example is supplied with a JAR archive named "JavaFunction" external to the application. It presents the call to the methods of classes of this JAR archive via the WLanguage function named JavaExecuteFunction. This example also explains how a memory table can be filled (identical in Java mode and in Windows mode)
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|