GroupingMethod(Grouping: IPrxTableIslandGrouping): IPrxTableIslandGroupingMethod;
Grouping - relational data area group.
The GroupingMethod property determines parameters of data grouping method.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
TabIs: IPrxTableIslands;
TI: IPrxTableIsland;
Cell: IPrxTableIslandLayoutCell;
Method: IPrxTableIslandGroupingMethod;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("REPORT").Edit;
Report := MObj As IPrxReport;
TabIs := Report.TableIslands;
TI := TabIs.Item(0);
TI := Ti.Edit;
Cell := TI.Layout.Rows(0).Cells(0);
Method := Cell.GroupingMethod(TI.Groupings.Item(0));
Method.Method := BasicAggregatorOperation.Sum;
TI.Save;
MObj.Save;
End Sub UserProc;
After executing the example data grouping parameters are set for the specified layout cell. Report - identifier of the regular report, which sheet contains a relational data area.
See also: