ResultRubricator: IRubricator;
The ResultRubricator property returns the created copy of the time series database.
Executing the example requires that the repository contains a time series database with the FC identifier.
Sub Main;
Var
mb: IMetabase;
RubUpdateEx: ICubeMetaUpdateEx;
Rub: IRubricator;
Progress: IMetabaseUpdateProgress;
CrInfo: IMetabaseObjectCreateInfo;
s: String;
RubRes: IMetabaseObject;
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(Progress);
RubRes := RubUpdateEx.ResultRubricator As IMetabaseObject;
Debug.WriteLine(RubRes.Key);
End Sub Main;
After executing the example the FC time series database is replicated to the repository root. The identifier of the copy is FC_COPY. The console window displays the copy key.
See also: