TreeNode.AOTchildNodeCount Method [AX 2012]
Counts the number of child nodes that a given tree node has.
The following example prints the number of child nodes that appear under the Menu Items node in the Application Object Tree (AOT).
#AOT
static void myJobAOTchildNodeCount(Args _args)
{
treeNode treeNode = TreeNode::findNode(#MenuItemsPath);
print "Number of nodes below Menu Items: ", treeNode.AOTchildNodeCount();
pause;
}
Community Additions
ADD
Show: