Skip to main content
12-Amethyst
Apr 16, 2024 8:51 AM UTC
Solved

Show/Hide the ThingWorx menu items

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.

nmutterAnswer
17-Peridot
Apr 16, 2024 4:44 PM UTC

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

nmutter17-PeridotAnswer
17-Peridot
Apr 16, 2024 4:44 PM UTC

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 

Translate