IEaxAnalyzerOptions.UpdateSettings

Fore Syntax

UpdateSettings: IViewerUpdateSettings;

Fore.NET Syntax

UpdateSettings: Prognoz.Platform.Interop.ForeSystem.ViewerUpdateSettings;

Description

The UpdateSettings property returns settings of report autoupdate parameters.

Fore Example

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.

Fore.NET Example

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:

IEaxAnalyzerOptions