We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

bug pivot save report

Thread ID:





150902 Jan 23,2020 04:16 PM UTC Jan 28,2020 11:14 AM UTC Angular - EJ 2 3
Tags: PivotView
anthony florez
Asked On January 23, 2020 04:41 PM UTC

the save report event is activated at the beginning of the component, there is some way that is activated only when you click on the save button. This is the code that I refer to https://slshda.run.stackblitz.io.

Sivamathi Natarajan [Syncfusion]
Replied On January 24, 2020 12:32 PM UTC

Thanks for contacting Syncfusion Support. 
As per the behavior of pivot table, the initially loaded report will be saved in data base (here it is local storage) then the reports available in the data base will be listed in a dedicated drop-down list in toolbar panel. So, the “saveReport” event is triggered initially. If you don’t want to save your report on initial rendering, then you can restrict it with the help of below code example. 
let isSaveReportInitial: boolean = false; 
  saveReport(args: any) { 
    if (isSaveReportInitial) { 
      let reports = []; 
      let isSaved: boolean = false; 
      if (localStorage.pivotviewReports && localStorage.pivotviewReports !== "") { 
        reports = JSON.parse(localStorage.pivotviewReports); 
      if (args.report && args.reportName && args.reportName !== '') { 
        reports.map(function (item: any): any { 
          if (args.reportName === item.reportName) { 
            item.report = args.report; isSaved = true; 
        if (!isSaved) { 
        localStorage.pivotviewReports = JSON.stringify(reports); 
    else { 
      (this.pivotObj.toolbarModule as any).currentReport = ""; 
      isSaveReportInitial = true; 
Please let us know if you need further assistance on this. 

anthony florez
Replied On January 27, 2020 02:22 PM UTC

all good, I already resolved, thanks

Sivamathi Natarajan [Syncfusion]
Replied On January 28, 2020 11:14 AM UTC

Hi anthony, 
Thanks for the response. Please get in touch with us if you would require any further assistance.  


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon