Count Widget

John Warren
Kilo Guru

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

1 ACCEPTED SOLUTION

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


View solution in original post

5 REPLIES 5

Ujjawal Vishnoi
Mega Sage
Mega Sage

Hi John,



Could you please share the screenshot of instance options. May be you are not putting options correctly.



Regards


Ujjawal


widget options.PNG


img is attached.


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.


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.