我想查询Axapta AOT以查找给定表及其属性的字段。你能提供一些代码示例吗?提前致谢!
答案 0 :(得分:3)
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();
}
}