Reset;
Reset();
The Reset method resets all settings defined for displaying calendar dimensions of a report.
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.Reset;
ErAnalyzerDimPanel1.Refresh;
End Sub Button1OnClick;
After executing the example clicking Button1 resets all settings defined for calendar dimension displaying.
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.Reset();
ErAnalyzerDimPanelNet1.CtrlBox.Refresh();
End Sub;
See also: