Find SSRS Report Design in Ax

Description:-

In this example we will see how to find ssrs report design through code or using x++ in dynamics ax. Here is the demo example to find ssrs report design using X++.

Code:-

static void FindSRSReportDesign(Args _args)
{
    #AOT
    TreeNode rootNode;
    TreeNode reportNode, designsNode, designNode;
    TreeNodeIterator it;
    TreeNodeName nodeName;
    TreeNodeType nodeType;
    ;
    rootNode = TreeNode::findNode(#SSRSReportsPath);
    if(rootNode)
    {
        reportNode = rootNode.AOTfindChild('VendBaseData');
        if(reportNode)
        {
            designsNode = reportNode.AOTfindChild('Designs');
            if(designsNode)
            {
                it = designsNode.AOTiterator();
                designNode = it.next();
                while(designNode)
                {
                    nodeName = designNode.treeNodeName();
                    nodeType = designNode.treeNodeType();
                    info('name: ' + nodeName + ' type: ' + nodeType.toString());
                    designNode = it.next();
                }
            }
        }
    }
}
 

Related Posts

Previous
Next Post »

Thanks for comments.....