ShowBranches: Boolean;
The ShowBranches property determines whether parent elements of observation object dimension will be displayed on tree map.
If the property is set to true, the root elements of observation object dimension will be displayed on tree map, otherwise – the tree map will display only selected children elements.
Executing the example requires that the repository contains an express report with the EXP identifier. The unit containing the example should have links to the Express, Metabase and Visualizators system assemblies. The specified procedure should be called from the Main entry point.
Disable parent elements displaying on tree map:
Sub UserProc;
Var
Metabase: IMetabase;
EaxAnalyzer: IEaxAnalyzer;
TreeMap: IVZTreeMap;
Begin
// Get the current repository
Metabase := MetabaseClass.Active;
// Get express report
EaxAnalyzer := Metabase.ItemById("EXP").Edit As IEaxAnalyzer;
// Get tree map
TreeMap := EaxAnalyzer.TreeMap.TreeMap;
// Disable parent element displaying
TreeMap.ShowBranches := False;
// Refresh map tree and save express report
EaxAnalyzer.TreeMap.Refresh;
(EaxAnalyzer As IMetabaseObject).Save;
End Sub UserProc;
As a result, parent element displaying is disabled on tree map.
See also: