- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 10:46 PM - edited 05-30-2024 10:48 PM
Hi,
We have enabled the users watch list and group watch list in portal for the My Requests of RITM's.
Now is it possible to restrict this to certain catalog items ?
Please find the attached screenshot.
Thanks
@Community Alums @Mark Manders @Arpan Baishya @Amit Gujarathi @Allen Andreas @Adil AZ
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 02:39 AM
Hi,
Your server script isn't checking whether the current item has the checkbox, it's just performing a query to find all items with the checkbox being true.
//Assuming 'gr' is the sc_req_item record
data.canView = false;
var catItemGR = gr.getElement('cat_item').getRefRecord();
if(!catItemGR.isValidRecord())
data.canView = JSUtil.getBooleanValue(catItemGR , 'u_show_watchlist')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 09:17 PM - edited 06-03-2024 09:18 PM
Hi Kieran,
1. I have included the below script and it is working.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 02:39 AM
Hi,
Your server script isn't checking whether the current item has the checkbox, it's just performing a query to find all items with the checkbox being true.
//Assuming 'gr' is the sc_req_item record
data.canView = false;
var catItemGR = gr.getElement('cat_item').getRefRecord();
if(!catItemGR.isValidRecord())
data.canView = JSUtil.getBooleanValue(catItemGR , 'u_show_watchlist')