How to generate a subreport inside master report using same JRBeanCollectionDataSource

0

I need to pass same JRBeanCollectionDataSource to main and subreport

My JRBeanCollectionDataSource have 4 fields.i need to place 2 fields in main and other 2 fields in subreport

Please sive suggetions to do this pdf generation

bgiribabu's picture
Joined: Oct 10 2012 - 8:29pm
Last seen: 6 years 11 months ago

3 Answers:

0

If subreport located in Detail section pass two fields of main report to subreport as parameters.

sanbez's picture
834
Joined: Jan 11 2011 - 2:06am
Last seen: 1 month 1 hour ago
Thanks for your reply. Iam new to Jasper.How to send field as a parameter from main to sib report
bgiribabu - 6 years 11 months ago
0

Thanks for your reply.

Iam new to Jasper.How to send field as a parameter from main to sub report

bgiribabu's picture
Joined: Oct 10 2012 - 8:29pm
Last seen: 6 years 11 months ago
0

In Main reprot , click on the sub report object to see its properties.

" Parameter " property  map the paramters of main report and subreport.

below is the Screen shot . I have mapped 8 parameter , so its show  "8 properties defined"

Hope this helps.

 

 

NColaco's picture
25
Joined: Jun 29 2012 - 12:13am
Last seen: 6 years 11 months ago
Feedback
randomness