rodriguezum Posted July 15, 2009 Share Posted July 15, 2009 i'm starting to use subreports and subdatasets, and i follow the instructions in the the ultimate manual, but it just doesn't seem to work,let me explain i'm using the same mondrian connection in the master and subreport, when i run them both separately they present perfectly, in the master report i reserve exactly the necessary space for the subreport to present, the subreport master report folder is in the classpath and i pass the report_connection parameter from one to the other, no input our output variables are needed. Finally when i run the report, it just doesn't show the subreport. Well instead i tried to use a subdataset with the subreport mdx query and necessary fields to create the chart that i want from the subreport, and pass the report_connection again, and i still can't make it work .don't know what else to try :(,i just follow the exact steps of the manual, when i try to do a report_connnection.toString() the result just comes out null, so in the end i'm just a little confused, i don't know what is the report_connection sending if anything, is the sql connection to my DB, is it the mondrian connection.... Please help :), Cheers here are both of the reports if you wana check it out Link to comment Share on other sites More sharing options...
rodriguezum Posted July 15, 2009 Author Share Posted July 15, 2009 when i put printwhenexpression new Boolean($P{REPORT_CONNECTION}!=null) the subreport now shows but without the subreport, that is the report connection is null, but in the master report i do graph's and crosstabs, so that parameter shouldn't be null Link to comment Share on other sites More sharing options...
lucianc Posted July 15, 2009 Share Posted July 15, 2009 If you use Mondrian as data source, you should pass the MONDRIAN_CONNECTION parameter to the subreport/subdataset. REPORT_CONNECTION is only used for SQL-based reports.Regards,Lucian Link to comment Share on other sites More sharing options...
rodriguezum Posted July 16, 2009 Author Share Posted July 16, 2009 doesn't work unfortunately, it throws me error evaluating expression Code: when i try to use subdataset instead of report it comes back and thorws me the same error, that i'm sending as a connection now is $P{MONDRIAN_CONNECTION}please advisePost Edited by rodriguezum at 07/16/2009 07:56 Link to comment Share on other sites More sharing options...
rodriguezum Posted July 16, 2009 Author Share Posted July 16, 2009 Solved the problem by not sending any connection, but a paramenter of MONDRIAN_CONNECTION $P{MONDRIAN_CONNECTION} , has you said... didn't read it right the first timePost Edited by rodriguezum at 07/16/2009 08:50 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