Jump to content
Changes to the Jaspersoft community edition download ×

Subreport Return Value Problem

2004 IR Help

Recommended Posts

By: Brent - bwenson

Subreport Return Value Problem

2005-04-28 11:33

I have a master and a subreport. The subreport contains only one field that is a summary of a column in the database. I display that subreport on the master report, I'm also using the summary field from the subreport in calculations on the master report.


I'm getting the values to the master report from the subreport using a Map object.


The problem I'm having is that if the subreport's resultset is empty, then in effect it doesn't print and does not reset the value in the Map. I would like to reset the Map's value to zero if the subreports resultset is empty.


The master report prints multiple rows and the subreport needs to reset the Map values each time.


I'm extremely frustrated and have tried everything I can think of.





By: Teodor Danciu - teodord

RE: Subreport Return Value Problem

2005-05-04 07:17




Have you tried set whenNoDataType="AllSectionsNoDetail"

to the subreport template?


I hope this helps.







By: Brent - bwenson

RE: Subreport Return Value Problem

2005-05-09 06:09

Just did that and it works...Thx...Seems so obvious after the fact.

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