Default parameters and scheduled reports

I've got a report that accepts a date parameter.  if the parameter value is not provided, then the date should default to yesterday.  I have set the default expression to the following

new Date(System.currentTimeMillis() - 24 * 60 * 60 * 1000)

This works well when i run in iReport, but when I deploy to Jasper server (3.5) and schedule the report to run it doesnt seem to work.  At the parameter tab of the schedule process i put in no value.  When the report runs, it runs with a null value for the parameter instead of firing the default expression. 

Am I missing something?  Thanks

allenm@vt.edu's picture
Joined: Feb 6 2007 - 12:23am
Last seen: 9 months 1 week ago

1 Answer:

 Has this one every been figured out?  I have almost the same problem. 

jamfan's picture
22
Joined: May 20 2011 - 11:50am
Last seen: 10 years 3 months ago
Feedback