- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2017 07:39 AM
Hello,
I'm trying to use the out of box count widget in our new service portal site. I'm running into an issue however with sending the user to a list of records when they click on the count. I'm able to get a count of records using the query and table I select in the options, but when I select the count it sends me back to the landing page instead of to a list. It looks like the ID is missing in the URL. Does anyone know how I would go about setting that?
sp?id=&table=sysapproval_approver&filter=approver=javascript:getMyApprovals()^state!=requested^EQ
Thanks in advance,
John
Solved! Go to Solution.
- Labels:
-
Service Portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2017 09:46 AM
Hi John,
I have a solution for this issue.
1. Clone the count widget.
2. Replace line 2 of HTML section with
<a ng-href="?id=list&table={{::c.options.table}}&filter={{::c.options.filter}}">
3. Use Cloned widget in your page.
Hope this helps.
Regards
Ujjawal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2017 09:00 AM
Hi John,
Could you please share the screenshot of instance options. May be you are not putting options correctly.
Regards
Ujjawal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2017 09:05 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2017 09:31 AM
in the HTML for the count widget, it's looking for "sp_page_dv" option to set that ID, but I don't see that in the option schema or even a field on the instance table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2017 10:01 AM
yeah that's what I was seeing as well. I figured with it being an out of box widget I was just missing something, but it seems it's just broken out of the box.