IRubricatorFactorIO.Dependencies

Syntax

Dependencies: Boolean;

Description

The Dependencies property determines whether to store or extract data by time series dependencies. True - extract or store data by dependencies, False - do not extract or store data by factors dependencies. Extracted data about dependencies can be obtained by means of the IRubricatorExecuteResult.Dependencies property.

Example

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

Sub Main;

Var

mb: IMetabase;

Cat: IMetabaseObjectDescriptor;

Inst: IRubricatorInstance;

Cub: ICubeInstance;

Dest: ICubeInstanceDestination;

Exe: ICubeInstanceDestinationExecutor;

Mat, MatRes: IMatrix;

FactorIO: IRubricatorFactorIO;

ExeRes: IRubricatorExecuteResult;

CubeExeRes: ICubeExecuteResult;

 Begin

mb := MetabaseClass.Active;

Cat := mb.ItemById("OBJ_RUBRICATOR").Bind;

Inst := Cat.Open(Null) As IRubricatorInstance;

Cub := Inst As ICubeInstance;

Dest := Cub.Destinations.DefaultDestination;

Exe := Dest.CreateExecutor;

FactorIO := Exe As IRubricatorFactorIO;

FactorIO.ValidationValues := False;

FactorIO.MultipleFactors := False;

FactorIO.Dependencies := True;

Exe.PrepareExecute(Null);

Exe.PerformExecute;

Mat := Exe.Matrix;

CubeExeRes := CubeClass.ExecuteResult(Mat);

Debug.WriteLine(CubeExeRes.Destination.Name);

ExeRes := CubeExeRes As IRubricatorExecuteResult;

MatRes := ExeRes.Dependencies;

 End Sub Main;

After executing the example the MatRes variable holds a matrix that contains data on time series dependencies in the time series database.

See also:

IRubricatorFactorIO