ICubeMetaUpdateEx.FromRevision

Syntax

FromRevision: Integer;

Description

The FromRevision property determines key of the revision, starting from which data of the time series database will be copied.

Example

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;

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.FromRevision := 10;

RubUpdateEx.RdsDatabase := Rub.Database;

RubUpdateEx.Apply(Progress);

End Sub Main;

After executing the example the time series database FC is copied to the root folder of the repository. The identifier of the copy is FC_COPY. Data of the modified time series is copied starting from the revision with the key 10.

See also:

ICubeMetaUpdateEx