zoombaba Posted September 11, 2013 Share Posted September 11, 2013 I’ve used a crosstab in the Summary band of my Subreport to create a dynamic column/pivot table. When I run this independently its working fine and is returning the data correctly, as expected.Then when I reference it in another report as a Subreport within the Detail Band, it runs okay with no errors, but with some of the data is missing.I’ve used the following:Subreport data expression is $P{SUBREPORT_DIR} + "mySubreportFile.jasper"Connection type Use a datasource expressionDatasource expression $P{REPORT_DATA_SOURCE}Can anyone advise please? Unfortunately for security reasons, I cannot provide any files to look at. Link to comment Share on other sites More sharing options...
ajinkya_c Posted September 13, 2013 Share Posted September 13, 2013 Hi,Try thisAdd report as a resource into main report.And use :repo.resource_name in subreport expression.This may solve your problem. Let me know.ThanksAjinkya Link to comment Share on other sites More sharing options...
zoombaba Posted September 16, 2013 Author Share Posted September 16, 2013 Hi Ajinkya Thanks for replying to my question. Due to time constraints I had to find a way to do my report without needing to use a subreport, so in the end I didn't use a subreport at all. But when I need to do another report using a subreport, I will try your suggestion. Thanks again for your help. Lynsey 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