IEaxAnalyzerCalendarOptions.ShowLevels

Fore Syntax

ShowLevels (CalendarDimKey: Integer): Boolean;

Fore.NET Syntax

ShowLevels[System.Int32] : System.Boolean;

Parameters

CalendarDimKey. Key of the calendar dimension, level of which is configured.

Description

The ShowLevels  property determines whether calendar levels are displayed.

Comments

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.

 Fore Example

Executing the example requires a form with the button with the Button1 identifier, the TabSheetBox component with the TabSheetBox1 identifier, the component ErAnalyzerDimPanel with the ErAnalyzerDimPanel1 identifier and the UiErAnalyzer component with the UiErAnalyzer1 identifier which 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.

 Fore.NET Example

The requirements and result of the Fore.NET Example execution match with those in the Fore Example.

Imports Prognoz.Platform.Interop.Express;
...

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    CalendarOptions: IEaxAnalyzerCalendarOptions;
Begin
    CalendarOptions := UiErAnalyzerNet1.AnalyzerUi.ErAnalyzer.Options.CalendarOptions;
    CalendarOptions.ShowLevels[41950] := True;
End Sub;

See also:

IEaxAnalyzerCalendarOptions