AutoUpdateSources: Boolean;
None;
The AutoUpdateSources property determines whether dashboard data sources must be autoupdated.
The IAdhocReport.AutoUpdateSources property affects the value of AutoUpdateSources.
Available values of AutoUpdateSources:
True. Autoupdate data sources.
False. Do not autoupdate data sources.
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: