raju143 Posted October 13, 2010 Share Posted October 13, 2010 How to place the i-report in jasper server with an subreport using an parameter help me i have been strucked with this problem Link to comment Share on other sites More sharing options...
jcordingley Posted October 13, 2010 Share Posted October 13, 2010 There are a few ways to do this the easiest way i find isFirst you need to add the jasperserver to the ireport repository navigator. Then right click the folder you want to add the report to, click add report unit, give the report a name, description etc.Then choose the jrxml file or choose the current file to be usedthen define the data soureALL DONE!!i know the instructions are very basic but it really is that easy! Link to comment Share on other sites More sharing options...
raju143 Posted October 13, 2010 Author Share Posted October 13, 2010 Thank u Link to comment Share on other sites More sharing options...
raju143 Posted October 13, 2010 Author Share Posted October 13, 2010 But I want is how to pass it with a subreport having a parameter; I have done as u mentioned but it is only for normal reports but for not a report having a subreport in it with a parameter Link to comment Share on other sites More sharing options...
julesstp Posted October 13, 2010 Share Posted October 13, 2010 Does your report / subreport run when previewing it in ireport? If not the sub report needs to have parameters and these parameters need to map to fields or parameters on the main report. (In the main report click on the sub report and in properties scroll to the bottom and add Parameter (Name = name of param from subreport, expression = field or parameter in main report). Then you need to change the path of your Subreport Expression to "repo:thenameofyourrepor". Save, compile main report, load onto server in report unit. Then you need to compile your subreport and Add jrxml file / upload them (the easiest way for me) to the Resources folder INSIDE your Report Unit folder. Now the subreport will NOT run in ireport but should work in Run Report Unit (server)This was very confusing for me, 5 hrs. to get it to work.good luck!http://osdir.com/ml/java.jasperreports.general/2006-06/msg00055.html 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