Jump to content

Dynamic subreport generation-- very very urgent..


srikanth1229

Recommended Posts

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

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

 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

  • 4 weeks later...
  • 2 years later...

Steps to be followed:

1.Create a main report

2.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_num

It  will look like:

Amit

Shreya,Varun

New york

1234567890

 

Naveen

Deepa,deepak

Paris

9807654321

I worked on such reports and its wrking properly.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...