ExecuteResult(Matrix: IMatrix): ICubeExecuteResult;
Matrix. Data matrix, by which the cube should be calculated.
The ExecuteResult property returns information on the cube calculation by the specified matrix.
Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier.
Sub UserProc;
Var
Mb: IMetabase;
Cat: IMetabaseObjectDescriptor;
Inst: IRubricatorInstance;
CubeInst: ICubeInstance;
Dest: ICubeInstanceDestination;
Exec: 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;
CubeInst := Inst As ICubeInstance;
Dest := CubeInst.Destinations.DefaultDestination;
Exec := Dest.CreateExecutor;
FactorIO := Exec As IRubricatorFactorIO;
FactorIO.ValidationValues := False;
FactorIO.MultipleFactors := False;
FactorIO.Dependencies := False;
Exec.PrepareExecute(Null);
Exec.PerformExecute;
Mat := Exec.Matrix;
CubeExeRes := CubeClass.ExecuteResult(Mat);
Debug.WriteLine(CubeExeRes.Destination.Name);
ExeRes := CubeExeRes As IRubricatorExecuteResult;
MatRes := ExeRes.Values;
End Sub UserProc;
After executing the example the CubeExeRes variable contains the object that contains results of execution for the entire time series database.
See also: