Authorization in navision

Hi friends…Is it possible to disable some of the menu items in a drop down menu keeping the other menu items enabled so as to provide security to the users, By diabling the Visible mark from the menu item, it gets invisible for every one, what we need is that it should be hidden to some persons only allowing the others to see. Is there any link betwen the name of the Drop Down Menu and Menu Items that are there… nishan

The normal way to access control properties by code is to set the Name property of that control. That way it is shown in the C/AL Symbol Menu under CurrForm | Controls. For the Menu Items this doesn’t work (so it seems). Maybe you can define two MenuButtons with different Menu Items and set the Visible property of the required MenuButton.

Either that or having 2 different Forms. There’s no easy, built-in way to do it.

Or have condition in the OnPush and do not use properties to run objects…

… or include a user restriction validation in the called function itself, in case you call the function from different forms, which make maintenance and modifications easier…