TreeNode.treeNodePath Method [AX 2012]
Returns the unique path to the tree node within the Application Object Tree (AOT).
The following example finds a TreeNode object of each UtilFileType and prints the path of the UtilFileType to the Infolog.
static void myJob(Args _args)
{
treeNode tn;
tn = treeNode::findNode("\\Forms");
tn = tn.AOTfirstChild();
info(strfmt(
"Path: %1 \nUtilFileType: %2",
tn.treeNodePath(),
tn.AOTUtilFileType()));
tn = treeNode::findNode("\\System Documentation");
tn = tn.AOTfirstChild();
tn = tn.AOTfirstChild();
info(strfmt(
"Path: %1 \nUtilFileType: %2",
tn.treeNodePath(),
tn.AOTUtilFileType()));
tn = treeNode::findNode("\\Application Developer Documentation");
tn = tn.AOTfirstChild();
tn = tn.AOTfirstChild();
info(strfmt(
"Path: %1 \nUtilFileType: %2",
tn.treeNodePath(),
tn.AOTUtilFileType()));
tn = treeNode::findNode("\\Application Documentation");
tn = tn.AOTfirstChild();
tn = tn.AOTfirstChild();
info(strfmt(
"Path: %1 \nUtilFileType: %2",
tn.treeNodePath(),
tn.AOTUtilFileType()));
}
Community Additions
ADD
Show: