IRubricatorInstance.RevisionsDimensionPoint

Syntax

RevisionsDimensionPoint(Factor: Integer; CalendarPoint: DateTime): IDimInstance;

Parameters

Factor - factor key, which revision data must be obtained.

CalendarPoint - date, which data must be obtained.

Description

The RevisionsDimensionPoint property returns factor revision dictionary data on the specific date.

Example

Executing the example requires a time series database with the OBJ_RUBRICATOR identifier. A factor with the 1 key is created in the database.

Sub Main;

Var

MB: IMetabase;

RubDesc: IMetabaseObjectDescriptor;

RubrIn: IRubricatorInstance;

RevDim: IDimInstance;

DimEl: IDimElements;

DimAtt: IDimAttributesInstance;

DimA: IDimAttributeInstance;

i, j: integer;

Begin

MB := MetabaseClass.Active;

RubDesc := MB.ItemById("OBJ_RUBRICATOR");

RubrIn := RubDesc.Open(Null) As IRubricatorInstance;

RevDim := RubrIn.RevisionsDimensionPoint(12195998, DateTime.Parse("01.01.2002 00:00:00"));

DimEl := RevDim.Elements;

DimAtt := RevDim.Attributes;

For j := 0 To DimEl.Count - 1 Do

Debug.WriteLine(Element: + j.ToString);

For i := 0 To DimAtt.Count - 1 Do

DimA := DimAtt.Item(i);

Debug.WriteLine(Attribute: + DimA.Attribute.Name + . Value: + DimA.Value(j));

End For;

End For;

End Sub Main;

After executing the example data of revisions dictionary for the factor with the 1 key on January, 1st, 2002 is displayed in the console window.

See also:

IRubricatorInstance