rcmpjames Posted February 3, 2007 Share Posted February 3, 2007 Hi, Newbie, here. I seem to be having difficulty getting the following to work for the "subSubReport". I have tried with or without datasource in the subSubReport to no avail; regardless of what I try, I see the report data, subreport data, but no subSuReport data... help? Code: FillReportForm fillReport = (FillReportForm) form; String formReportName = fillReport.getFillReportName().toString(); String subReportName = fillReport.getFillSubReportName().toString(); String subSubReportName = fillReport.getFillSubSubReportName().toString(); if (!fillReport.getFillSubReportName().equalsIgnoreCase("null"«»)){ JasperReport subreport = (JasperReport)JRLoader.loadObject(context.getRealPath("/pages/reports/" + subReportName + ".jasper"«»)); parameters.put(subReportName, subreport); } if (!fillReport.getFillSubSubReportName().equalsIgnoreCase("null"«»)){ JasperReport subreport = (JasperReport)JRLoader.loadObject(context.getRealPath("/pages/reports/" + subSubReportName + ".jasper"«»)); parameters.put(subSubReportName, subreport); } String fileName = context.getRealPath("/pages/reports/" + formReportName + ".jasper"«»); String pdfName = context.getRealPath("/pages/reports/pdf/" + formReportName); DataSource ds = (javax.sql.DataSource) context.getAttribute("dppDB"«»); Connection connection = ds.getConnection(); try{ JasperPrint jasperPrint = (JasperPrint) JasperFillManager.fillReport(fileName, parameters, connection);Post edited by: rcmpjames, at: 2007/02/02 19:54 Link to comment Share on other sites More sharing options...
rcmpjames Posted March 20, 2007 Author Share Posted March 20, 2007 Still....! Having this problem - can't seem to find any reference to the same issue while searching this forum and/or google. anyone...? 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