[B1 Validation & UF] How can I block a menu item, or an item on the right-click menu?

In SAP Business One Client, menu elements can be blocked by adding the menu Uid in a B1UP Validation. Note that the event type needs to be Menu Click.

If you want to block a menu item on all forms, set the Formtype to "-1". If you want to have it on a specific form, just set the Formtype to a certain form.

1. To block your item on all forms, check what the Uid is:
 ​mceclip0.png

2. Then add a validation with “Menu Click” -event, and add the Menu Uid to the validation (This would block me from clicking this item from the top-menu):
mceclip1.png

Add a message with tick on the “Block event” checkbox:

mceclip2.png

3. If you want to block right-click item in a specific form, you can just add the form type:


mceclip3.png

Was this article helpful?

2 out of 2 found this helpful

Comments

1 comment

  • Comment author
    Ben

    Doe this work with menu ID 1283 'Remove'? thanks

    0

Please sign in to leave a comment.