Jump to content
Changes to the Jaspersoft community edition download ×

can we hide footer if detail is empty ?


2005 IR Help

Recommended Posts

By: barnab - stevenren

can we hide footer if detail is empty ?

2004-06-18 07:21

I'm new using Jasper report...

I'm lookling how to hide footer statistics if detail is empty...

 

Is it possible ?

 

Thx in advance

 

BarnaB

 

 

 

 

By: C-Box - c-box

RE: can we hide footer if detail is empty ?

2004-06-18 07:30

Use the printWhenExpression of the whole footerband you want to hide:

 

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

 

if no detail, then the internal variable "REPORT_COUNT" should be cero .. and so you can suppress other bands easily.

 

hth

C-Box

 

 

 

 

By: barnab - stevenren

RE: can we hide footer if detail is empty ?

2004-06-18 08:00

Thx a lot...

 

It's a good point of depart!

 

But the footer is inclueded in a sub-sub-Group...

 

And ReportCount is incremented to each detail for any groups.

Is it possible to init ReportCount at each new group ?

 

Thx

 

BarnaB

 

 

 

 

 

By: C-Box - c-box

RE: can we hide footer if detail is empty ?

2004-06-18 13:23

Well, in this case I would create a new variable e.g. "grouprecordcounter" that counts up the "REPORT_COUNT" variable and has as resettype "group" and as initialvalue "new Integer(0)".

 

that should work (I hope so).

 

hth

C-Box

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