Jump to content
Changes to the Jaspersoft community edition download ×

How to pass field value from main report to subreport.


sumithnangunuri

Recommended Posts

For Example,In my main report i am creating the fields which belongs to one table as stated below, 

Course_ID   Course     startdate           Enddate

1198             maths     05-01-2018       11-01-2018

1199             science   06-01-2018        21-01-2018

And i am creating the subreport in the main report,where getting the coursedetails from another table for which the courseid is common for both the tables.At the end report should be in the format of

Course_ID   Course     startdate           Enddate

1198             maths     05-01-2018       11-01-2018

          Coures_ID    CourseDetails    (Subreport)

           1198           Maths subject has 8 different topics.

1199             science   06-01-2018        21-01-2018

          Course_ID    CourseDetails    (Subreport)

           1199              Science subject has 8 different topics.

I am not able to pass the main report id to subreport,where my report is not able to generate as the above format report.

If anyone helps me i will be much thankfull to them.

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Thank's for your respond you have give .

But for my coursedetails column consists of multiple records,where it sholud be get sorted based on the ID.

Yes i can club two tables in one report.But does,I can create the above format report.If yes please can you explain the format how to create.

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