How to show user error message through JasperReports Scriptlet?
Posted on May 26, 2016 at 10:05pm
In JasperReport I have implemented validation logic of the input control parameters. Now the problem is that when I throw a JRScriptletException from my code then I can see the error stack trace on JasperReports Server page. I want to achieve that the JasperReport server page should show a dialog box with a meaningful error message upon failing a validation. How can I achieve the same?
Posted on May 30, 2016 at 3:20pm
You'll just have to catch error in your scriplet code and set an error message when there is an error in report text field.