Island : IPrxTableIsland;
The Island property returns the relational data area, to which the group belongs.
Sub Main;
Var
MB: IMetabase;
Report : IPrxReport;
TabIs : IPrxTableIslands;
TI : IPrxTableIsland;
Grs : IPrxTableIslandGroupings;
Name : String;
Begin
MB := MetabaseClass.Active;
Report := MB.ItemById("Report").Bind As IPrxReport;
TabIs := Report.TableIslands;
TI := TabIs.Item(0);
Grs := TI.Groupings;
Name := Grs.Island.Name;
Debug.WriteLine(Name);
End Sub Main;
After executing the example the console window displays the name of the relational data area, to which the group belongs. Report - identifier of the regular report, which sheet contains a relational data area.
See also: