Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150902 | Jan 23,2020 04:16 PM UTC | Jan 28,2020 11:14 AM UTC | Angular - EJ 2 | 3 |
![]() |
Tags: PivotView |
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;
}
}
|
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.
This page will automatically be redirected to the sign-in page in 10 seconds.