Exclude a table from global UI action

S_53
Kilo Guru

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!

10 REPLIES 10

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


nope still able to reject from context menu!


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


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))


This Worked! Thank you.