- 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 08:02 PM - edited 10-30-2023 08:13 PM
Hi @olufsen ,
3rd line is wrong. U need to provide proper condition.for eg just check on which table u are configuring list control.If it's on task table then code should look something like
if(current.request_item.cat_item == "enter sys I'd of the required catalog item"){
answer = false;
}
Just try the above logic of it's on task table.
Thanks,
Danish
- 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 08:45 PM
nope, it didn't worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 08:53 PM