PermanentData: Boolean;
PermanentData: boolean;
The PermanentData property determines the method of loading and saving of time series data.
Available values:
True. On opening the workbook data for time series loading is taken from the workbook. On saving the workbook, time series data is also saved to the workbook.
False. Default value. The data is loaded directly from the database. Data is also saved directly.
Executing the example requires a form containing the LanerBox component with the LanerBox1 identifier and the UiErAnalayzer component with the UiErAnalayzer1 identifier that is a data source for LanerBox1. Workbook of the time series database must be loaded to UiErAnalyzer1.
Sub UserProc;
Var
ErAn: IEaxAnalyzer;
Laner: ILaner;
Begin
ErAn := UiErAnalyzer1.ErAnalyzer;
Laner := ErAn.Laner;
If Laner.PermanentData Then
Laner.PermanentData := False;
End If;
End Sub UserProc;
After executing this example the workbook loads or saves series data directly from the database.
The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.
Imports Prognoz.Platform.Interop.Laner;
Imports Prognoz.Platform.Interop.Express;
…
Public Sub UserProc();
Var
ErAn: IEaxAnalyzer;
Laner: ILaner;
Begin
ErAn := uiErAnalyzerNet1.ErAnalyzer.ErAnalyzer;
Laner := ErAn.Laner;
If Laner.PermanentData Then
Laner.PermanentData := False;
End If;
End Sub UserProc;
See also: