How to hide a menu item from a Check Box?

ImaspalImaspal Member Posts: 68
Hi Experts!

How to hide a menu item from a Check Box? I need to hide a Menu Item, when the value in Check Box is TRUE. Menu Item can also turn into grey or anything else, the important thing is, that user can't use it, when the value in Check Box is TRUE.

I have a NAV version 5.0.

Yours,
Imaspal

Comments

  • garakgarak Member Posts: 3,263
    to hide a menu item in a menu button is not possible.
    2 Solutions.

    1: two Menu Buttons on top of each other, the second without your blocked menu item. You display the second if "Check Box"
    CurrForm.ButtonOrginal.visible(Not "Check Box");
    CurrForm.ButtonWithOutMenuItem.visible("Check Box");
    

    2. You write in OnPush Trigger of the blocked MenuItem following
    if "Check Box" then
      error('Bla bla bla');
    

    Regards
    Do you make it right, it works too!
  • ImaspalImaspal Member Posts: 68
    Thanks a lot, your help was very welcome!

    Yours,
    Imaspal
Sign In or Register to comment.