IEaxOptionsBase.UpdateSettings

Syntax

UpdateSettings: IViewerUpdateSettings;

Description

The UpdateSettings property returns settings of report autoupdate parameters.

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;

After executing the example report autoupdate on selection change is disabled. The report is autoupdated each 10 minutes. The console window displays report autoupdate parameters.

See also:

IEaxOptionsBase