UsedRubricators: IRubricatorInstanceList;
The UsedRubricators property returns a collection of time series databases that are used as data sources for the workbook.
If the workbook uses several time series databases as its data sources, the ILaner.RubricatorInstance property returns the last element of the UsedRubricators collection.
Executing the example requires a form with the following components: the Button component named Button1, the LanerBox component named LanerBox1, and the UiErAnalyzer component named UiErAnalyzer1. UiErAnalyzer1 is a data source for LanerBox1. A workbook of the time series database in series mode should be loaded to UiErAnalyzer1.
Add links to the Cubes and Metabase 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: