IPrxDataIslandHeaderFilter.Selection

Syntax

Selection: IDimSelection;

Description

The Selection property returns an object containing selection in the dimension to be filtered.

Example

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Report: IPrxReport;

DIs: IPrxDataIslands;

DI: IPrxDataIsland;

Prop: IPrxDataIslandProperties;

THead: IPrxDataIslandHeader;

Filter: IPrxDataIslandHeaderFilter;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemById("Report").Edit;

Report := MObj As IPrxReport;

DIs := Report.DataIslands;

DI := DIs.Item(0).Edit;

    Prop := DI.Properties;

    THead := Prop.TopHeader;

    Filter := THead.Filter;

    Filter.UseCondition := True;

    Filter.Selection.SelectElement(0,True);

DI.Save;

MObj.Save;

End Sub Main;

After executing the example the Ignore Selected Elements When Filtering option is enabled, and the first element is selected. Filtering is enabled for columns of the first data area of the regular report. The identifier of the regular report - Report.

See also:

IPrxDataIslandHeaderFilter