AutoSyncNewSource: Boolean;
None;
The AutoSyncNewSource property determines whether to execute auto linking and synchronization of data source dimensions.
Available values:
True. Data source dimensions are automatically linked and synchronized. Thus, if on creating a new visualizer its data source is already used in another visualizer, the selection of dimension elements in the new visualizer matches with that in the existing visualizer.
False. Auto linking and synchronization is not used.
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: