PBATreeNodeBuild.duplicateSubTree Method [AX 2012]

Copies the nodes in a subtree and pastes them into another node.

public PBALineNum duplicateSubTree(
    PBATreeNode copyFrom, 
    PBATreeNode newParent, 
   [PBALineNum prevLineNum])

Run On

Called

Parameters

copyFrom
Type: PBATreeNode Table
The record in the PBATreeNode table that corresponds to the node in the modeling tree, from where the subtree should be copied.
newParent
Type: PBATreeNode Table
The record in the PBATreeNode table that corresponds to the node in the modeling tree, where the subtree should be copied to.
prevLineNum
Type: PBALineNum Extended Data Type
The line number of the previous node. The default value is 0.

Return Value

Type: PBALineNum Extended Data Type
The line number of the node where the tree was copied to.

This method is called recursively for all the nodes in the subtree.

Community Additions

ADD
Show: