|
|
|
|
|
- Overview
- How to?
- Creating a TreeView Table control based on a data file
- Creating a TreeView Table control based on a data file
- Defining the data sources for the TreeView Table control (control description window)
- Defining the bindings for the columns of the TreeView Table control
TreeView Table control based on a data file
This type of TreeView Table control is linked to a data file or query. In this case, the TreeView Table can only be linked to a data file or query loaded in memory.
Defining the data sources for the TreeView Table control (control description window) To define the data sources of the TreeView Table control: - Open the control description window.
- In the "Content" tab, select "File/Query" if necessary.
- Click the "Add" button. A "<None>" data source is automatically added.
- Define the characteristics of this source:
- Source: corresponds to the data file or query that will be looped through.
- Browse: corresponds to the search key used to loop through the data source.
- Display: corresponds to the item displayed in the first column of the TreeView Table control.
Remark: For each level, you can customize the collapsed and the expanded image.
- If necessary, define the source of the link of the previous level. For example, if the first level loops through the Customer data file, the second one can loop through the Orders data file. The items that will be used to set the relation are "Customer.CustomerID" and "Orders.CustomerID". By default, the source of the link is automatically deduced from the items and links defined in the analysis.
- Define as many sources as necessary.
The first column of the TreeView Table control displays the data from the selected sources. Special case: Recursive TreeView Table control based on a data fileA TreeView Table control based on a data file can display records that depend on the previous record (standard case of a recursive relationship to manage parents / children, for example) To use this type of TreeView Table control, you can set a reflexive relationship in the "Content" tab of the control description window. The "root" rows are associated with a record for which the bound item corresponds to 0 or empty (according to the type of item). Defining the bindings for the columns of the TreeView Table control By default, the first column of the TreeView Table control (column representing the hierarchy) displays the elements specified in the data sources ("Content" tab, value set in the "Display" field of the different data sources). The TreeView Table control can also display other data in its other columns. To define the bindings of the different columns: - If necessary, create a new column ("New" in the description window of the TreeView Table control) or select an existing column.
- Go to the "Binding" tab and define the desired data binding. The binding can be:
- single-file: in this case, the binding can be set to one of the source files of the TreeView Table control.
If one of the records displayed in the TreeView Table control is modified, the changes reflect automatically in the associated data file. - multi-file: in this case, the binding can be set to a data file related to a source file.
If one of the records displayed in the TreeView Table control is modified, the changes do not reflect automatically in the associated data file. It must be managed programmatically.
- Validate.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|