Scheduled Reports Not Using defaultValueExpression For Date


I have a report designed using Jaspersoft iReport Designer 5.1 with two input parameters defined with a default value expression to define a date range :

<parameter name="lowerDate" class="">
    <parameterDescription><![CDATA[Enter Lower date]]><parameterDescription>
<parameter name="upperDate" class="">
    <parameterDescription><![CDATA[Enter Upper date]]><parameterDescription>
In the report configuration in JRS I have defined the input parameters and bound them to the report parameter names and set them as not mandatory. The report runs just fine and populates the date fields appropriately with the year start date and today's current date without prompting.

My issue is I cannot get the same behaviour when the report is run via a schedule which I have configured to run daily. In the schedule configuration, as I did not make the input parameters as mandatory, are blank - assuming the default values as specified in the report should be used, however the 'upperDate' parameter is not reflecting the current day but retaining the original value from the report first ran. I've tried various combinations in the config but nothing seems to make the report update the date values during a scheduled run.

Any help would be most appreciated.


Ectomorph's picture
Joined: Feb 4 2014 - 3:02pm
Last seen: 6 years 2 months ago

0 Answers:

No answers yet