Skip to main content
14-Alexandrite
December 7, 2023
Question

Call click event of fileupload widget from other widget

  • December 7, 2023
  • 1 reply
  • 917 views

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

1 reply

19-Tanzanite
December 8, 2023

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

Community Manager
December 22, 2023

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