Hi ,
I need to list all the child nodes of the table like (fields,field groups , relations etc) and further there properties and sub nodes using X++ code. Is there any reference or sample code ?
Hi ,
I need to list all the child nodes of the table like (fields,field groups , relations etc) and further there properties and sub nodes using X++ code. Is there any reference or sample code ?
Does it answer your question?
Your latest thread suggests that you may want something else than what you asked for here, but we couldn't know that. I believe that the suggested answer fits the question.
Try TreeNodeTraverser. It should look like this:
#AOT TreeNode tableNode = new TreeNode(#TablesPath #AOTDelimiter tableName); TreeNodeTraverser traverser = new TreeNodeTraverser(tableNode); TreeNode node; while (traverser.next()) { node = traverser.currentNode(); info(node.treeNodePath()); }
André Arnaud de Cal...
293,233
Super User 2025 Season 1
Martin Dráb
231,923
Most Valuable Professional
nmaenpaa
101,156
Moderator