Show contents 

Report > Report Assembly Interfaces > IPrxSlice > IPrxSlice.Selection

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 UserProc;
Var
    MB: IMetabase;
    MObj: IMetabaseObject;
    Report: IPrxReport;
    DtSources: IPrxDataSources;
    Slices: IPrxSlices;
    Slice: IPrxSlice;
    Selection: IDimSelectionSet;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("REPORT").Bind;
    Report := MObj As IPrxReport;
    DtSources := Report.DataSources;
    Slices := DtSources.Item(0).Slices;
    Slice := Slices.Item(0);
    Selection := Slice.Selection;
End Sub UserProc;

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