Jump to content
We've recently updated our Privacy Statement, available here ×

Default detail record when no details found


kevin.clinegmail.com

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I solved this for my report like this:

 

first, i defined a parameter "noData" with a default text like "Sorry, no values" and placed a textfield with that parameter in the summary band.

 

then i used the printWhenExpression of this field like this

Code:
 Boolean.valueOf($V{REPORT_COUNT}.intValue() == 0)

 

and i didn't want the detailband to be printed empty, i just set the report property whenNoDataType to AllSectionsNoDetail.

 

Like this, my NoData is only printed when the report_count is 0 and detailband is not shown.

 

Hope this helps...

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