IRubricatorInstance.RevisionsDimensionPoint

Syntax

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

Parameters

Factor. Indicator key, which revision data must be obtained.

CalendarPoint. The date, on which data will be obtained.

Description

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

Example

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

Sub UserProc;
Var
    MB: IMetabase;
    RubrInst: IRubricatorInstance;
    RevDim: IDimInstance;
    DimEl: IDimElements;
    DimAtt: IDimAttributesInstance;
    DimA: IDimAttributeInstance;
    i, j: integer;
Begin
    MB := MetabaseClass.Active;
    RubrInst := MB.ItemById("OBJ_RUBRICATOR").Open(NullAs IRubricatorInstance;
    RevDim := RubrInst.RevisionsDimensionPoint(12195998, DateTime.Parse("01.01.2020 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 UserProc;

After executing the example the console window displays data of revisions dictionary for the indicator with the specified key on January, 1st, 2020.

See also:

IRubricatorInstance