PC SOFT

WINDEV的在线文档

  • Overview
  • How to proceed?
  • Creating a browsing TreeView Table control
  • Defining the sources for the browsing treeview Table control
  • Defining the links for the columns of the browsing treeview Table control
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Browsing TreeView Table control

Overview
A browsing TreeView Table control is a treeview table linked to a data file or to a query. In this case, the treeview table can only be linked to a data file or to a query loaded in memory.

18版本和更高版本
WindowsLinux The TreeView Table control is now available for the WebDev sites.
18新版本
WindowsLinux The TreeView Table control is now available for the WebDev sites.
WindowsLinux The TreeView Table control is now available for the WebDev sites.

How to proceed?
WinDev

Creating a browsing TreeView Table control

To create a browsing TreeView Table control:
  1. In the window editor, click(or select "Insert .. Control .. TreeView table").In the ribbon:
    • WinDev On the "创建" pane, in the "数据" group, expand "表格和列表" and select "TreeView Table".
  2. Click the position where the control must be created in the window.
  3. Display the "Content" tab of the description of the Table control.
    This tab is used to define the different sources of the treeview table. Indeed, a browsing treeview table is linked to different sources, used to display the nested records.
    Select the fill mode: "File/Query".
  4. Define (if necessary) the links of the different columns found in the treeview table.
19版本和更高版本
WinDev "Delayed fill of sub-levels" option
When a browsing TreeView Table control includes several elements and sub-elements, its entire fill may be quite long.

The "Delayed fill of sub-levels" option allows you to fill each sub-level when the user clicks to expand a level. In this case, the filling time is spread out and the initial fill is much faster.

Note: To use this option on a TreeView Table control filled by programming, call ..添加子元素.

19新版本
WinDev "Delayed fill of sub-levels" option
When a browsing TreeView Table control includes several elements and sub-elements, its entire fill may be quite long.

The "Delayed fill of sub-levels" option allows you to fill each sub-level when the user clicks to expand a level. In this case, the filling time is spread out and the initial fill is much faster.

Note: To use this option on a TreeView Table control filled by programming, call ..添加子元素.

WinDev "Delayed fill of sub-levels" option
When a browsing TreeView Table control includes several elements and sub-elements, its entire fill may be quite long.

The "Delayed fill of sub-levels" option allows you to fill each sub-level when the user clicks to expand a level. In this case, the filling time is spread out and the initial fill is much faster.

Note: To use this option on a TreeView Table control filled by programming, call ..添加子元素.

Defining the sources for the browsing treeview Table control

To define the sources of the browsing treeview Table contorl:
  1. Click the "Add" button. A "<None>" source is automatically added.
  2. Define the characteristics of this source:
    • Source: corresponds to the data file or to the query that will be browsed.
    • Browse: corresponds to the search key used to browse the source.
    • Displayed: corresponds to the item displayed in the first column of the treeview Table control.
  3. Define (if necessary) the source of the link for the previous level. For example, if the first level browses the Customer file, the second one can browse the Orders file for example. The "Customer.CustomerID" and "Orders.CustomerID" items will be used for the link. By default, the source of the link is automatically deduced from the items and the links defined in the analysis.
  4. Define as many sources as necessary.
The first column of the treeview table displays the "Displayed" data of the different selected sources.

Special case: Recursive browsing treeview table

A browsing treeview table can display records that depend on the previous record (standard case of a recursive link used to manage the parents and the children)
To manage this type of treeview table, a reflexive link can be defined in the "Content" tab of the description window of the control.

Defining the links for the columns of the browsing treeview Table control

By default, the first column of the browsing treeview Table control (column representing the hierarchy) displays the elements specified in the sources ("Content" tab, "Displayed" value of the different sources).

The treeview Table control can also display other data in its other columns.

To define the links of the different columns:

  1. Create a new column if necessary ("New" button of the description window of the treeview table) or select an existing column.
  2. Display the "Link" tab and define the requested link. The link can be:
    • single-file: in this case, the link affects one of the source files of the treeview table.
      If a modification is performed in the records displayed by the treeview table, this modification is automatically applied to the associated data file.
    • multi-file: in this case, the link can be performed with one of the files linked to one of the source files.
      If a modification is performed in the records displayed by the treeview table, this modification will not be automatically applied to the associated data file. It must be managed by programming.
  3. Validate.