IPrxDataIslandDimensionLayout.FitToSelection

Syntax

FitToSelection: Boolean;

Description

The FitToSelection property determines whether selection in the slice dimension is to be taken into account when displaying arbitrary title. If the property is set to True, the data area displays only those titles that are selected in the slice. If the property is set to False, the whole title is displayed in the data area regardless of the selection.

The default property value is True.

Example

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

Sub UserProc;

Var

Report: IPrxReport;

DIs: IPrxDataIslands;

DI: IPrxDataIsland;

Prop: IPrxDataIslandProperties;

Dim: IDimInstance;

DimProp: IPrxDataIslandDimension;

Layout: IPrxDataIslandDimensionLayout;

Cap, Cap1, Cap2: IPrxDataIslandDimensionLayoutNode;

Begin

Report := PrxReport.ActiveReport;

DIs := Report.DataIslands;

DI := DIs.Item(0).Edit;

    Prop := DI.Properties;

    Dim := DI.Slice.LeftHeader.Item(0).Dimension;

    DimProp := Prop.Dimension(Dim.Dimension);

    DimProp.CustomLayout := True;

    Layout := DimProp.Layout;

    Layout.FitToSelection := False; // do not consider selection in slice

    Cap := Layout.RootNodes.Add;

    Cap.DimElement(Dim) := 0;

    Cap.Caption := "RF";

    Cap1 := Layout.RootNodes.Add;

    Cap1.DimElement(Dim) := 1;

    Cap1.Caption := "CFD";

    Cap2 := Layout.RootNodes.Add;

    Cap2.DimElement(Dim) := 20;

    Cap2.Caption := "CWFD";

DI.Save;

End Sub UserProc;

After executing the example three elements of an arbitrary title are created for the dimension located in rows of the first data area collection of the regular report.

See also:

IPrxDataIslandDimensionLayout