donclary Posted December 10, 2007 Share Posted December 10, 2007 I have created a Master report that works when there is no subreport included. I have also created a subreport that works correctly when I execute it. The master report is attached. The master report stops working after I insert the subreport. I have read many posts in this forum on subreports and found good advice. I have created the parameter in the master and subreport. When no data property for the subreport is set to "All sections, no detail", as suggested in the forum. I do not understand why the master stops working when the subreport is included. Suggestions for correcting this problem would be appreciated. Thank you! [file name=HSA_Hours_Report.jrxml size=9288]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/HSA_Hours_Report.jrxml[/file] Link to comment Share on other sites More sharing options...
Pedja Posted December 10, 2007 Share Posted December 10, 2007 If the master report returns no data, the subreport will not be shown. Does your master report work without the subreport, with the same value for the parameter? Link to comment Share on other sites More sharing options...
donclary Posted December 11, 2007 Author Share Posted December 11, 2007 The master report does work, but the parameter is not used in the query. The paramter is mapped to one of the fields in the query. The master works when the parameter "Use as prompt" is configured to "yes" and when configured to "no". There is no default value configured for the parameter. Link to comment Share on other sites More sharing options...
donclary Posted December 11, 2007 Author Share Posted December 11, 2007 I deleted the subreport again. This time the master continues to function. With the parameter "Use as a prompt" is set to "yes" and when set to "no". I added the subreport back in (using the Wizard) and the master no longer works. 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