xInfo.rootNode Method [AX 2012]
Retrieves the root of the application object tree.
The following example prints out all the names of the methods in the AddressSelectForm class. The rootnode method is used to set the treenode object to the AOT root before selecting a child node.
{
Treenode treenode;
TreenodeIterator it;
treenode = infolog.rootNode();
treenode = treenode.AOTfindChild("Classes");
treenode = treenode.AOTfindChild("AddressSelectForm");
it = treenode.AOTiterator();
while (treenode)
{
print treenode.treeNodeName();
treenode = it.next();
}
pause;
}
Community Additions
ADD
Show: