Edit: IPrxDataIslandDimensionLayout;
The Edit method creates a copy of arbitrary layout allowing to edit the structure.
The following example assumes that there is the Report object with the IPrxReport type.
Sub UserProc;
Var
Report : IPrxReport;
DataIsland : IPrxDataIsland;
Prop : IPrxDataIslandProperties;
Layout, LayoutCopy : IPrxDataIslandDimensionLayout;
Dim : IPrxSliceDimension;
DataDim : IPrxDataIslandDimension;
Begin
DataIsland := Report.DataIslands.Item(0).Edit;
Prop := DataIsland.Properties;
Dim := DataIsland.Slice.Dimensions.FindById("CALENDAR");
DataDim := Prop.Dimension(Dim.Dimension.Dimension);
Layout := DataDim.Layout;
LayoutCopy := Layout.Edit;
LayoutCopy.Build(Dim.Selection);
LayoutCopy.Save;
DataIsland.Save;
End Sub UserProc;
After executing the example elements selected in the dictionary are added to the elements of arbitrary layout.
See also: