Selection: IDimSelectionSet;
The Selection property returns selection of analytical data area slice.
The property returns selections of all dimensions of all analytical area slice data sources.
Executing the example requires that the repository contains an express report with the EXPRESS identifier containing table.
Add links to the Dimensions, Express, Metabase system assemblies.
Sub UserProc;
Var
MB: IMetabase;
Express: IEaxAnalyzer;
Slice: IEaxDataAreaSlice;
Begin
// Get repository
MB := MetabaseClass.Active;
// Get express report
Express := MB.ItemById("EXPRESS").Bind As IEaxAnalyzer;
// Get data slice
Slice := Express.DataArea.Slices.Item(0);
// Display to the console selection elements of specified dimension
Debug.WriteLine
("Elements in selection of specified dimension - " + Slice.Selection.Item(3).ToString("", ", ", False));
End Sub UserProc;
After executing the example the console displays selection elements of specified dimension.
See also: