IVZMultiplyDataSource.ID

Fore Syntax

ID: String;

Fore.NET Syntax

ID: string;

Description

The ID property returns identifier of visualizer data source.

Fore Example

Executing the example requires that the repository contains an express report with the EXP identifier.

Ad links to the Express, Metabase, Visualizators system assemblies.

Sub UserProc;
Var
    Metabase: IMetabase;
    EaxAnalyzer: IEaxAnalyzer;
    BubbleTree: IVZBubbleTree;
    DataSource: IVZMultiplyDataSource;
Begin
    // Get repository object
    Metabase := MetabaseClass.Active;
    // Open express report
    EaxAnalyzer := Metabase.ItemById("EXP").Edit As IEaxAnalyzer;
    // Get bubble tree
    BubbleTree := EaxAnalyzer.BubbleTree.BubbleTree;
    // Get visualizer data source
    DataSource := BubbleTree.ColorVisual.ColorMapping.DataSource;
    // Set data source name
    DataSource.Title := "Visualizator data source";
    // Display information about data source
    Debug.WriteLine("Data source index: " + DataSource.ID);
    Debug.WriteLine("Data source title: " + DataSource.Title);
    Debug.WriteLine("Maximum dimension capacity: " + 
        DataSource.MaxTimelineIndex.ToString);
End Sub UserProc;

After executing the example the development environment console window shows index, title and maximum dimension capacity of the data source, obtained from the settings according to which bubble tree data is mapped with its children color fill:

Data source index: DataSource2

Data source title: visualizator data source

Maximum dimension capacity: 2

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Visualizators;
Imports Prognoz.Platform.Interop.Express;

Public Shared Sub Main(Params: StartParams);
Var
    Metabase: IMetabase;
    EaxAnalyzer: IEaxAnalyzer;
    BubbleTree: IVZBubbleTree;
    DataSource: IVZMultiplyDataSource;
Begin
    // Get repository object
    Metabase := Params.Metabase;
    // Open express report
    EaxAnalyzer := Metabase.ItemById["EXP"].Edit() As IEaxAnalyzer;
    // Get bubble tree
    BubbleTree := EaxAnalyzer.BubbleTree.BubbleTree;
    // Get visualizer data source
    DataSource := BubbleTree.ColorVisual.ColorMapping.DataSource;
    // Set data source name
    DataSource.Title := "Visualizator data source";
    // Display information about data source
    System.Diagnostics.Debug.WriteLine("Data source index: " + 
        DataSource.ID);
    System.Diagnostics.Debug.WriteLine("Data source title: " + 
        DataSource.Title);
    System.Diagnostics.Debug.WriteLine("Maximum dimension capacity: " + 
        DataSource.MaxTimelineIndex.ToString());
End Sub;

See also:

IVZMultiplyDataSource