RevisionsDimension: IDimInstance;
The RevisionsDimension property determines the revisions dictionary from which data on the Revisions attribute are to be loaded to the component substitutions.
Executing the example requires a form with the Button1 button and the MetaAttributesEdit component named MetaAttributesEdit1. The repository must contain the 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 substitution list of the MetaAttributesEdit1 component.
See also: