Search This Blog

Tuesday, October 25, 2011

Get all Tables from dictionary using x++

static void Krishh_IterateTables(Args _args)
{
    TreeNode            node;
    TreeNode            childNode;
    TreeNodeIterator    nodeIt;
    FilePath            path;
    ;
    path        = @'\Data dictionary\Tables';
    node        = TreeNode::findNode(path);
    nodeIt      = node.AOTiterator();
    childNode   = nodeIt.next();
    while(childNode)
    {
        info( childNode.treeNodeName());
        childNode = nodeIt.next();
    }
}

1 comment:

  1. good.. but my doubt is i had created a tables node in data dictionary. again i created another tables node in parent tables node. In that sub tables node, i created some tables. So, i want to get all tables from sub table node only.. Is is possible? pls help me?

    ReplyDelete

Thanks for visiting my blog,
I will reply for your comment within 48 hours.

Thanks,
krishna.