chitra.elumalai Posted July 12, 2016 Share Posted July 12, 2016 Hi ,I created a main report with 2 sub reports.For instance - Main report with Title (Static Text)Sub report 1 - (Column1,Column2,Column3) in title band of Main reportSub report 2 - (Title ,Column1,Column2 ... Column5 ) in the Detail band of Main ReportThe data source is csv datasource. I passed the parameter ($P{REPORT_DATA_SOURCE}) in the Data source expression for each sub reports. When previewed , i got the main report with the first subreport along with data. For Second sub report , i get only the title and not the data.Could anyone please advise ?P.S : I have not used any parameters to filter the data. Regards,Chitra Link to comment Share on other sites More sharing options...
javier.ggi90 Posted July 12, 2016 Share Posted July 12, 2016 Try looking into this other question: http://community.jaspersoft.com//questions/1007446/csv-subreport-does-not-workThat solution is what I do everytime I use consumable datasources. Javier Link to comment Share on other sites More sharing options...
chitra.elumalai Posted July 13, 2016 Author Share Posted July 13, 2016 Thanks Javier.So the problem is because of the indices. Some data from csv file is showed up in the 1st sub report whereas the second sub report does not get the data. So it has to either read the csv file again and populate the data in the second sub report. Any help will be much appreciated. 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