venu08 Posted April 14, 2011 Share Posted April 14, 2011 HiHow can pass the parameters in the sub report in jasper report. And how can mappe the main report and sub report Thanksgvr Link to comment Share on other sites More sharing options...
jpauze Posted April 15, 2011 Share Posted April 15, 2011 There is a property on the SubReport object called 'Parameters' which allows you to define which parameters will be passed into the sub report, create parameters within your sub report then from the calling report, open properties for the sub report object and you sepecify the sub report parameter and which main report parameter (any expression, field, variable, fixed value) will get passed inot the sub report and available for use. Not sure I'm clear on the question how can you map the main report and sub-report, assume if you are trying to pass parameters from main to sub you have already figured out how to link the Sub-Report object to the main report. Link to comment Share on other sites More sharing options...
jkaur Posted July 25, 2012 Share Posted July 25, 2012 HI, I was looking for something like this too. I have mapped the sub report and master report like you said. When I run the master report, it prompts for the value of the parameters, which is fine. But when I enter the values for the parameter, they do not get printed on the report. Can you please let me know what am I doing wrong?PLEASE HELP. Thanks J 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