Show contents 

Cubes > Cubes Assembly Interfaces > ICubeMetaUpdateEx > ICubeMetaUpdateEx.ResultRubricator

ICubeMetaUpdateEx.ResultRubricator

Syntax

ResultRubricator: IRubricator;

Description

The ResultRubricator property returns the created copy of the time series database.

Example

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

Sub UserProc;
Var
    Mb: IMetabase;
    RubUpdateEx: ICubeMetaUpdateEx;
    Rub: IRubricator;
    CrInfo: IMetabaseObjectCreateInfo;
    RubRes: IMetabaseObject;
    s: String;
Begin
    Mb := MetabaseClass.Active;
    RubUpdateEx := New CubeMetaUpdateClass.Create As ICubeMetaUpdateEx;
    Rub := Mb.ItemById("FC").Bind As IRubricator;
    RubUpdateEx.Rubricator := Rub;
    RubUpdateEx.Metabase := Mb;
    CrInfo := RubUpdateEx.CreateInfo;
    CrInfo.Parent := Mb.Root;
    s := Mb.GenerateId("FC_COPY");
    CrInfo.Id := s;
    CrInfo.Name := s;
    RubUpdateEx.CopyData := True;
    RubUpdateEx.CopyExtraObjects := True;
    RubUpdateEx.RdsDatabase := Rub.Database;
    RubUpdateEx.Apply(Null);
    RubRes := RubUpdateEx.ResultRubricator As IMetabaseObject;
    Debug.WriteLine(RubRes.Key);
End Sub UserProc;

After executing the example the FC time series database is duplicated to the repository root. Copy identifier - FC_COPY. The console window displays the copy key.

See also:

ICubeMetaUpdateEx