Refresh widget text

Post your questions and help other users.

Moderator: Martin

Post Reply
Ankit Bindal
Posts: 90
Joined: 12 Feb 2016 03:23

Refresh widget text

Post by Ankit Bindal » 25 Jan 2017 11:35

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.

piskor
Posts: 16
Joined: 20 Dec 2016 13:03

Re: Refresh widget text

Post by piskor » 25 Jan 2017 14:48

You can use functions refreshWitget() or setWidgetElementProperty()
Regards, piskor

Ankit Bindal
Posts: 90
Joined: 12 Feb 2016 03:23

Re: Refresh widget text

Post by Ankit Bindal » 26 Jan 2017 08:45

By using refreshwidget() , my flow ended with an error.

Error - method not supported

rcfree
Posts: 43
Joined: 21 Mar 2013 16:51

Re: Refresh widget text

Post by rcfree » 26 Jan 2017 09:49

refreshWidget(widgetName, reloadImages)

refreshWidget(String widgetName, Boolean reloadImages)
Refreshes the widget and optionally also reloads images.

Ankit Bindal
Posts: 90
Joined: 12 Feb 2016 03:23

Re: Refresh widget text

Post by Ankit Bindal » 26 Jan 2017 12:20

I don't have any image in one widget and in another i have lots of images, so how to do that?

piskor
Posts: 16
Joined: 20 Dec 2016 13:03

Re: Refresh widget text

Post by piskor » 26 Jan 2017 14:17

refreshWidget(widgetWithImagesName, true)
refreshWidget(widgetWithoutImagesName, false)
Regards, piskor

Ankit Bindal
Posts: 90
Joined: 12 Feb 2016 03:23

Re: Refresh widget text

Post by Ankit Bindal » 27 Jan 2017 04:00

Thanks, it worked.

Post Reply