Jump to content

When report has not data


vk01

Recommended Posts

Hi,

 

I have this static text on the summary band "there is no data to report" and this condition on that band

--

new Boolean($V{PAGE_COUNT}.intValue()==0)

--

 

When i run the report, the data shows up which has about 3 pages and also this message shows up at the end of the report.

 

Any ideas? would any special characters play a role in this?

 

Thank you.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Try this instead as your condition

 

new Boolean($V{REPORT_COUNT}.intValue()==0)

 

It counts the number of row returned to the report. So if you report returns no data your message will be triggered.

 

PAGE COUNT - Contains the number of records that were processed when generating the current page.

 

Each time you start a new page the value will be set back to zero.

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