ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

  • Overview
  • Columns of Table controls populated 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
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 indices remain synchronized.
  • adding or inserting a row in the Table control inserts an element in all columns.
  • deleting a row in the Table control will delete an element in all columns.
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 the calculated columns:
  • the column content is recalculated whenever a row is displayed. It is not stored.
  • the formula of a calculated column must be written in the "Displaying a table 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:
WD HTML Export 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.
WD JAVA Calls 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)
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment