IRubricatorExecuteResult.DataMatrix

Syntax

DataMatrix(Dictionary: RubricatorDictionary): IMatrix;

Parameters

Dictionary. Dictionary of time series database.

Description

The DataMatrix property returns matrix of values for the specified dictionary of the time series database.

Example

Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier.

Sub UserProc;
Var
    Mb: IMetabase;
    Inst: IRubricatorInstance;
    Cube: ICubeInstance;
    Dest: ICubeInstanceDestination;
    Exec: ICubeInstanceDestinationExecutor;
    Matr, MatRes: IMatrix;
    FactorIO: IRubricatorFactorIO;
    ExeRes: IRubricatorExecuteResult;
    CubeExeRes: ICubeExecuteResult;
Begin
    Mb := MetabaseClass.Active;
    Inst := Mb.ItemById("OBJ_RUBRICATOR").Open(NullAs IRubricatorInstance;
    Cube := Inst As ICubeInstance;
    Dest := Cube.Destinations.DefaultDestination;
    Exec := Dest.CreateExecutor;
    FactorIO := Exec As IRubricatorFactorIO;
    FactorIO.ValidationValues := False;
    FactorIO.MultipleFactors := False;
    FactorIO.Dependencies := True;
    Exec.PrepareExecute(Null);
    Exec.PerformExecute;
    Matr := Exec.Matrix;
    CubeExeRes := CubeClass.ExecuteResult(Matr);
    Debug.WriteLine(CubeExeRes.Destination.Name);
    ExeRes := CubeExeRes As IRubricatorExecuteResult;
    MatRes := ExeRes.DataMatrix(RubricatorDictionary.Values);
End Sub UserProc;

After executing the example the MatRes variable contains a matrix that includes data of the dictionary of values for the time series database database indicators.

See also:

IRubricatorExecuteResult