I crearted a scheduled report that no matter what date I print it on it needs to pull the Currenty Friday's report. I made a parameter called SaleDate in my query and had SaleDate set like this:
java.util.Date for class
Default Value Expression
When I run the report from the repository this works great, if I run from a scheduled report I always pulls the WEEK from the date it was sceduled not the actually real week.
thanks for any help.
Is that parameter available as an input control in the report or it's an internal parameter? I would suggest using the net.sf.jasperreports.types.date.DateRange parameter for your parameter. Take a look at chapter 6.3.4 of Jaspersoft Studio Ultimate Guide for more information about DateRange usage.