Share via


DimensionTree.addNode Method [AX 2012]

Inserts a constraint node record at the specified point.

Syntax

public DimensionTreeResult addNode(
    RecId _parentNodeId, 
    int _index, 
    DimensionTreeNode _node, 
   [boolean _isAppendStarBranch])

Run On

Called

Parameters

  • _parentNodeId
    Type: RecId Extended Data Type
    The ID of the DimensionConstraintNode record that specifies the parent for the node.
  • _index
    Type: int
    An 1-based integer that specifies the insertion point for the node.
  • _isAppendStarBranch
    Type: boolean
    A Boolean value that indicates whether "*" nodes should be appended to cover all hierarchy levels; optional.

Return Value

Type: DimensionTreeResult Class
An instance of the DimensionTreeResult class where the isValid method will return true if the node was successfully added.

Remarks

The getTargetConstraintNodeId method will return the ID of the DimensionConstraintNode record for the added node; otherwise, 0 if the node was not added.

When allowOverlap is in effect, the results also include the updated parent node data available through the parmUpdatedParentNodes and parmUpdatedHasErrorInChildren methods.

See Also

Reference

DimensionTree Class