Cannot save spreadsheet

Hi. I am trying to call a save method such as saveAsJson(), but then the spreadsheet crashes and throws an error:

C_Users_Andrzej_Baranowski_IdeaProjects_frontend_node_modules_angular_devkit_build_angular_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_6__ is not defined

It seems to me that saving methods requires some additional package, but I have no idea which.

I am using Angular v10.0.14 with Ionic v5.6.9.


3 Replies

GK Gayathri KarunaiAnandam Syncfusion Team July 8, 2021 03:52 AM UTC

Hi Marcin, 

We have checked your reported query. We need to validate more on this query. So, we will update you the further details on July 9th , 2021. We appreciate your patience until then. 

Regards, 
Gayathri K 



MA Marcin replied to Gayathri KarunaiAnandam July 12, 2021 07:36 AM UTC

Hi,

Are there any updates about query validation?



GK Gayathri KarunaiAnandam Syncfusion Team July 13, 2021 04:22 PM UTC

Hi Marcin, 

We have checked your reported query. We are unable to replicate the reported issue in our latest version 19.2.47. Please check the below code snippet. 

<button ejs-button #save>Save</button> 
<button ejs-button #saveas>SaveAsJson</button> 
<ejs-spreadsheet #spreadsheet  saveUrl='https://ej2services.syncfusion.com/production/web-services/api/spreadsheet/save' allowSave='true'> </ejs-spreadsheet> 

 @ViewChild('save'togglebtnButtonComponent; 
  @ViewChild('saveas'SaveasButtonComponent; 
  @ViewChild('spreadsheet'public spreadsheetObjSpreadsheetComponent; 
  @HostListener('click', ['togglebtn']) 
  
  btnClick() { 
    this.spreadsheetObj.save({url: 'https://ej2services.syncfusion.com/production/web-services/api/spreadsheet/save',fileName: "Sample"saveType: "Pdf"}); 
      } 
      @HostListener('click', ['Saveas']) 
      Click(){ 
         
        this.spreadsheetObj.saveAsJson(); 
      } 


For your reference, we have prepared a sample based on your suggestion. Please check the sample. 


Please check the above link and If you are still facing issue, kindly share the below details. 

  • Please update to package to latest and revert us with Video demonstration.
  • please replicate the issue in the provided sample or share issue reproducible sample.
 
Please provide the above requested information, based on that we will check and provide you a better solution quickly. 
 
Regards, 
Gayathri K 


Loader.
Up arrow icon