Page 1 of 1
Refresh widget text
Posted: 25 Jan 2017 11:35
by Ankit Bindal
How to refresh widget text with an action script and not with option given in the widget itself to refresh every "x" time.
I don't know how to use refresh widget in the script action given.
Re: Refresh widget text
Posted: 25 Jan 2017 14:48
by piskor
You can use functions refreshWitget() or setWidgetElementProperty()
Re: Refresh widget text
Posted: 26 Jan 2017 08:45
by Ankit Bindal
By using refreshwidget() , my flow ended with an error.
Error - method not supported
Re: Refresh widget text
Posted: 26 Jan 2017 09:49
by rcfree
refreshWidget(widgetName, reloadImages)
refreshWidget(String widgetName, Boolean reloadImages)
Refreshes the widget and optionally also reloads images.
Re: Refresh widget text
Posted: 26 Jan 2017 12:20
by Ankit Bindal
I don't have any image in one widget and in another i have lots of images, so how to do that?
Re: Refresh widget text
Posted: 26 Jan 2017 14:17
by piskor
refreshWidget(widgetWithImagesName, true)
refreshWidget(widgetWithoutImagesName, false)
Re: Refresh widget text
Posted: 27 Jan 2017 04:00
by Ankit Bindal
Thanks, it worked.