- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2022 09:13 PM
Hello, I need to make a single widget to display the number of open Cases, incidents, and requests. I don't need any help with the styling. I just need help with the functionality with client script, server script, link function. If there are no open cases display '0'. For example:
cases: 0
incidents:2
request:0
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2022 09:44 PM
GlideAggregate each table and do get the count, that is something I am talking about.
Go through this to understand how to use GlideAggregate
https://developer.servicenow.com/blog.do?p=/post/glideaggregate/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2022 09:46 PM
In the server script, you need to GlideRecord all the tables and store the count like this
data.incident_count = something
data.case_count = something
data.request_count = something
Same variables you can use in your html part to print it.
Go through this, it will help you a lot
https://community.servicenow.com/community?id=community_article&sys_id=c379b963db726700d6a102d5ca96199f
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2022 06:41 AM
What goes in the 'something'?. Didn't quite understand that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2022 09:44 PM
GlideAggregate each table and do get the count, that is something I am talking about.
Go through this to understand how to use GlideAggregate
https://developer.servicenow.com/blog.do?p=/post/glideaggregate/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2022 09:47 PM
Depending upon where do you need to showcase this
Your requirement can be done easily with reports of type score card.