Share via


DimensionTree::addLevelServer Method [AX 2012]

Adds the dimension attribute to the tree at the specified level.

Syntax

server private static container addLevelServer(
    container _packedDimensionTree, 
    RecId _dimensionAttributeId, 
    int _level)

Run On

Server

Parameters

  • _packedDimensionTree
    Type: container
    A packed instance of the DimensionTree class to act on.
  • _level
    Type: int
    The level value for the new hierarchy level.

Return Value

Type: container
A container with the first element a boolean true if the level is successfully added and the second element a packed instance of the dimensionTree after adding the level.

Remarks

The hierarchy is updated. Any nodes that are to the right of the level that is being inserted will be converted to "*" branches.

See Also

Reference

DimensionTree Class