IPrxDataIslandDimensionLayoutNodes.FindByKey

Syntax

FindByKey(Key: Integer): IPrxDataIslandDimensionLayoutNode;

Parameters

Key - key of an element of an arbitrary dictionary.

Description

The FindByKey method returns a title element based on the specified key. The element is searched for in a single level of an arbitrary title.

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;

RN : IPrxDataIslandDimensionLayoutNodes;

Key : Integer;

Begin

DIs := Report.DataIslands;

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

Prop := DI.Properties;

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

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

RN := DimProp.Layout.RootNodes;

Key := RN.Item(0).Key;

RN.FindByKey(Key).Caption := "RF";

DI.Save;

End Sub UserProc;

Executing the example changes name of an element of the arbitrary title based on the specified key.

See also:

IPrxDataIslandDimensionLayoutNodes