Jump to content
Changes to the Jaspersoft community edition download ×

How to hide values when the total is 0?


ktrinad

Recommended Posts

By: Marcelo - mike81

How to hide values when the total is 0?

2003-11-13 14:47

Hi.

 

I have two groups in which I assign him there the values that I need for example:

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - -

Client | Val1 | Val2 | Val3 | Val4-->> headed

# Client

- - - - - - - - - - - - - - - - - - - - - - - - - - - -

# Client 5098--> Mike ----> GroupCte

- - - - - - - - - - - - - - - - - - - - - - - - - - - -

95795 | 5000 | 2000 | 200 | 100 --|

95796 | 300 | 50 | 1000 | 4000 --|---> GroupFact

95797 | 0 | 0 | 0 | 0 --| /

 

The values (Val1,Val2,Val3 and Val4) do I grab them adding the client's fields that have the same one I number of Invoice, and good, is my question, how do I make him to hide the group when the values are 0?, in this case that of the invoice 95797.

 

Do already attempt with the option of " PrintWhenExpression " but I am can't, could somebody help me?

 

Thank you.

 

 

 

 

By: Kaddori - yakamakagruen

RE: How to hide values when the total is 0?

2003-11-13 15:49

As i understood, get used to this expression and try to change it as you need in "PrintWhenExpression":

 

! new Boolean($F{HeadingType}.intValue() == 0)

 

 

 

 

By: Marcelo - mike81

RE: How to hide values when the total is 0?

2003-11-14 06:48

It is this way, I have tried to put in "PrintWhenExpression"

 

new Boolean($V{Val1}.doubleValue () != 0)

 

This put it in the part of Bands, so that it doesn't show the line of the group when it is 0, but it doesn't work me, :-(

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