- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2020 12:42 PM
Is it possible to hide a popular item from popping up here? So if I don't want apple ipad 3 to not show up in the popular item is it possible?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2020 02:55 PM
Best Practice would be to create a system property and store comma separated sys_id values of the to be hidden catalog items in this property.
Then you can add below one line of the code in Server Script of cloned widget. That is it. You are set.
Next time when you are asked to again exclude/include another catalog item , You just need to add sys_id of the catalog items in the property. No code change required.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2020 12:50 PM
Hi John,
Yes, you can. You need to clone widget: SC Category page & in the Server side script just where you find sc_req_item table Gliderecorded you can add the sys_id of item to be excluded. Something like below.
count.addEncodedQuery('cat_item!=pass_sys_id_of_item'); //considering count is the variable name used for GlideRecording sc_req_item table.
Thanks,
Jaspal Sngh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2020 04:22 PM
Jaspal,
Once I clone the widget and add in the line of code do I make the widget public and rename it to the same name?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2020 01:42 AM
Hi John,
Any name would do. Only thing would be to place all your new created widget on the page. For that you can look for Service Portal >> Pages >> sc_category page. Open it in designer view & place the cloned widget there.
Thanks,
Jaspal Singh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2020 05:07 AM
I'm confused on what needs to be done at this part.