IPrxSlice.Selection

Syntax

Selection: IDimSelectionSet;

Description

The Selection property returns an object containing slice selection. A slice selection includes selections of all dimensions.

Example

Sub Main;

Var

MB: IMetabase;

Report: IPrxReport;

DtSources: IPrxDataSources;

Slices: IPrxSlices;

Slice: IPrxSlice;

Selection: IDimSelectionSet;

Begin

MB := MetabaseClass.Active;

Report := MB.ItemById("Report").Bind As IPrxReport;

DtSources := Report.DataSources;

Slices := DtSources.Item(0).Slices;

Slice := Slices.Item(0);

Selection := Slice.Selection;

End Sub Main;

After executing the example the Selection variable contains selection of the first slice of the first data source of the regular report. The identifier of the regular report - Report.

See also:

IPrxSlice