Skip to main content
12-Amethyst
April 16, 2024
Solved

Show/Hide the ThingWorx menu items

  • April 16, 2024
  • 1 reply
  • 678 views

When a user logs into the ThingWorx application, I need to retrieve their user category from the application database. Based on the user's category, specific menu items in ThingWorx should be shown or hidden. Could you please guide me through the steps to implement this?

 

For example,

  1. if user1 logs in, Menu--> Item1---> SubItem1, Item2--->SubItem2, Item3--->SubItem3 to be shown.
  2. if user2 logs in, Menu-->Item1-->SubItem1, Item3---> SubItem3 to be shown.

 

Thank you.

Best answer by nmutter

If your users are in userGroups you can show menu items based on the groups by assigning groups to the menu entires:

nmutter_1-1713285770282.png

Check: https://support.ptc.com/help/thingworx/platform/r9.5/en/#page/ThingWorx/Help/Composer/Visualization/Menus.html

 

If you do not have the users in UserGroups you would need to create a service which returns a menu structure where you added the entries based on the users category - basically like descibed in https://www.ptc.com/en/support/article/CS249303 

1 reply

nmutter16-PearlAnswer
16-Pearl
April 16, 2024

If your users are in userGroups you can show menu items based on the groups by assigning groups to the menu entires:

nmutter_1-1713285770282.png

Check: https://support.ptc.com/help/thingworx/platform/r9.5/en/#page/ThingWorx/Help/Composer/Visualization/Menus.html

 

If you do not have the users in UserGroups you would need to create a service which returns a menu structure where you added the entries based on the users category - basically like descibed in https://www.ptc.com/en/support/article/CS249303