IPrxTableIslandLayoutCell.GroupingMethod

Syntax

GroupingMethod(Grouping: IPrxTableIslandGrouping): IPrxTableIslandGroupingMethod;

Parameters

Grouping - relational data area group.

Description

The GroupingMethod property determines parameters of data grouping method.

Example

Sub Main;

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 Main;

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:

IPrxTableIslandLayoutCell