Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
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
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.
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.