DimCalendarViewMode(Dimkey: Integer): EaxCalendarViewMode;
The DimCalendarViewMode determines setup of calendar dimension display mode.
Executing the example requires an express report with the EXPRESS identifier. In express report there is a data source containing the dimension with the 0 index. The form should contain the Button component named Button1.
Add links to the Dimensions, Express, Metabase system assemblies.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Eax: IEaxAnalyzer;
dimI: IDimInstance;
Begin
//Get express report
Eax := MetabaseClass.Active.ItemById("EXPRESS").Edit As IEaxAnalyzer;
//Get calendar dimension data
dimI := Eax.Pivot.Dimensions.Item(0).DimInstance;
//Set calendar dimension display mode
Eax.DataArea.Slices.Item(0).Properties.DimCalendarViewMode(dimI.Key) := EaxCalendarViewMode.Levels;
(Eax As IMetabaseObject).Save;
End Sub Button1OnClick;
After executing the example clicking the button set the display mode by levels for calendar dimension.
See also: