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);


 

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 AdSense units and "buy me a coffee" link.
Join us.

Blog Tags