BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
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) {
reports.push(args);
}
localStorage.pivotviewReports = JSON.stringify(reports);
}
}
else {
(this.pivotObj.toolbarModule as any).currentReport = "";
isSaveReportInitial = true;
}
}
|