Exclude a table from global UI action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2017 07:47 AM
I have a global UI action called 'REJECT' on sysapproval_approver table (for List context menu). I want to exclude 'sc_req_item' table from it as I don't want the users to approve RITM within context menu.
What condition do I need to include in this UI action to exclude RITM table.
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2017 08:24 AM
Try this condition
current.sysapproval.sys_class_name != 'sc_req_item'
Thanks
Please Hit like, Helpful or Correct depending on the impact of the response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2017 08:42 AM
nope still able to reject from context menu!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2017 08:47 AM
Are you testing as admin or approver user?
Simply add this condition alone once: current.sysapproval.sys_class_name != 'sc_req_item'
Thanks
Please Hit like, Helpful or Correct depending on the impact of the response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2017 08:55 AM
Firstly with what role your checking with?
change the ui action condition:
((current.sysapproval.sys_class_name != 'sc_req_item')&&(gs.hasRole('approval_admin')||isApprovalMine(current))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2017 09:02 AM
This Worked! Thank you.