jmorton Posted August 27, 2015 Share Posted August 27, 2015 Hello, I am relatively new to Jaspersoft 5.6. I have created a report and added two parameters and two corresponding input controls to a report to select a date range. When I run the report and input the date range, the report is blank (as opposed to when I hardcode dates into the query). The Dataset and Query Dialog displays the parameters in red. I am thinking that is the issue, but I cannot determine why:AND SHARE.OPEN_DATE BETWEEN $P{StartDate} AND $P{EndDate} The parameters appear in the "Parameters" tab in the lower pane and are correctly set to java.util.Date.The parameters are also set at the report and table level. What might I be missing?Thanks,Josh Link to comment Share on other sites More sharing options...
hozawa Posted August 27, 2015 Share Posted August 27, 2015 Try outputting SHARE.OPEN_DATE, $P{StartDate}, and $P{EndDate} in a report to see those values. Link to comment Share on other sites More sharing options...
Solution joel.carlson Posted August 27, 2015 Solution Share Posted August 27, 2015 You might have to link the parameters from the main report to the table. Right click on table in main report and edit datasource. In the parameters tab click add. In the dataset parameter name select your start date paramenter from the table query. Then under value expression select the start date parameter for the main report. Do the same for the end date and you should now get data. Link to comment Share on other sites More sharing options...
jmorton Posted August 27, 2015 Author Share Posted August 27, 2015 Thank you Joel! Adding the parameters to the dataset worked perfectly.Josh Link to comment Share on other sites More sharing options...
joel.carlson Posted August 27, 2015 Share Posted August 27, 2015 No problem, I had a similar issue. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now