cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Avoid several launch of services linked to a button due to crazy clickers

Avoid several launch of services linked to a button due to crazy clickers

When we create a button in ThingWorx, most of the time, it is linked to a service. If a user double click on the button, service will be launched twice. There is a custom way to click button then disable button then wait for service completion then re enable it. But this is boring and we need to do it for ALL buttons ...

 

It would be nice to have on the platform, on widget side, the capacity to do this automatically (Maybe a checkbox on properties of the button widget called "disabled until associated service completion"). It would make life much easier for everybody.

4 Comments
StefanBode
10-Marble

This is very cool and sounds not very difficult. Even if more than one service is connected this should not be a big deal. As mentioned a checkbox in the properties is a very convenient way to expose this to a user.

geva
14-Alexandrite

@amalecot has implemented this functionality using the underscore library using expressions (debounce and throttling).

amalecot
6-Contributor

Hi.

I have not implemented this functionality (widget), it has been done by the FSU team (PTC Inc. - Factory Services Unit).

The functionnality is : "when multiple events are fired in a given period of time, only consider one (it will consider the first or the last event depending on a parameter configuraton, as "debounce" or "throttle").

This widget is available for ptc internal (IoT CoCom Corner) as "FSEventTriggerRouter_Extension"

 

It is not the requested fonctionnality : "wait for a service completion before having the bouton available again".

regards,

Alexis

jensc
16-Pearl

We have the same need in a lot of our projects. Accidental clicks on buttons can cause inconsistencies in the data as well.

So this functionality is very much wanted.