Hello,
We are looking for a way to handle errors in Pivot Tables such as no data, fetch errors, etc. We would need a callback such that we can customize our error handling. Is there a way to do that? We use both Custom Data Source and regular client use, so it would have to work either way.
Best,
Will Aguiraud
Hello, Will!
Thank you for writing to us.
Yes, you can customize error handling in Flexmonster to manage different fault scenarios with different data sources. There are three key aspects to consider for implementing custom error handling:
Using events to track errors
You can listen to specific Flexmonster events to detect when an error occurs and take appropriate action. These include the olapstructureerror and the queryerror events for fetching the data with custom API and dataerror event for loading remote CSV/JSON. You can find the list of all available events on this page: https://www.flexmonster.com/api/events/
Showing own alerts
You can display the alert pop-up with a custom error message using the alert
API call.
Overriding default error messages
The existing error messages can be customized via localization, in the localization.messages
object. We want to mention that localization can be specified fully via file or partially by overriding specific labels (see example).
Please let us know if you need further guidance on the implementation.
Best Regards,
Maksym
Hello, Will!
Hope you are doing well.
We would like to know whether you have tried the suggested approaches to customize error handling.
Looking forward to hearing your feedback.
Best Regards,
Maksym
Hello Maksym,
Thank you very much for your quick response. It looks like the error events you mentioned are what we were looking for. Thank you!
Hello, Will!
Thank you for your feedback.
We are glad to hear that one of our proposed solutions worked for your case.
Please let us know if any other questions arise.
Best Regards,
Maksym