Jump to content
Changes to the Jaspersoft community edition download ×

How to write the PrintWhenExpression


ktrinad

Recommended Posts

By: Andy Tan - tanyd

How to write the PrintWhenExpression

2003-09-19 00:50

I want to display a field $F{qty} only if it is greater 10000,how to write the Print when expression?

I try to put as below:

$F{qty}>100000

 

It show me the error:

operator > cannot be applied to java.lang.Integer,int.

 

Hot to do it? Help me,thanks.

 

 

 

 

By: Sachin Aggarwal - sk_aggarwal

RE: How to write the PrintWhenExpression

2003-09-19 00:54

Hi,

try using this

new Boolean($F{qty}.intValue()> 100000)

Assumning datatype of qty in Integer.

hope it helps

Sachin

 

 

 

 

By: Andy Tan - tanyd

RE: How to write the PrintWhenExpression

2003-09-19 01:01

It works.

 

Thanks.................

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