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()); }
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156