srikanth1229 Posted December 21, 2009 Share Posted December 21, 2009 Hi Friends,We are currently Jasper IReports 3.5.1 version,we have a requirement to generate Sub Reports that are dynamic in nature,ie for example in a Financial planing report ,the education planning subreport is dependend on the number of children,this section should be repeated for each child.Could anyone please let us know how this could be achieved using Jasper.Highly appreciate your quick response!Thanks very much in Advance! Please find the attached doc for your reference. Link to comment Share on other sites More sharing options...
CaptnTony Posted December 21, 2009 Share Posted December 21, 2009 This sounds like you are trying to use a sub report (one for each child).You should create and layout the necessary information on a new report, then add it to the Group header / Detail sections of a master report. Connect the two by passing in (using parameters) the key value for each child so the sub report can pull the necessary data. Hope that's what you were asking for. Link to comment Share on other sites More sharing options...
srikanth1229 Posted January 13, 2010 Author Share Posted January 13, 2010 Hi CaptnTony Thanks for replying. we tried the same , but the data is populating for first sub report only.For example: if i have 3 children. the subreport with data is generating for only one child.please do the needful.Thanks in advance. Link to comment Share on other sites More sharing options...
srikanth1229 Posted January 16, 2010 Author Share Posted January 16, 2010 Please help me to solve this issue... Link to comment Share on other sites More sharing options...
aalya Posted August 24, 2012 Share Posted August 24, 2012 Steps to be followed:1.Create a main report2.give the path of the Field ,u wan to iterate.3.Create a sub report in main report and give the path of details in sub-report which is common and you wan to iterate .Remember that generally we give this path from root but in this case give it from where it starts after the path given in main report and start with //4.Ex. main report path:"School/Class/Student" Sub-report path:"//Division" It means the detail of Student is present in Division like @parent,@Address,@phone_numIt will look like:AmitShreya,VarunNew york1234567890 NaveenDeepa,deepakParis9807654321I worked on such reports and its wrking properly. Link to comment Share on other sites More sharing options...
uouser Posted August 24, 2012 Share Posted August 24, 2012 You need to add you sub-report under the DETAILS section of your master report. this way your subreport will be invoked for each child giving you the required output. I hope this helps. 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