Conditions for UI Action (List context menu) cannot be set properly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 02:03 AM
Hi.
Reject condition setting with List context menu of UI Action is not working.
I want it to be visible only for admin, but Requires role Even if you set admin to, it will be displayed as a non-possessed user.
Also, if you set the condition to gs.hasRole('admin') as shown below, it will not be displayed. increase. (I want to implement this case in this way)
(current.state == 'requested'&& (gs.hasRole('approval_admin') || (new ApprovalDelegationUtil().isMyApproval(current))))&&gs.hasRole('admin')
Setting the condition to current.state == 'requested' in some of the default conditions will always make it visible. Are these behaviors normal? Please tell me how to set the conditions.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2023 01:56 PM
Hello @Akihisa Abe ,
the problem is there are many default 'Reject' UI Actions on the approval table, your UI Action is not the one that is shown, it is going to be one of these on the screenshot. Deactivate these UI Actions, if you want to have a custom behavior, it depends on your use case 😉 :
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Best Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2023 05:10 AM
Hi @Akihisa Abe ,
I have been facing the same issue to hide the UI Action where list context Menu check box is true.
Have you find any solution to hide the UI Action based on condition? and i been trying through script include and ui policy etc., but nothing works.
Please reply to this post if anyone know how to hide ui action on list view based on conditions.
Thankyou!