ListNodes: Boolean;
The ListNodes property determines the state of the Allocate Only Leaf Elements option.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
DIs: IPrxDataIslands;
DI: IPrxDataIsland;
DimModel: IDimensionModel;
Prop: IPrxDataIslandProperties;
PropDim: IPrxDataIslandDimension;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("Report").Edit;
Report := MObj As IPrxReport;
DIs := Report.DataIslands;
DI := DIs.Item(0).Edit;
DimModel := DI.Slice.TopHeader.Item(0).Dimension.Dimension;
Prop := DI.Properties;
PropDim := Prop.Dimension(DimModel);
PropDim.ListNodes := True;
DI.Save;
MObj.Save;
End Sub Main;
After executing the example the Allocate Only Leaf Elements option is enabled for the first dimension located in columns of the slice. The identifier of the regular report - Report.
See also: