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)

difference between button and Menu item?

(0) ShareShare
ReportReport
Posted on by 2,340

Hi,

I have a confusion between button and menu item. 

Please clarify the exact difference between Button and Menu item in forms. In which cases we use button and menu item.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    A menu item is a logical concept defining an object to be called and with which parameters, you can configure access to it through security and so on.You can use it in several places, such as in menus. It doesn't define any visual representation by itself

    A button, on the other hand, is a form control. It can be placed and rendered on a form, you can click on it etc. You can implement some action in clicked() method, but there are also special types of buttons to help you with common tasks, namely executing form commands (e.g. closing the form) or, as you know, executing a menu item.

  • Verified answer
    Community Member Profile Picture
    on at

    You can add menu items to menus. You can also add menu items to forms and reports by using controls (Button).

    Buttons you can add to forms as controls as override the clicked() method to write the logic

    so Menu Item can be used as Buttons but buttons cant be used as menu Item

    Action Menu Item is linked to a class so that obejct oriented logic can be designed and linked to the button and execution happens at server side

    As per recommendation if any logic involves database interaction then we should implement button on form using Menu Item

    If in this case of logic is written at button click then there will be prformance issue.

    there are different type of button control - Button, ButtonGroup, CommnadButton, MenuButton, MenuItemButton

    Display, Output and Action are MenuItem Types

    Please verify and update us if this information is helpful to you.

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