How to set Axapta menubutton event

Hello All,

I have created new menu button in my form named Status. i would like to do something when i click on status “open” then grid value of the status for selected records should be changed to “Open”. please please let me know if there is any help. Thanks in advanced…

Hi Bhavin,

I think, u r in the initial stage of development, so u can write ur code on button itself, or if u have a complex business logic, u can put that in class and call that class on the menuitem button of ur form.

To put code on button, choose click method of button, write somethin like

.status = Status::open;


Hope it helps.