- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2019 09:50 AM
Hello,
I want to hide the "Export" Option in the UI context menu for table "sys_user" and want to keep it for admin users only. I know the option of Export exists user System UI-> UI context Menu , but what condition can I put there so that it is only applied to the sys_user tbale and only the Export option is available to only admin in the user table ?
Please help
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- 3,546 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2019 11:00 AM
You can open Context Menu [sys_ui_context_menu] table in menu System UI > UI Context Menus, filter by Name equal to Export and open the definition of Export menu.
By default the Condition of Export menu is
!ListProperties.isRelatedList() && !ListProperties.isRefList()
I suggest you to change the condition to
!ListProperties.isRelatedList() && !ListProperties.isRefList() && (ListProperties.getTable() != "sys_user" || gs.hasRole("admin"))
You should receive results, which you need: "Export" menu will be displayed in Users table only for admins. Other tables will hold "Export" menu.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2019 10:22 AM
If you go to the UI context Menu, Search for the name = Export. If you change active to false, you will be able to disable it for users.
Hope this answer helped or solved your problem. If so, please mark as 'Helpful' or 'Correct'. Thanks!
Alexander Grisby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2019 11:00 AM
You can open Context Menu [sys_ui_context_menu] table in menu System UI > UI Context Menus, filter by Name equal to Export and open the definition of Export menu.
By default the Condition of Export menu is
!ListProperties.isRelatedList() && !ListProperties.isRefList()
I suggest you to change the condition to
!ListProperties.isRelatedList() && !ListProperties.isRefList() && (ListProperties.getTable() != "sys_user" || gs.hasRole("admin"))
You should receive results, which you need: "Export" menu will be displayed in Users table only for admins. Other tables will hold "Export" menu.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2019 11:37 AM
Perfect. Exactly what I was looking for. Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2019 11:47 AM
You are welcome!