|
Re: Reference a parameter from another parameter: msg#00020java.jasperreports.general
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-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx > 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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: PDF Permissions, Mauricio Wodarski da Silva |
|---|---|
| Next by Date: | How do i conect to Jasper from my external Reporting application throug program, eldo kk |
| Previous by Thread: | Reference a parameter from another parameter, David Meiser |
| Next by Thread: | How do i conect to Jasper from my external Reporting application throug program, eldo kk |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |