SaveChangedSeries([SaveOptions: LnSaveOptions = 255]): IRubricatorRevision;
SaveOptions is the parameter that determines what changes are to be saved.
The SaveChangedSeries method saves the working area data and returns the revision, that contains the changes made. By default all the changes made in the data table are saved.
Executing the example requires a form with the Button1 button, the Memo component with the Memo1 identifier, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 which is used as a data source for TabSheetBox. Working area of the time series database must be loaded to UiErAnalyzer1. The TabSheetBox component must be in the edit mode for cell data.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
ErAn: IEaxAnalyzer;
Laner: ILaner;
crRev: IRubricatorRevision;
Begin
ErAn := UiErAnalyzer1.ErAnalyzer;
Laner := ErAn.Laner;
crRev := Laner.SaveChangedSeries;
Memo1.Lines.Add("Revision - " + crRev.Name);
End Sub Button1OnClick;
After executing the example the changes made are saved, and the information about the name of revision, that contains the changes made, is displayed in the Memo1 component.
See also: