Can you stop and re-start runConcurrentThread()?

Posted on
Thu May 14, 2020 8:24 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Can you stop and re-start runConcurrentThread()?

Yeah, in this case refreshCallbackMethod is what you'll need to use. It is a bit clumsy, but it should work. We use it in the Z-Wave plugin for the inclusion process UI and the optimize UI. Here are some more details about how to use it.

Image

Posted on
Fri May 15, 2020 12:07 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Can you stop and re-start runConcurrentThread()?

matt (support) wrote:
Yeah, in this case refreshCallbackMethod is what you'll need to use.

Learns about this callback for the first time this morning...

...uses it in the plugin i'm in the middle of writing this evening....!

Posted on
Fri May 15, 2020 12:26 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Can you stop and re-start runConcurrentThread()?

You can use it in combination with visibleBindingId / visibleBindingValue to provide rudimentary progress feedback as well.

Image

Posted on
Fri May 15, 2020 12:35 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Can you stop and re-start runConcurrentThread()?

Oh, I use those several times - including the mythical multiple comparison options (visibleBindingValue = X or Y).

Posted on
Fri May 15, 2020 1:07 pm
hannt offline
User avatar
Posts: 84
Joined: Jul 08, 2011
Location: TN USA

Re: Can you stop and re-start runConcurrentThread()?

Is there a way to put a (rudimentary progress) message to the right of a button?

Edit: I tried the <Description> tag as documented for checkbox, but it was ignored. No error, just nothing.

Posted on
Sat May 16, 2020 4:12 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Can you stop and re-start runConcurrentThread()?

Not currently. For dynamic progress the best you can do is show/hide static text controls (using visibleBindingId / visibleBindingValue). One big limitation (which I've run into but haven't improved yet) is you cannot change what the text is, so you must have multiple controls for every possible progress message you want then hide/show them appropriately.

Image

Who is online

Users browsing this forum: No registered users and 3 guests