IAdhocDataSourceObjects.AutoUpdateSources

Syntax

AutoUpdateSources: Boolean;

Description

The AutoUpdateSources property determines whether dashboard data sources must be autoupdated.

Comments

The IAdhocReport.AutoUpdateSources property affects the value of AutoUpdateSources.

Available values:

Example

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

Add links to the Adhoc, Metabase system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    DashboardObj: IMetabaseObject;
    Dashboard: IAdhocReport;
    DSO: IAdhocDataSourceObjects;
Begin
    mb := MetabaseClass.Active;
    DashboardObj := mb.ItemById("DASHBOARD_UPD").Edit;
    Dashboard := DashboardObj As IAdhocReport;
    DSO := Dashboard.DataSourceLinkedObjects;
    If Not DSO.AutoUpdateSources Then
        DSO.AutoUpdateSources := True;
    End If;
    DashboardObj.Save;
End Sub UserProc;

After executing the example autoupdate is enabled for dashboard data sources.

See also:

IAdhocDataSourceObjects