Refresh;
The RefreshData method updates the series data.
After the update the unsaved data is lost.
Executing the example requires a form with the Button1 button, the LanerBox component named LanerBox1 and the UiErAnalyzer component named UiErAnalyzer1 which is used as a data source for LanerBox. Workbook of the time series database must be loaded to UiErAnalyzer1.
Click the button to start executing this example.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
i: Integer;
SourSerie: ILanerSerie;
Serie: ILanerCalculateSerie;
Begin
If LanerBox1.SelectedSeriesCount > 0 Then
For i := 0 To LanerBox1.SelectedSeriesCount - 1 Do
SourSerie := LanerBox1.SelectedSeries(i);
SourSerie.Hint := "Last update of data '" + DateTime.Now.ToString + "'";
Serie := SourSerie As ILanerCalculateSerie;
Serie.RefreshData;
End For;
End If;
End Sub Button1OnClick;
After executing the example the data of the series, that are selected in the workbook, are updated. The comment containing the last date of the data update is added to the updated series.
See also: