You can use the default value expression of the parameter to do this:
<parameter name="Parameter" .../>
<parameter name="NewParameter" isForPrompting="false">
    <defaultValueExpression>$P{Parameter}.convertToDate 
etc</defaultValueExpression>
</parameter>

HTH,
Lucian

David Meiser wrote:
> Is it possible to reference one parameter from another?
>
> I need to get the date prior to a user entered date and while, in 
> theory, I could do this with DB2, I get an error stating that the 
> parameter is incorrectly referenced.  I figure that it's because the 
> parameter is nested too deeply.
>
> I thought that an excellent way to work around this is to just say 
> something like $NewParameter = 
> ($Parameter.ConvertedToDateFromCustomFormat() - 1 
> day).ConvertedBackTodateFromCustomFormat().  However, I haven't seen 
> anything that does this and I haven't been successful at doing this.
>
> Thanks!
> Dave
> ------------------------------------------------------------------------
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> jasperreports-questions mailing list
> jasperreports-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
>   


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions

Reply via email to