IDatabaseTree Interface
Name | Description | |
---|---|---|
![]() |
HideCode | Gets or sets a value indicating whether a IDatabaseTreeItem.Code is shown besides a family text when the tree is displayed. |
![]() |
Items | Gets top-level items of this tree sorted by their IDatabaseTreeItem.Code property. |
![]() |
KeyField | Gets or sets a field that serves as a key field in this tree. |
Name | Description | |
---|---|---|
![]() |
AddItem(string) | Adds an item with the specified code to the tree. |
![]() |
GetItem(string) | Gets an item with the specified code in the tree. |
![]() |
RemoveItem(string) | Removes an item with the specified code from the tree. |
The articles and article sets may be grouped into families and sub-families using a field as an index (key field). A value of a key field is called code. Only four fields can be used as a key field: Reference (default), Family, User field, Manufacturer. In other words, a family represents a branch in the tree structure.
The tree is built up by decoding the key field codes from left to right and sorting them numerically and alphabetically. A node on level n+1 is encoded after its parent according to the rule:
Node (n+1) = node (n) + tag
For example, the node 241 is a sub-node of the node whose code is 24.
Available since QDV 7.14.501.