Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Getting error-messages when parameter validation fails
spheenik
Hi,
I am in the process of building a reporting application (webapp) which uses BIRT.
Right now the task is to create a custom page for parametrization. I already succeeded to use an IGetParameterDefinitionTask to retrieve information about the need parameters and use this information to generate the page.
Now, when the user submits that page, I create a IRunAndRenderTask and transfer the parameters. After that, I call the validateParameters() method on the task, which returns true if the parameters are all correct, or false if they are not.
The problem is that I can't seem to find a way to get any error messages in case the validation does not succeed. I see in the log that validateParameters() throws a ParameterValidationException in case anything goes wrong, but since the exception class is loaded by a different classloader (I suppose) I cannot catch it. I searched on google but could not find any example of how to programmatically ask BIRT about what exactly got wrong during validation.
How can I accomplish this?
Thank you for your help.
Martin
(Edit: BIRT version is 2.3.1.v20080905)
Find more posts tagged with
Comments
jacob
Hello, i have the same problem.
I need the errors too.
Regards