UseSelection: Boolean;
The UseSelection property determines the state of the Determine Elements Excluded from Filtering Conditions option.
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.UseSelection := True;
Filter.Selection.SelectElement(0,True);
DI.Save;
MObj.Save;
End Sub Main;
After executing the example the Determine Elements Excluded from Filtering Conditions option is enabled, and the first element is marked in the selection. Filtering is enabled for columns of the first data area of the regular report. The identifier of the regular report - Report.
See also: