IVZBubbleTree.Captions

Syntax

Captions: IVZItemsNames;

Description

The Captions property determines labels for bubble tree elements.

Example

Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier containing bubble tree. Display collection of labels to the bubble tree elements.

Add links to the Metabase, Express, Visualizators system assemblies. The specified procedure should be called from the Main entry point.

Sub UserProc;
Var
    Metabase: IMetabase; 
// Repository
    EaxAnalyzer: IEaxAnalyzer; // Express report
    BubbleTree: IVZBubbleTree; // Bubble tree
    i: Integer; // Loop counter
    AllKeys: IVZStringArray;
    Key, Captions: String;
Begin
    
// Get repository object
    Metabase := MetabaseClass.Active;
    
// Get express report object  
    EaxAnalyzer := Metabase.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
    
// Get bubble tree
    BubbleTree := EaxAnalyzer.BubbleTree.BubbleTree;
    
// Get all label keys
    AllKeys := BubbleTree.Captions.AllKeys;
    
// Display collection of labels to bubble tree elements
    For i:=0 To AllKeys.Count-1 Do 
        Key := AllKeys.Item(i);
        Captions := BubbleTree.Captions.Item(Key);
        BubbleTree.Captions.Item(Key) := Captions;
        Debug.WriteLine(Captions);
    
End For;
End Sub UserProc;

After executing the example the console displays labels to the bubble tree elements:

Belgorodskaya Oblast

Kirovskaya Oblast

Tulskaya Oblast

Vladimirskaya Oblast
...

See also:

IVZBubbleTree