EditCalendar: IDimensionModel;
The EditCalendar method enables the user to get calendar of the time series database in the edit mode.
Executing the example requires that the repository contains a time series database with the FC_COMM identifier.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Rub: IRubricator;
CalDim: ICalendarDimension;
Lev: Integer;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("FC_COMM").Edit;
Rub := MObj As IRubricator;
CalDim := Rub.EditCalendar As ICalendarDimension;
Lev := CalDim.CalendarLevelIndex(DimCalendarLevel.Year);
CalDim.NameAttrFormat(Lev) := Year YYYY;
MObj.Save;
End Sub Main;
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: