- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2024 01:07 PM
I have several single scores on a homepage as well as a refresh button. I am wanting to refresh all of the single score components when this button is clicked. Any ideas on how to achieve this?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2024 06:21 AM
The data visualization components have a property called Refresh requested you can use to refresh the component. The steps would be in UIB:
- Create a client state parameter called something like refreshRequested and set it to an empty string
- Bind that CSP to the Refresh requested property on all data vis and list components (single score is a data vis component) you want to refresh.
- Write a client script that sets the value of the refreshRequested:
api.setState('refreshRequested', {timestamp: Date.now()})
- Trigger that client script from your button.
There's an old video of me using this method to trigger a refresh on a list in the last video on this post: https://developer.servicenow.com/blog.do?p=/post/quebec-ui-builder-lists/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2024 08:09 AM
Nothing specific, but I would just keep an eye on the performance. Real-time or regular refreshing is always going to be less performant than not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 10:31 AM
That property is not working for me. I kept the interval as 1min. It doesnot refresh after a minute

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2024 07:13 AM
Could you be more specific? What have you tried so far and what behavior are you seeing? Please post the code and screenshots.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2024 07:27 AM
In Ui builder - I want donut report to refresh automatically for every minute. I tried both fields "Refresh Requested & Refresh after being away for Xmin". The report is not refreshing