Express > Express Assembly Interfaces > IEaxAnalyzerCalendarOptions > IEaxAnalyzerCalendarOptions.ShowLevels
ShowLevels (CalendarDimKey: Integer): Boolean;
CalendarDimKey. Key of the calendar dimension, level of which is configured.
The ShowLevels property determines whether calendar levels are displayed.
An express report may contain several calendars; level display settings are defined individually for each calendar.
Settings can be defined only for calendars contained in shared dimensions. Levels cannot be set up for calendars contained in private dimensions.
Executing the example requires a form with a button named Button1 on the form, the TabSheetBox component named TabSheetBox1, the ErAnalyzerDimPanel component named ErAnalyzerDimPanel1, and the UiErAnalyzer component with named UiErAnalyzer1 that is a data source for both components.
Add links to the Express, Metabase system assemblies.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
CalendarOptions: IEaxAnalyzerCalendarOptions;
Begin
CalendarOptions := UiErAnalyzer1.ErAnalyzer.Options.CalendarOptions;
CalendarOptions.ShowLevels(41950) := True;
End Sub Button1OnClick;
After executing the example clicking the Button1 shows levels for calendar with the specified key.
See also: