Clear;
Clear();
The Clear method resets sorting based on values of time series observations.
After executing the method the ILanerSorterData.Count property is set to zero.
Executing the example requires a form with the LanerBox component and the UiErAnalyzer component with the UiErAnalyzer1 identifier that is a data source for LanerBox. Workbook of the time series database must be loaded to UiErAnalyzer1.
Sub UserProc;
Var
Laner: ILaner;
Ls: ILanerSorter;
DataSort: ILanerSorterData;
Begin
Laner := UiErAnalyzer1.ErAnalyzer.Laner;
Ls := Laner.Sorter;
DataSort := Ls.SeriesDataSort;
If DataSort.Count > 0 Then
DataSort.Clear;
End If;
End Sub UserProc;
Example execution result: if the workbook was sorted on values of time series observations the sorting is cleared.
Executing the example requires a form with the LanerBoxNet component and the UiErAnalyzerNet component with the UiErAnalyzerNet1 identifier that is a data source for LanerBoxNet. Workbook of the time series database must be loaded to UiErAnalyzerNet1.
Imports Prognoz.Platform.Interop.Laner;
…
Public Sub UserProc();
Var
Laner: ILaner;
Ls: ILanerSorter;
DataSort: ILanerSorterData;
Begin
Laner := UiErAnalyzerNet1.ErAnalyzer.ErAnalyzer.Laner;
Ls := Laner.Sorter;
DataSort := Ls.SeriesDataSort;
If DataSort.Count > 0 Then
DataSort.Clear();
End If;
End Sub UserProc;
Example execution result: if the workbook was sorted on values of time series observations the sorting is cleared.
See also: