Hi Team,
We are using flexmonster to view reports based on SQL datasource with Java. While loading data, when a SQLException occurs, it just shows "Unable to open" error. Can we show specific error message based on exception thrown from server side ?
I am aware of flexmonster.on('dataerror', function () {}), but in this case we cannot intercept the server exception, I guess.
Thanks
Ganesh
Hello Ganesh,
Thank you for your question. In the version 2.6.5, we have added a new alert()
API call which allows showing custom warning pop-ups. Please have a look at the following page for more information: https://www.flexmonster.com/api/alert/.
In case, it is possible to catch the error on the server side you can stop the data transfer and call the alert()
API call.
Please let us know if the suggested approach works fine for you.
Regards,
Dmytro