Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Developing Analytics Applications
How can we customize the parameter dialog box ??
Migrateduser
<p><strong>How can we customize the parameter dialog box text??</strong></p>
<p> </p>
<p><strong>Example =</strong></p>
<p><strong>Script validate for param1.</strong></p>
<p>importPackage(Packages.java.lang);</p>
<div>importPackage(Packages.java.util);</div>
<div>importPackage(java.text);</div>
<div>importPackage(java.Date);</div>
<div> </div>
<div>dToday = new Date();</div>
<div>sdf= new SimpleDateFormat("dd/MM/YYYY");</div>
<div>dStart = sdf.format(params["param0"].value);</div>
<div>dEnd = sdf.format(params["param1"].value);</div>
<div> </div>
<div>if (BirtComp.lessOrEqual(dEnd,dToday)){true;}</div>
<div>else{false;}</div>
<div> </div>
<p><strong>Result =</strong></p>
<p><b><span>org.eclipse.birt.report.engine.api.impl.ParameterValidationException: The validation for parameter "param1" fails.</span></b></p>
<p> </p>
<p><strong><span>I would like to change the text to : Error Parameter "param1".</span></strong></p>
<p> </p>
<p><strong><span>Thanks !</span></strong></p>
Find more posts tagged with
Comments
There are no comments yet