How to refresh a widget in a page in service portal?

mounika58
Mega Expert

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.

7 REPLIES 7

Harish KM
Kilo Patron
Kilo Patron

snehabinani26
Tera Guru

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.


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


Hi Mounika,



This is what we are also using to refresh the widget.