PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Overview
  • How to?
  • Creating a TreeView Table control on source
  • Defining the sources of the TreeView Table
  • Defining the bindings of the different columns in the TreeView Table on source
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
TreeView Table on source
Overview
A TreeView Table control on source is a TreeView Table bound to a variable or a set of variables.
Versions 18 and later
PHP The TreeView Table control is now available for PHP sites.
New in version 18
PHP The TreeView Table control is now available for PHP sites.
PHP The TreeView Table control is now available for PHP sites.
How to?
WINDEV Mobile

Creating a TreeView Table control on source

To create a TreeView Table control on source:
  1. On the "Creation" tab, in the "Data" group:
    • WINDEV Mobile expand "Table" and select "TreeView Table".
  2. Click at the desired location to create the control.
  3. Go to the "Content" tab of the TreeView Table control description window. Select the fill mode: "By variable".
    Filling by Variable
    This tab allows you to define the different sources of the TreeView Table. A TreeView Table based on a variable is bound to different sources, used to display nested records.
  4. If necessary, define the bindings of the different columns in the TreeView Table.

Defining the sources of the TreeView Table

To define the sources of the TreeView Table:
  1. Click the "Add" button. A "<None>" source is automatically added.
  2. Define the characteristics of this source:
    • Source: corresponds to the variable that will be browsed (advanced variable such as Google, RSS, ...).
    • Browse: corresponds to the variable used to browse the source.
    • Displayed: corresponds to the variable displayed in the first column of the TreeView Table.
  3. If necessary, define the source of the link of the previous level. For example, if the first level browses the garrCustomer variable, the second one can browse the garrCustomer.Order variable.
  4. Define as many sources as necessary.
The first column of the TreeView Table displays the "Displayed" data of the different selected sources.

Defining the bindings of the different columns in the TreeView Table on source

By default, the first column of the TreeView Table on source (column representing the hierarchy) displays the elements specified in the sources ("Content" tab, "Displayed" value of the different sources).
The TreeView Table can also display other data in its other columns.
To define the bindings of the different columns:
  1. Create a new column if necessary ("New" in the description window of the TreeView Table control) or select an existing column.
  2. Go to the "Binding" tab and define the desired data binding.
    Remark: The binding affects one of the source variables of the TreeView Table. If one of the elements displayed in the TreeView Table is modified, these changes are automatically applied to the bound variable.
  3. Validate.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment