Select all classes which implemented some interface



    SysDictClass       dictClass;
    List               dataContainerClassList;
    ListEnumerator     enumerator;
    classId            dataClassId;
    str                classNames;
    dictClass = new SysDictClass(classnum(MyAwesomeInterface));
    dataContainerClassList = dictClass.implementedBy();
    enumerator = dataContainerClassList.getEnumerator();
    while (enumerator.moveNext())
    {
        dataClassId = enumerator.current();
        dictClass   = new SysDictClass(dataClassId);
        if (!dictClass.isInterface())
        {
            classNames += dictClass.name() + ' ';
        }
    }
    info(classNames);


 


Post a Comment


All Comments


No comments. Be the first one to comment on this post.

Search

About

DaxOnline.org is free platform that allows you to quickly store and reuse snippets, notes, articles related to Dynamics AX.

Authors are allowed to set their own "buy me a coffee" link.
Join us.

Blog Tags