Reputation: 53
I would like to query the Axapta AOT to find the fields of a given table and their properties. Could you please provide some code examples? thanks in advance!
Upvotes: 1
Views: 1473
Reputation: 53
static void Job68(Args _args)
{
TreeNode node = TreeNode::findNode(@'\Data dictionary\Tables\CustTable\Fields');
TreeNode childNode;
TreeNodeIterator nodeIT;
nodeIt = node.AOTiterator();
childNode = nodeIt.next();
while(childNode)
{
info(strfmt("field %1", childNode.treeNodeName()));
childNode = nodeIt.next();
}
}
Upvotes: 3