srivathsangayathri Posted May 22, 2020 Share Posted May 22, 2020 I have a main report with 4 sub reports. Is it possible to get the details of sub report in main report like name of subreport or id or something. Link to comment Share on other sites More sharing options...
darth_fader Posted May 22, 2020 Share Posted May 22, 2020 http://jasperreports.sourceforge.net/schema.reference.html#returnValue Link to comment Share on other sites More sharing options...
darth_fader Posted May 22, 2020 Share Posted May 22, 2020 Yes Look at return values for a subreports http://jasperreports.sourceforge.net/schema.reference.html#returnValue . This lets you map values between the subreport and parent report, you can send back whatever you'd like. You'll need to map a variable in your subreport to a variable in your parent report, and may need to mess with 'evaluation times' wherever you display those values, but this is what you're looking for. Lot's of examples online if you have issues with this. Link to comment Share on other sites More sharing options...
srivathsangayathri Posted May 26, 2020 Author Share Posted May 26, 2020 suppose Iam having a variable to pass the name of sub report which is being loaded. But the variable is evalauted at the end so I get null in main report first time.How to fix this 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