Jump to content
Changes to the Jaspersoft community edition download ×

Variable Expression Problem


2004 IR Help

Recommended Posts

By: mb123456 - mb123456

Variable Expression Problem

2004-05-20 14:28

I'm trying to implement a varation on the counter theme. Basically, I want this counter to increment only when this image field equals 'NO'. The resulting report does not have any syntax errors but the value is incorrect (it's equal to the total number of records).

 

Here is my current variable expression:

 

($F{image}.equals("NO"))? new Integer($V{counter_NoImg}.intValue() +1): new Integer($V{counter_NoImg}.intValue() +0)

 

Besides that, everything else is normal about the counter variable (integer type, reset type is report and calc type is Count).

 

Any help is appreciated!

 

 

 

 

By: Giulio Toffoli - gt78

RE: Variable Expression Problem

2004-05-21 03:55

 

Set your calculation type to none.

 

Giulio

 

 

 

 

By: mb123456 - mb123456

RE: Variable Expression Problem

2004-05-21 06:26

Thanks for your help, Giulio.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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