IAdhocReport.UpdateSettings

Fore Syntax

UpdateSettings: IViewerUpdateSettings;

Description

The UpdateSettings property returns settings of dashboard autoupdate options.

Example

Executing the example requires that the repository contains a dashboard with the ADHOC identifier.

Add links to the Adhoc and Metabase system assemblies.

Sub UserProc;
Var
    Metabase: IMetabase;
    Adhoc: IAdhocReport;
    UpdateOption: IViewerUpdateSettings;
Begin
    Metabase := MetabaseClass.Active;
    Adhoc := Metabase.ItemById("ADHOC").Edit As IAdhocReport;
    UpdateOption := Adhoc.UpdateSettings;
    // Set up autoupdate options
    UpdateOption.AutoUpdateByData := False;
    UpdateOption.AutoUpdateIntervalUnits := TimeUnits.Minutes;
    UpdateOption.AutoUpdateInterval := 10;
    UpdateOption.UpdateByIntervalEnabled := True;
    Debug.WriteLine("Report autoupdate options: " + UpdateOption.AsString);
    (Adhoc As IMetabaseObject).Save;
End Sub UserProc;

Executing the example disables dashboard update on selection change. A dashboard will be updated automatically at 10 minutes interval. The console window displays dashboard autoupdate options.

See also:

IAdhocReport