Jump to content
Changes to the Jaspersoft community edition download ×

Display an image when a condition is true


2006 IR Open Dicussion

Recommended Posts

By: cemoi58 - cemoi58

Display an image when a condition is true

2006-01-04 08:17

Hello,

I would like know how to make to display an image only when a field (for example "PersonID") of the datasource is equal to 1 or 2?

 

Could you give me the expression to make that please?

 

Thank you!

 

 

 

 

By: C-Box - c-box

RE: Display an image when a condition is true

2006-01-04 10:53

use this as PrintWhenExpression:

 

new Boolean($F{PersonID}.intValue() == 1 || $F{PersonID}.intValue() == 2)

 

that's it! (Assume that PersonID is an Integer field)

 

hth

C-Box

 

 

 

 

By: cemoi58 - cemoi58

RE: Display an image when a condition is true

2006-01-05 02:07

Ok thank you!

 

It works!!! :-) :-) :-)

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