Please enable JavaScript to view this site.

R:BASE 11 Help

Navigation: How To (Forms, Reports, and more) > Forms > Form Designer > Form Controls > Database Controls

DB Tree View

Scroll Prev Top Next More

 

DB Tree View

The control displays a table-driven object containing a hierarchical list of items (nodes), such as the headings in a document, the entries in an index, or the files and directories on a disk.

 

Each node consists of a label and an optional image, where each node can have a list of subitems associated with it. By clicking an item, the user can expand or collapse the associated list of subitems. The control is ideal for designing menu-driven applications.


 

The DB Tree View control supports the ability to search the nodes for text. This functionality is beneficial to the users where a DB Tree View contains many nodes with several levels. Pressing [Ctrl] +[F] will display the following search dialog.

 

The PROPERTY command FINDNODE parameter has also been introduced to allow searching with the command syntax.

 

Example:

 

PROPERTY TreeViewControl FINDNODE 'Analysis'

 

Popup Menu support has been implemented for Tree View and DB Tree View controls, to offer a right click popup menu to run procedures. In the menu item's EEP, use the SelectedID property to capture the right-clicked menu item:

 

GETPROPERTY DBTreeView1 SelectedID vNodeID