ILanerCalculateSerie.Save

Syntax

Save([SaveOptions: LnSaveOptions = 255]): IRubricatorRevision;

Parameters

SaveOptions. Parameter determining the changes, that need to be saved.

Description

The Save method saves the series and returns the revision containing the changes made.By default all the changes made in the data table are saved.

Example

Executing the example requires a form with the Button1 button, the LanerBox component with the LanerBox1 identifier and the UiErAnalyzer component used as a data source for LanerBox. Working area of the time series database must be loaded to UiErAnalyzer.

Before executing the example the added series, that needs to be saved, must be selected in the working area. Click the button to start executing this example.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

Serie: ILanerSerie;

SerieCalc: ILanerCalculateSerie;

Begin

Serie := LanerBox1.SelectedSeries(0);

If Not Serie.StrictlyDefined

Then

WinApplication.InformationBox("Not all the mandatory attributes of the series are determined'" + Serie.Name + "'");

Else

If Serie.SearchFactor = LnSerieFactorSearchResult.Found

Then

WinApplication.InformationBox("The series with the specified attributes already exists");

Else

SerieCalc := Serie As ILanerCalculateSerie;

SerieCalc.Save;

End If;

End If;

End Sub Button1OnClick;

After executing the example the added series is saved if all the mandatory attributes of the series are determined and do not duplicate existing series.

See also:

ILanerCalculateSerie