Show contents 

Cubes > Cubes Assembly Interfaces > ICubeMetaUpdateEx > ICubeMetaUpdateEx.FromRevision

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 UserProc;
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 UserProc;

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

See also:

ICubeMetaUpdateEx