IRubricator.EditCalendar

Syntax

EditCalendar: IDimensionModel;

Description

The EditCalendar method enables the user to get calendar of the time series database in the edit mode.

Example

Executing the example requires that the repository contains a time series database with the FC_COMM identifier.

Sub UserProc;
Var
    MB: IMetabase;
    Rub: IRubricator;
    CalDim: ICalendarDimension;
    Lev: Integer;
Begin
    MB := MetabaseClass.Active;
    Rub := MB.ItemById("FC_COMM").Edit As IRubricator;
    CalDim := Rub.EditCalendar As ICalendarDimension;
    Lev := CalDim.CalendarLevelIndex(DimCalendarLevel.Year);
    CalDim.NameAttrFormat(Lev) := "Year YYYY";
    (Rub As IMetabaseObject).Save;
End Sub UserProc;

After executing the example annual frequency name format (top) different from the standard format (bottom) is set for calendar of the time series database.

See also:

IRubricator