Hi there,
i have upgraded to the last stable version of angular and flex 2.9.
I get 2 errors i can't fix myself:
What may be a possible quick solution ? Downgrade angular and/or flex perhaps ? See project in attach. Thank you !
regards,
Bernard
Hello,
Thank you for reaching out to us and for preparing the project.
The "jQuery is not defined" exception is not reproducible in our case. Also, this error does not seem to be connected with Flexmonster. If you think it is entailed by Flexmonster update, please provide us with corresponding details (a project with reproducible error, screenshots, etc.).
The "h.indexOf is not a function" error is caused by the wrong argument passed to the load method. Please note that the load
API call only accepts links to the JSON file containing the report. In your case, the inline JSON object is passed as an argument:
const csv = await this.httpClient.get('getReport')
const report = JSON.parse(JSON.stringify(csv))
console.log(report);
this.pivot?.flexmonster.load(report)
Instead, use the setReport API call that serves to apply report from the inline JSON object:
const csv = await this.httpClient.get('getReport')
const report = JSON.parse(JSON.stringify(csv))
console.log(report);
this.pivot?.flexmonster.setReport(report)
In this case, the exception does not appear.
Please let us know if it helps.
Best regards,
Illia