How to refresh a widget in a page in service portal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2017 01:24 AM
We have a refresh icon on the widget, when ever we click on the refresh icon then that particular widget should get reloaded or refreshed.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2017 01:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2017 01:32 AM
You could try doing something like this:
function($scope,spUtil) {
setTimeout(function(){
spUtil.update($scope);
}, 3000);
}
The only catch here is that setTimeout won't work on client controller instead we have to use $timeout or $interval to call the function at regular intervals.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2017 02:21 AM
Hi Sneha,
Widget should be refreshed and we can see data in that widget should disappear and appear again.
That is not happening.
Thanks,
Mounika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2017 02:24 AM
Hi Mounika,
This is what we are also using to refresh the widget.