How to show user error message through JasperReports Scriptlet?

0

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?

siddharth.goel's picture
Joined: May 8 2016 - 11:43pm
Last seen: 1 year 3 weeks ago

@hozawa and how do you exactly set that error message in Scriptlet code?

siddharth.goel - 3 years 5 months ago

1 Answer:

0

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.

hozawa's picture
52592
Joined: Apr 24 2010 - 4:31pm
Last seen: 5 months 1 week ago
Feedback