web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

what is use of Classfactory , MapEnumerator and RunBase Class

(0) ShareShare
ReportReport
Posted on by

what is use of Classfactory , MapEnumerator and RunBase Class

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    ClassFactory is a system class which is loaded every time AX is started so it should be modified with care. It can also be used to create class instances at run time for example:

    args = new Args(formstr(CustTableLookup));
    formRun = classfactory.formRunClass(args);
    formRun.init();
    this.performFormLookup(formRun, _formControl);

    MapEnumerator is used to traverse a map which is a list of value pairs. For example it can be used as follows:

    mapEnumerator = yourMap.getEnumerator();

    while (mapEnumerator moveNext())
    {
        info(strfmt("Key: %1, Value: %2", mapEnumerator.currentKey(), mapEnumerator.currentValue()));
    }

    Runbase class is the base class in the RunbaseFramework. If you want to create a class to run within the Runbase Framework it must extend from this class. The standard documentation and the class "tuorial_RunbaseBatch/Form/Report" give sufficient information about its use.

    Hope this helps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans