Skip to main content
Nov 3, 2022 5:56 AM UTC
Question

Hide or delete a specific item in a Menu

Hi all, i have a menu which has 10 items in it. For one site i need to have 10 menu item. For other site i only need 8 item in a menu. Suggest a code to hide or delete the menu items based on my condition. Thanks in advance 

2 replies

Nov 3, 2022 7:35 AM UTC

Create user groups with respect to plants.

Then add user groups to each menu item in Menu entity.

 

https://www.ptc.com/en/support/article/CS205546

 

Nov 6, 2022 1:19 PM UTC

Hello @KT_10107318, 
Not sure what exact widget you are using, There may be a visible flag which is part of the menu definition. If you are providing an InfoTable to define the menu, the process of creating the infotable could accept a parameter to identify which version of the menu should be presented.