Selected: Boolean;
The Selected property determines whether visualizer tree area is selected.
Available values:
True. Visualizer tree area is selected.
False. Visualizer tree area is not selected.
Executing the example requires that the repository contains an express report with the EXPRESS identifier. Displaying of bubble tree is set up in the express report.
Add links to the Express, Metabase, Visualizators system assemblies.
Sub UserProc;
Var
Metabase: IMetabase;
EaxAnalyzer: IEaxAnalyzer;
BubbleTree: IVZBubbleTree;
RootItem: IVZTreeItem;
Items: IVZTreeItems;
Index: Integer;
Item: IVZTreeItem;
Model: IVZTreeModel;
Begin
Metabase := MetabaseClass.Active;
EaxAnalyzer := Metabase.ItemById("EXPRESS").Edit As IEaxAnalyzer;
BubbleTree := EaxAnalyzer.BubbleTree.BubbleTree;
// Tree model
Model := BubbleTree.Model;
// Bubble tree root element
RootItem := Model.RootItem;
RootItem.Selected := True;
Debug.WriteLine("Root element identifier: " + RootItem.ID);
// Parent elements of tree
Items := RootItem.Items;
Debug.WriteLine("=== Child elements===");
For Index := 0 To Items.Count-1 Do
// Identifiers of child elements by index
Item := Items.Item(Index);
Debug.WriteLine((Index+1).ToString + ". Identifier: " + " " + Item.ID + ", parent: " + Item.Parent.ID);
End For;
(EaxAnalyzer As IMetabaseObject).Save;
End Sub UserProc;
After executing the example the console displays the following information:
Root element identifier.
Child element identifiers and corresponding parent element identifiers.
See also: