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)
BIRT: validate parameter and display error
nevest
HI,
I've just defined a method to validate date parameter in my example.rptdesign
here my method:
if (params["data_from"].value.getYear() > params["data_to"].value.getYear() )
{
false;
}
else{
if (params["data_from"].value.getYear() < params["data_to"].value.getYear() )
{
true;
}
else
{
if(params["data_from"].value.getYear() == params["data_to"].value.getYear())
{
if(params["data_from"].value.getMonth() > params["data_to"].value.getMonth())
{
false;
}
else
{
true;
}
}
}
}
now... HOW can I display a message instead of the message of exception.
can I capture this exception??
I use birt 2.3.0 RCP Designer
help me please!!
Find more posts tagged with
Comments
mwilliams
Hi nevest,<br />
<br />
You have probably already solved your issues, but for anyone else with a similar question, you can create your own parameter page and handle the parameters however you'd like.<br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.org/devshare/deploying-birt-reports/298-2-2-birt-tag-library/#description'>2.2
BIRT Tag Library - Tips & Tricks - BIRT Exchange</a>