I'm creating a BIRT report using certain parameters. I have an int parameter (Number of months) which values can be from 1 to 12.
I need to check if the value is bigger than 12. In such case it should show me a customized message and not an error like it is doing right now.
Error:
org.eclipse.birt.report.service.api.ReportServiceException: The validation for parameter "nummonths" fails.
Current script:
if (params["nummonths"].value > 12 )
{
false;
}
else
{
true;
}
I create reports in BIRT to upload it to IBM Maximo Asset Management system. Maybe there is a different way to solve this in Maximo.
Thanks for your time! Hopefully will help others.