FindByKey(Key: Integer): IPrxSliceDimension;
Key. Slice dimension key.
The FindByKey method searches for a slice dimension based on the specified key.
The following example assumes that there is the Report object with the IPrxReport type.
Sub UserProc;
Var
Report : IPrxReport;
DI : IPrxDataIsland;
SliceDims: IPrxSliceDimensions;
SliceDim: IPrxSliceDimension;
DIC : IPrxDataIslandDimension;
Begin
DI := Report.DataIslands.FindById("DATAISLAND").Edit;
SliceDims := DI.Slice.Dimensions;
SliceDim := SliceDims.FindByKey(1301);
DIC := DI.Properties.Dimension(SliceDim.Dimension.Dimension);
DIC.NamingCount := 2;
DIC.Naming(1).Expression.AsString := "D_TO1.TERRID";
DI.Save;
End Sub UserProc;
After executing the example an additional name is created for the dimension in the data area.
See also: