TrackAreaSelection: Boolean;
None;
The TrackAreaSelection property determines whether the selected visualizer area should be tracked.
Available values:
True. Track the selected visualizer area.
False. Do not track the selected visualizer area.
Executing the example requires that the repository contains a dashboard with the DASHBOARD_SYNC identifier.
Add links to the Adhoc, Metabase system assemblies.
Sub UserProc;
Var
mb: IMetabase;
Dashboard: IAdhocReport;
DSObjs: IAdhocDataSourceObjects;
DSO: IAdhocDataSourceObject;
i: Integer;
Begin
// Get repository
mb := MetabaseClass.Active;
// Get dashboard
Dashboard := mb.ItemById("DASHBOARD_SYNC").Edit As IAdhocReport;
// Look over dashboard data sources
DSObjs := Dashboard.DataSourceObjects;
For i := 0 To DSObjs.Count - 1 Do
DSO := DSObjs.Item(i);
DSO.TrackAreaSelection := True;
End For;
(Dashboard As IMetabaseObject).Save;
End Sub UserProc;
After executing the example the selected visualizer area is tracked for each dashboard data source.
See also: