IDatabaseTree Interface

Represents a tree hierarchy of article families in a database, e.g. in IArticleDatabase or ISetDatabase.
Public Interface IDatabaseTree
This language is not supported or no code example is available.
public interface IDatabaseTree
This language is not supported or no code example is available.
Name Description
Public property HideCode Gets or sets a value indicating whether a IDatabaseTreeItem.Code is shown besides a family text when the tree is displayed.
Public property Items Gets top-level items of this tree sorted by their IDatabaseTreeItem.Code property.
Public property KeyField Gets or sets a field that serves as a key field in this tree.
Top
Methods
 
Name Description
Public method AddItem(string) Adds an item with the specified code to the tree.
Public method GetItem(string) Gets an item with the specified code in the tree.
Public method RemoveItem(string) Removes an item with the specified code from the tree.
Top
Remarks
 

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.

Version
 
Available since QDV 7.14.501.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition