Showing posts with label how To know that how many times that particular class extends. Show all posts
Showing posts with label how To know that how many times that particular class extends. Show all posts

Thursday, 5 May 2016

To know that how many times that particular class extends using x++ code in Ax 2012

static void Raj_FindClass(Args _args)
{
    treeNode childNode;
    treenodeIterator it;
    str properties;
    str className;
    str extend;
    str searchType = "Salesformletter";  
    int x;
    treeNode t  = TreeNode::findNode('\\Classes');
    ;

    it = t.AOTiterator();
    childNode= it.next();
    while (childNode)
    {
        className = childNode.treeNodeName();
        properties = childNode.AOTgetProperties();
        extend = findProperty(properties, "Extends");

        if (extend == searchType)
        {
            info(strfmt("%1 – ExtendedDataType: %2", className,extend));
        }
     
        childNode= it.next();
    }
     

}