在Axapta AOT中查找表字段及其属性

时间:2009-12-11 02:56:33

标签: axapta

我想查询Axapta AOT以查找给定表及其属性的字段。你能提供一些代码示例吗?提前致谢!

1 个答案:

答案 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();
    }
}