Jump to content
Changes to the Jaspersoft community edition download ×

Help with nested groups

Recommended Posts

By: JuliLogan - julilogan

Help with nested groups

2006-02-08 08:24

Hi all!


I'm trying to write a report with two nested groups. I have done a master and a subreport because I have two different datasource and the subreport detasource is a field of the master..


Essential code:


---- Master.xml ----


<field name="subreportDataSource" class="java.lang.Object"/>

<parameter name="Subreport" isForPrompting="true" class="net.sf.jasperreports.engine.JasperReport"/>


<subreport isUsingCache="true">


<dataSourceExpression>${subreportDataSource}</dataSourceExpression> <subreportExpression class="net.sf.jasperreports.engine.JasperReport">$P{Subreport}</subreportExpression>





---- MasterBean.java ----


public JRBeanCollectionDataSource getSubreportDataSource() {


JRBeanCollectionDataSource subDataSource = new JRBeanCollectionDataSource(



return subDataSource;





Is that correct?

If I go in debug with a break in the SubreportBeanFactory and it enters with the correct values for "list" but after few iterations it seems to loop in same place (I don't know where) and doesn't return in the factory..



Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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