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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

How to trigger extension event on button(Thingworx button widget) clicked?

rpatil-21
2-Guest

How to trigger extension event on button(Thingworx button widget) clicked?

Hello All,

Can anyone please tell how to trigger extension event on Thingworx button widget clicked?

Is this possible? If yes, then how to do it?

Thanks in advance.

Regards,

Renuka

2 REPLIES 2
ankigupta
5-Regular Member
(To:rpatil-21)

Hi Renuka Patil​ In general; one event cannot trigger other event.

Could you please share your usecase in detail.


You can perform the action on click of button.

For example; originally; the extension event had to perform something. You can bind the Button click event to perform same.


Please share the detail why there is a need to trigger the other event so that we can suggest you further.

jkaczynski
4-Participant
(To:rpatil-21)

Hi Renuka Patil​,

I believe by "extension event" you mean "event on extension entity (Thing)"? If yes, you can create a service that fires an event on a specific Thing:

var params = {

     // params can differ

     // use Entities tab to find out the correct params

};

Things["ThingName"].EventName(params);

Add this service to your mashup and invoke by Clicked event from a button.

Hope this helps.

Regards,

J.

Top Tags