StrictlyDefined: Boolean;
The StrictlyDefined property returns whether all mandatory attributes of the series are defined.
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 the 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: