I have created a menu button in the Resource card and has got a number of items. I need to activate and de-activate certain items according to the type field. What coding should i use, can I use the ACTIVATE in a some way or anotehr?
Hi you have to click on this Menubutton with your right mouse button, go to "menuitems" and then disable or enable the MenuItems (boolean in front of line)
I don't think that you can set this using C/AL code. A possible solution is to have two buttons with the menu item assigned and display (using the visible property) depending on the type you need.
Another suggestion is to develop a tiny form which you pop-up ( using runmodal) and code the display of options and return the selection to the calling form
There is no way how to make the menu button dynamic. You can only take the NAV way and show error when you select item which is not allowed for selected record...
Comments
I don't think that you can set this using C/AL code. A possible solution is to have two buttons with the menu item assigned and display (using the visible property) depending on the type you need.
Hope this helps.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Another suggestion is to develop a tiny form which you pop-up ( using runmodal) and code the display of options and return the selection to the calling form
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.