Share via


RetailConnTableDistributionTree.moveItem Method [AX 2012]

Moves and adds the node to the specified new parent.

Syntax

public int moveItem(
    int idxToMove, 
    int newParentIdx, 
    int newSiblingIdx)

Run On

Client

Parameters

  • idxToMove
    Type: int
    The ID of a node to be moved.
  • newParentIdx
    Type: int
    The ID of the new parent.
  • newSiblingIdx
    Type: int
    The sibling ID of the selected node.

Return Value

Type: int
The new ID value.

Exceptions

Exception Condition
Warning

Thrown when the item cannot be moved to the new parent.

See Also

Reference

RetailConnTableDistributionTree Class