Jump to content

Jasper multilevel Subreport in Spring not working


inaasho

Recommended Posts

We have two levels of subreports configured in Spring. We could able to display reports for one level & not for the second level.

It is working good in iReport & not with the Spring integration.

Following are the configuration in views.properties.

CUSIP_Position_Detail_Report.class=reports.web.util.CustomJasperReportsMultiFormatView

CUSIP_Position_Detail_Report.url=/WEB-INF/reports/rdp/CUSIP_position_report.jasper

CUSIP_Position_Detail_Report.jdbcDataSource(ref)=dataSource

CUSIP_Position_Detail_Report.subReportUrls=cdnSub=/WEB-INF/reports/CUSIP_PSTN.jasper\naspSub=/WEB-INF/reports/CUSIP_PSTN.jasper\ncommonSub=/WEB-INF/reports/CUSIP_PSTN.jasper\ncsdSub=/WEB-INF/reports/CUSIP_PSTN.jasper\navcSub=/WEB-INF/reports/CUSIP_PSTN.jasper\npreSub=/WEB-INF/reports/CUSIP_PSTN_Pre.jasper\nvultSub=/WEB-INF/reports/CUSIP.jasper

If we include "adjSub=/WEB-INF/reports/CUSIP_PSTN_Adjust.jasper" to CUSIP_Position_Detail_Report.subReportUrls, third level reports will override their corresponding main reports.

Can u pls help to configure second level of subreports in Spring.

Link to comment
Share on other sites

  • 3 months later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

I have found subreports to only be useful when using SQL as a datasource in simple reports.  You will gain the most efficiency by switching to javabean datasources - they are 10x more flexible. 

 

 

Sorry, not the answer you were looking for, but it is a lesson I learned after many hours of wasted time with subreports.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...