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 :
Finance | Project Operations, Human Resources, ...
Answered

Assign Class in Menu Item

(0) ShareShare
ReportReport
Posted on by 40

Hi, I'm a beginner in ax, so, what i want is to click action button on the form, and call the runbasebatch class that i've created, but the thing is, when i want to edit the menuitemname in the action button properties, the runbasebatchclass doesnt appear, am i missing something, someone said that i have to assign class to the menuitem

I have the same question (0)
  • Verified answer
    ergun sahin Profile Picture
    8,826 Moderator on at

    You need a actionMenuItem

    pastedimage1627299811345v1.png

    Note: You know the process better than I do. I don't want to interfere, but the thing is, calling a batch class as a button on a form is not very common.

  • fireblaster Profile Picture
    40 on at

    thank you so much for the response, It really answers my question.

    can you explain to me shortly why calling a batch from a button is not common so I can explore more about the batch class?

  • Martin Dráb Profile Picture
    237,823 Most Valuable Professional on at

    I wouldn't say that calling a batch class from a form button is uncommon. I see it all the time. You have many buttons which allow you to execute a process (such as posting a journal) and optionally select batch processing.

    But I wouldn't use RunBaseBatch for new development. The newer framework, SysOperation, has many benefits. For example, it'll generate the dialog for you and it'll handle serialization and desearialization (which requires pack() and unpack() in RunBase framework and developers did it wrong very often).

    By the way, please pay more attention to which categories you select for your thread. For example, your actual question doesn't seem to be related to Connector for CRM, Management Reporter or Windows 8 and Mobile Apps in any way. Let me fix it for you this time...

  • fireblaster Profile Picture
    40 on at

    alright noted w thanks

  • ergun sahin Profile Picture
    8,826 Moderator on at

    Uncommon may not be the right word. You may have noticed that my English is not very good. I didn't say it's not used.

    Only, form buttons are "generally" used to perform operations on certain records, the situation may be different in batches. A normal class can be considered, especially if it will not be used to set up a batchjob.

    (Actually, while I was writing the above, SysOperation crossed my mind too. I just said "it's uncommon" thinking about it + with my general opinion)

    As a result, I don't know the process, I just wrote it with the idea that we can talk about the details if interested.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 512 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 291 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans