I think we know exactly what you mean rmcmach, and it is not possible to dynamically control menuitems in Navision. The only way to come close is like Mark said. Have multiple 'versions' of the button and make one of them visible depending on certain conditions.
Make sure you listen carefully to what he said about putting the code in functions, not in the OnPush trigger of the menuitems themselves. Use that trigger only to call the function, so that you only have to maintain the code in one place.
Comments
RIS Plus, LLC
MVP - Business Apps
You can make 2 buttons, one with and one without the option, place them on top of each other and make one of them visible/unvisible,
If you do this, write code in functions for mainenance,
But then again: Always write menu item code in funcions
[-(
But that duplication might give me en ideia, and functions...mmmm :-k
Make sure you listen carefully to what he said about putting the code in functions, not in the OnPush trigger of the menuitems themselves. Use that trigger only to call the function, so that you only have to maintain the code in one place.
RIS Plus, LLC
MVP - Business Apps