ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Table functions
  • Example: Creating a Table control from the items in a data file
BuildBrowsingTable (Example)
Example: Creating a Table control from the items in a data file
The following example is used to dynamically create a Table control from the items in a data file while keeping the existing columns of the Table control in the window editor. Then, all the useless columns are made invisible.
IF bFirstCreation = True THEN
// Creates the Table control and keeps the existing columns in the editor
BuildBrowsingTable(TABLE_Table1, "Task", taKeepColumn)
END
// Hides the useless items
{"TABLE_TABLE1._COL3"}..Visible = False // Status of the task
{"TABLE_TABLE1._COL6"}..Visible = False // Order of the task
{"TABLE_TABLE1._COL7"}..Visible = False // Editor link
{"TABLE_TABLE1._COL10"}..Visible = False  // Validation date
{"TABLE_TABLE1._COL11"}..Visible = False  // Validated by
// Resizes the column containing the caption of the task
{"TABLE_TABLE1._COL2"}..Width = 400  // Caption of the task
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/31/2022

Send a report | Local help