FindById(Id: String): IPrxSliceDimension;
Id. Dimension identifier.
The FindById method searches for a slice dimension based on the specified identifier.
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.FindById("D_TO1");
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: