Notifications
Announcements
No record found.
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
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2