SaveChangedSeries([SaveOptions: LnSaveOptions = 255]): IRubricatorRevision;
SaveOptions. The parameter that determines the changes that need 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 following components: the Button component with the Button1 identifier, the Memo component with the Memo1 identifier, the TabSheetBox component with the TabSheetBox1 identifier, and the UiErAnalyzer component with the UiErAnalyzer1 identifier. UiErAnalyzer1 is a data source for TabSheetBox1. A working area of the time series database must be loaded to UiErAnalyzer1. The TabSheetBox component must be in the edit mode for cell data.
The example is a handler of the OnClick event for the Button1 component.
Add links to the Collections, Cubes, Express, ExtCtrls, Forms, Laner, and Tab system assemblies.
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: