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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Call click event of fileupload widget from other widget

Yoshihiko.N
14-Alexandrite

Call click event of fileupload widget from other widget

Hi Developers,

 

I'm seeking way to call a click event of fileupload widget from click event of other widget.

1. click button1 (other widget) and service1 is called.

2. bind "serviceinvokecompleted" event of service1 with the click event of "Capture" button of fileupload widget.

 

 

fileupload.PNG

 

Thanks and Regards

2 REPLIES 2
Velkumar
19-Tanzanite
(To:Yoshihiko.N)

Hi @Yoshihiko.N 

 

In the new fileupload you bind the upload event.

 

Set DisableInstanceUpload property to true 

 

Velkumar_0-1702010248484.png

 

And bind ServiceInvokeCompleted event to the Widget Upload event

Velkumar_1-1702010371442.png

 

More about File Upload Widget -File Upload Widget (Themable) (ptc.com)

 

This functionality is not available in the legacy file upload widget

 

/VR

slangley
23-Emerald II
(To:Velkumar)

Hi @Yoshihiko.N.

 

Did you find the response from Velkumar helpful?  If not, what version of ThingWorx are you running?

 

As an alternative, the FileTransferSubsystem has a copy service that you can configure to do something similar to what you describe.

 

Regards.

 

--Sharon

Announcements


Top Tags