IPrxDataIslandDimensionLayout.MergeWithSelection

Syntax

MergeWithSelection: Boolean;

Description

The MergeWithSelection property determines whether arbitrary title is to be merged with the elements that have selection in the slice but do not have the specified arbitrary name. If the property is set to True, headings of the elements that are selected in the slice but that do not have a generated arbitrary name, are displayed in the data area together with the generated arbitrary title. If the property is set to False, the data area displays only the generated title.

The default property value is False.

Example

The following example assumes that there is the Report object with the IPrxReport type.

Sub UserProc;

Var

Report : IPrxReport;

DataIsland : IPrxDataIsland;

Prop : IPrxDataIslandProperties;

Layout : 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);

    DataDim.CustomLayout := True;

    Layout := DataDim.Layout;

    Layout.MergeWithSelection := True;

DataIsland.Save;

End Sub UserProc;

After executing the example arbitrary layout is enabled for the selected dimension and the selected elements, for which no arbitrary layout has been set are displayed when an arbitrary title is displayed.

See also:

IPrxDataIslandDimensionLayout | Layout Setup