riesvantwisk Posted March 16, 2010 Share Posted March 16, 2010 hey All,I am using a subreport to generate additional data for a report.My subreport generates a graph and calls up additional sub-reports to create additional tables.Here are my options I tested:1) ((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("//page[@pageno=7 or @pageno=6]")2) ((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("//page[@pageno=7]")3) ((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("//page[@pageno=6]")4) ((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("//page[@pageno=6] | //page[@pageno=7]") 5) ((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("//page") 1) Does print my table, but my graph is empty2) Does print my table, but my graph is empty3) Does print my graph, but table is empty4) Does print my table, but my graph is empty5) Doesn't print graph or table data - The graph xpath expressions have been tested with full and partial XML data, so even when page7 is included, the data get's generated.- All xpath expressions have been tested in xpanther under firefox, I know not a authority on xpath correctness, but all expressions have been looked up against specifications.- No errors during report generation. I honestly don't understand why I cannot pass a sub data source consist of my two pages, afterall.. it's just XML, right? How would debug this problem? Usually I would step through code and find the problem, but iReport doesn't seem to have this capability using debuggers, or any way to output more sensible data, can it do that? My main problem now is, how to debug instead of trial and error changing things around? Ladtly, if I cannot figure it out. Anybody know a good company who can? (Against a normal hourly rate....) Ries Link to comment Share on other sites More sharing options...
thangalin Posted March 19, 2010 Share Posted March 19, 2010 I'd recommend trying to get help from the people at JasperSoft themselves. They especially enjoy technically challenging problems. 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