ILaner.UsedRubricators

Syntax

UsedRubricators: IRubricatorInstanceList;

Description

The UsedRubricators property returns a collection of time series databases that are used as data sources for the workbook.

Comments

If the workbook uses several time series databases as its data sources, the ILaner.RubricatorInstance property returns the last element of the UsedRubricators collection.

Example

Executing the example requires a form with the Button1 button, the LanerBox component named LanerBox1 and the UiErAnalyzer component which is used as a data source for LanerBox. The workbook of the time series database in series mode must be loaded to UiErAnalyzer1. It is also required to add links to the Metabase and Cubes system assemblies.

Click the button to start executing the example.

    Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
    Var
        Laner: ILaner;
        RubList: IRubricatorInstanceList;
        i: Integer;
        RubrInst: IRubricatorInstance;
    Begin
        Laner := UiErAnalyzer1.ErAnalyzer.Laner;
        RubList := Laner.UsedRubricators;
        For i := 0 To RubList.Count - 1 Do
            RubrInst := RubList.Item(i);
            Debug.WriteLine((RubrInst.Rubricator As IMetabaseObject).Name);
        End For;
    End Sub Button1OnClick;

After executing the example the console window shows names of the time series databases that are used as data sources for the loaded workbook.

See also:

ILaner