spage Posted April 21, 2009 Share Posted April 21, 2009 I would be very grateful for any help with this: I am running Jasper Report 3.1 and iReport 3.1.2. I have just written a simple report using iReport which requires a prompt for its one parameter. I have added it to the repository and added the required input control; it works fine when testing it with Jasper Reports.But when I add it to the Dashboard (using the Dashboard Designer), a message appears saying "The report is missing default values for at least one mandatory parameter". This message is still displayed when I add in the input_control from the 'Single Report Controls" section together with the Submit and Reset buttons. In the report itself, I have defined a default expression for the report's parameter. So, I can't work out what is going wrong.Any help with this would be greatly appreciated.Stuart Link to comment Share on other sites More sharing options...
r7lemieux Posted February 8, 2010 Share Posted February 8, 2010 Hi Stuart, All my parameters have valid working default values and yet the dashboard gives me the same message. Did you find a solution? Using iReport 3.7.0 Jasper-Pro server 3.7ThankRichard Link to comment Share on other sites More sharing options...
spage Posted February 10, 2010 Author Share Posted February 10, 2010 Richard,It was a while ago now, and I'm afraid I no longer have that solution to hand, but from memory I think the solution was to create the Report with the Control in iReport, including the default value and then publish it to the repository. This is as oppoded to creating the Control in JasperReports.Sorry not to be of more help.Stuart Link to comment Share on other sites More sharing options...
klennon Posted February 17, 2010 Share Posted February 17, 2010 Running iRport and Jasperserver 3.5.I also get that message when I add an iReport that has a paramater to a dashboard. For my version you can correct that message by going into Special Content and under Single Report Controls at the top, add the necessary input that goes with the report you've added to the dashboard to the dashboard as well. Link to comment Share on other sites More sharing options...
cbarlow3 Posted March 5, 2010 Share Posted March 5, 2010 I'm having the same problem. Two reports that I want to control with a single date input control on a dashboard. When I run the reports individually, a prompt dialog comes up and asks me for the date, and each report works fine. When I try to add either report to a dashboard, I get the "missing default" message the others are getting. The input control DOES become available as a single report input control (when I add the first report) or a multiple report input control (when I add the second report that has the same parameter and input control defined), but adding that input control to the dashboard doesn't seem to appease it. I've changed my parameters from mandatory to not mandatory, and I've provided defaults for them, plus they work as individual reports. But I can't create a dashboard with these two reports. HELP! Link to comment Share on other sites More sharing options...
dgrove Posted May 13, 2010 Share Posted May 13, 2010 Same issue here, the only way I can get the report to run/load on the dashboard is to remove the input control, which makes it disappear from the special content folders. Sort of a Catch-22 Link to comment Share on other sites More sharing options...
itsgauravdas Posted June 23, 2011 Share Posted June 23, 2011 Have U been able to paas input parameters in DashBoard successfully.Even I am facing same.Individual reports works fine with default parameters.But when I give same parameters thru URI in Dashboards it takes the default value.Any Luck !!!! Link to comment Share on other sites More sharing options...
cbarlow3 Posted April 11, 2012 Share Posted April 11, 2012 Well, it's two years later, and I've now written a few hundred reports in iReport, but I've still never successfully created a dashboard that includes a report with an input control. I've set a default value for the date parameter in iReport (I used new Date(), although I really want the default value to be null so I can recognize when the user hasn't input a date and I can treat that as a special case like I do when it's a stand-alone report), and it's not a mandatory parameter, although it is visible. I've unchecked the box in JasperServer that says "Always prompt", and even though I still get the error when I drag the report onto the dashboard designer pane, the input control does show up under "Special Content" as expected under either the Singel Report Controls or Multiple Report Controls, depending on whether I only have a single report in the dashboard or multiple with the same parameter name. And yes, I can click on the arrow next to that special content version of the input control and get it to show up in the design pane, and then I also add a standard submit button and save the dashboard. But even with all that, when I go to run the dashboard, in the area where the report should be, I get the same error as when I was designing, and if I enter a date in the date input control and click submit, it seems to have no effect at all. A report that works perfectly well as a stand-alone and has been modified to try to appease the default-needy dashboard still won't run inside the dashboard.Carl 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