|
|
|
|
|
- Overview
- How to?
- Create a TreeView control linked to a data file
- "Populate sub-levels dynamically" option
- Manipulating a TreeView control based on a data file
TreeView control linked to a data file
It is possible to create TreeView control fields directly linked to the data.. You can create a TreeView control File TreeView control: the TreeView control will be linked to a data file or a query. TreeView control programming has been greatly simplified: you no longer need to use the Arbrexxx. Create a TreeView control linked to a data file To create a TreeView control linked to a data file: - Create a TreeView control (on the "Creación" tab, in the "Datos" group, click "TreeView").
- Open the control description window (select "Description" in the context menu).
- In the "Content" tab, select "Data file/Survey".
- Click "Add". A "<None>" data source is automatically added.
- Define the characteristics of this source:
- Source: corresponds to the name of the data file or query to be browsed.
- Route: corresponds to the route key used to browse the source.
- Displayed: corresponds to the item displayed in the TreeView control.
- Add (if necessary) a second source for the next level ("Add" button). In this case, you have the ability to define the source of the link for 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.
Special case: TreeView control linked to a recursive data file A Tree field linked to a data file can display records dependent on the previous record (a classic case of a recursive link allowing, for example, to manage parents/children). To manage this type of TreeView control, a reflexive link can be defined in the "Contents" tab of the TreeView control description window. - Validate the TreeView control description window. The TreeView control is now linked to a data file.
Manipulating a TreeView control based on a data file A TreeView control linked to a data file is very easy to handle: - If the TreeView control can be edited, the changes made to the control are automatically reflected to the bound data source.
- If the TreeView control does not allow user input, the bound data source will not be modified.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|