IAdhocDataSourceObjects.AutoSyncNewSource

Syntax

AutoSyncNewSource: Boolean;

Description

The AutoSyncNewSource property determines whether to execute auto linking and synchronization of data source dimensions.

Comments

Available values:

Example

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

Add links to the Adhoc, Metabase system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    repObj: IMetabaseObject;
    report: IAdhocReport;
    reportDS: IAdhocDataSourceObjects;
Begin
    mb := MetabaseClass.Active;
    // Get dashboard
    repObj := mb.ItemById("DASHBOARD").Edit;
    report := repObj As IAdhocReport;
    // Get dashboard data sources
    reportDS := report.DataSourceObjects;
    // Disable automatic linking and synchronization of dimensions
    reportDS.AutoSyncNewSource := False;
    // Save changes
    repObj.Save;
End Sub UserProc;

Example execution result: auto linking and synchronization of data sources are disabled in the dashboard.

See also:

IAdhocDataSourceObjects