- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 07:24 PM
Hi, I have client that want the related list button 'New' to show if catalog item = test catalog so that itil users can manually add sctask to that item but not with other catalog items.
I have already added the role itil to the ACL so it now showing to all ITIL users.
I have tried adding the following condition to the list control but it is not working. Anyone can help me please?
URL: /now/nav/ui/classic/params/target/sys_ui_list_control.do%3Fsys_id%3D98735e020a0006413e6c4f7c967da246%26sysparm_view%3D%26sysparm_domain%3Dnull%26sysparm_domain_scope%3Dnull
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 08:05 PM
Hi @olufsen
Let's try the below adjustment.
answer = parent.getValue('cat_item') !== 'e56a7ffe41011300964ff05369414ebd'; //replace your catalog item sys_id
Let me know if it works for you.
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 09:46 PM - edited 10-30-2023 09:47 PM
Hi @olufsen
It seems this is a known issue. Ref: KB0787199
"This is expected behaviour in currently supported releases. Workspace lists do not support the list control, the buttons are driven by declarative UI Actions."
So you can consider to redefine Action Assignments [sys_declarative_action_assignment].
1. Add the sc_task table to the Exclusions list of the below Action Assignment.
2. Insert the new button specifically for the table sc_task.
Sample below.
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 09:07 PM
Thanks @Tai Vu Apparently, it did worked in the backend view, but it is not working in the SOW. We need to this to reflect on the SOW. Any option to do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 09:46 PM - edited 10-30-2023 09:47 PM
Hi @olufsen
It seems this is a known issue. Ref: KB0787199
"This is expected behaviour in currently supported releases. Workspace lists do not support the list control, the buttons are driven by declarative UI Actions."
So you can consider to redefine Action Assignments [sys_declarative_action_assignment].
1. Add the sc_task table to the Exclusions list of the below Action Assignment.
2. Insert the new button specifically for the table sc_task.
Sample below.
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 06:18 AM
Thank you @Tai Vu this one works.