UpdateSettings: IViewerUpdateSettings;
UpdateSettings: Prognoz.Platform.Interop.ForeSystem.ViewerUpdateSettings;
The UpdateSettings property returns settings of report autoupdate parameters.
Executing the example requires that the repository contains express report with the EXPRESS identifier.
Add links to the Express and Metabase system assemblies.
Sub UserProc;
Var
Metabase: IMetabase;
Express: IEaxAnalyzer;
ExpressOption: IEaxAnalyzerOptions;
UpdateOption: IViewerUpdateSettings;
Begin
Metabase := MetabaseClass.Active;
Express := Metabase.ItemById("EXPRESS").Edit As IEaxAnalyzer;
ExpressOption := Express.Options;
UpdateOption := ExpressOption.UpdateSettings;
// Setup autoupdate parameters
UpdateOption.AutoUpdateByData := False;
UpdateOption.AutoUpdateIntervalUnits := TimeUnits.Minutes;
UpdateOption.AutoUpdateInterval := 10;
UpdateOption.UpdateByIntervalEnabled := True;
Debug.WriteLine("Parameters of report autoupdate: " + UpdateOption.AsString);
(Express As IMetabaseObject).Save;
End Sub UserProc;
Executing the example disables report update on selection change. The report will be updated automatically each 10 minutes. The console displays parameters of the report autoupdate.
The requirements and result of the Fore.NET Example execution match with those in the Fore Example.
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.ForeSystem;
…
Public Shared Sub Main(Params: StartParams);
Var
Metabase: IMetabase;
Express: IEaxAnalyzer;
ExpressOption: IEaxAnalyzerOptions;
UpdateOption: IViewerUpdateSettings;
Begin
Metabase := Params.Metabase;
Express := Metabase.ItemById["EXPRESS"].Edit() As IEaxAnalyzer;
ExpressOption := Express.Options;
UpdateOption := ExpressOption.UpdateSettings;
// Setup autoupdate parameters
UpdateOption.AutoUpdateByData := False;
UpdateOption.AutoUpdateIntervalUnits := TimeUnits.tuMinutes;
UpdateOption.AutoUpdateInterval := 10;
UpdateOption.UpdateByIntervalEnabled := True;
System.Diagnostics.Debug.WriteLine("Parameters of report autoupdate: " + UpdateOption.AsString);
(Express As IMetabaseObject).Save();
End Sub;
See also: