ExportSuccess event not working

Hi,

I had raised a ticket earlier, in response to which the ExportSuccess & ExportFailed events were exposed in the prior release of the Syncfusion library. Ticket details are here. However, I'm unable to get the ExportSuccess/ExportFailed events to fire in my application.

Would it be possible to send a sample application on how to use these events?

Thanks.

12 Replies

AA Akshaya Arivoli Syncfusion Team August 13, 2020 01:26 PM UTC

Hi Saurabh , 

Thank you for contacting Syncfusion support. 

We have exposed ExportSucess and ExportFailed and it will be triggered on exporting the form fields and annotations, 

We have shared the sample in which we have tried in the below link, 


Also the below events will be triggered on importing the form fields and the annotations, 


Please try with the latest version and revert us with more details about your issue and the modified sample if you still have concerns. These details will be helpful for us to investigate further and assist you better. 


Regards, 
Akshaya 



AA Akshaya Arivoli Syncfusion Team August 13, 2020 01:56 PM UTC

Hi Saurabh, 

Sorry for the inconvenience caused. Please ignore the previous sample and find the modified sample from the below, 


Regards, 
Akshaya 



SD Saurabh D August 13, 2020 04:30 PM UTC

Hi Akshaya,

Thank you for providing the example. Can you please try it for the attached PDF file - for me it is throwing an exception.

Attachment: i485_bdc7e2c1.zip


AA Akshaya Arivoli Syncfusion Team August 14, 2020 11:29 AM UTC

Hi Saurabh, 

Thank you for your update. 

We are facing issue while exporting the form fields from the provided document and ExportFailed event will be triggered with the provided sample. However we will analyze further on the issue while exporting the form fields and update you with more details on August 18th, 2020 

Regards, 
Akshaya 




AA Akshaya Arivoli Syncfusion Team August 19, 2020 03:16 PM UTC


Hi Saurabh , 

The reported issue was resolved in out latest release version 18.2.0.54. Kindly upgrade to the latest version to resolve the reported issue. 

Regards, 
Akshaya  



SD Saurabh D August 20, 2020 03:52 AM UTC

Hi Akshaya,

I was able to test out the new release, I can confirm that the issue appears resolved. Had one related question - when I call the export fields method, it is also exporting the fields as a JSON file and downloading into the browser. Is there a way to suppress this behavior? Basically, I'm using ExportFormFields to "save" the values in the form to a database, so the download of the JSON file every time does not make sense. I tried returning String.Empty, but then the ExportSuccess event never gets called. Let me know if there is a workaround.

Thanks.


MS Mohan Selvaraj Syncfusion Team August 21, 2020 08:11 AM UTC

Hi Saurabh, 

In our current implementation we will trigger the Export Success event only on saving the file as json. However we will check further on this query and update you with more details on August 25th 2020.  

Regards,  
Mohan S   




AA Akshaya Arivoli Syncfusion Team September 1, 2020 02:44 AM UTC

Hi Saurabh, 

We can achieve your requirement by exporting the form fields as json object using exportFormFieldsAsObject(), so that the json object will not be downloaded. However, the export success event is not triggering in that case, we will analyze further on it and update you with more details on September 2, 2020. 



Regards,
Akshaya 



AA Akshaya Arivoli Syncfusion Team September 2, 2020 01:29 PM UTC

Hi Saurabh  
 
We have Confirmed that “ExportSuccess event not working for ExportFormFieldsAsObject method”  is a defect and logged the defect report for the same. The fix for the issue will be included in our upcoming weekly nuget release on  15th  September 2020. You can track the status using below link. 
 
 
Regards, 
Akshaya  



SD Saurabh D September 7, 2020 04:47 AM UTC

Thanks Akshaya - just to clarify, this will be for both ExportSuccess and ExportFailure events, both, correct? Meaning, if there is an error during the exportFormFieldsAsObject event, the export failure will get triggered.

Also, I was taking a fresh look at my overall implementation, and I think it would be a great future feature if the form fields are available at the client side. What I'm really trying to do is for the user to fill the form on the html page, and save back the values to a database. If there is a way to get those filled values on the client side, I can do an HTTP Post and save the values directly to the database, instead of going through the export events which seem to be meant for exporting the form fields to a different format. \

Let me know if if this makes sense.


AA Akshaya Arivoli Syncfusion Team September 8, 2020 01:23 PM UTC

Hi Saurabh ,   
  
Thank you for your update. 

Please find the details of your query from the below, 
Query 
Details  
Thanks Akshaya - just to clarify, this will be for both ExportSuccess and ExportFailure events, both, correct? Meaning, if there is an error during the exportFormFieldsAsObject event, the export failure will get triggered. 

Yes we will consider both ExportSuccess and ExportFailure events 

Also, I was taking a fresh look at my overall implementation, and I think it would be a great future feature if the form fields are available at the client side. What I'm really trying to do is for the user to fill the form on the html page, and save back the values to a database. If there is a way to get those filled values on the client side, I can do an HTTP Post and save the values directly to the database, instead of going through the export events which seem to be meant for exporting the form fields to a different format. \ 
We can get the form fields data in the client side using the exportFormFieldsAsObject() API and then you can save the values in database 


Please try it and if you still need further assistance revert us with more details about your requirement and the use case which will be helpful for us to investigate further and assist you better. 

Regards, 
Akshaya  




MS Mohan Selvaraj Syncfusion Team September 15, 2020 07:25 PM UTC

Hi Saurabh, 
We have resolved the reported issues and the  implementation was included in our latest weekly release v18.2.0.58. Kindly upgrade to that version to get the issue resolved. 
Packages link:    
Client side package    
Blazor Client 
Blazor Sever 
Service side package    
CDN links:  

https://cdn.syncfusion.com/ej2/18.2.58/material.css  
https://cdn.syncfusion.com/ej2/18.2.58/dist/ej2.min.js 
Regards, 
Mohan S 


Loader.
Up arrow icon