IMetaAttributesEdit.RevisionsDimension

Syntax

RevisionsDimension: IDimInstance;

Description

The RevisionsDimension property determines the revisions dictionary, from which data on the Revisions attribute is loaded to the component substitutions.

Example

Executing the example requires a form with the Button1 button and the MetaAttributesEdit component named MetaAttributesEdit1. The repository contains a time series database with the OBJ_RUBRICATOR identifier.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

MB: IMetabase;

Rub: IRubricator;

RubInst: IRubricatorInstance;

Begin

MB := MetabaseClass.Active;

Rub := MB.ItemById("OBJ_RUBRICATOR").Bind As IRubricator;

RubInst := (Rub As IMetabaseObject).Open(Null) As IRubricatorInstance;

MetaAttributesEdit1.AddAttribute(Rub.Facts.Attributes.FindById("REV"));

MetaAttributesEdit1.RevisionsDimension := RubInst.RevisionsDimension(-2);

End Sub Button1OnClick;

After executing the example by clicking the button all revisions and labels from time series database are included into the substitutions list of the MetaAttributesEdit1 component.

See also:

IMetaAttributesEdit