Jump to content

dynamic image element display


beekerc69

Recommended Posts

Can you use an expression to evaluate data and print a particular image file?

currently, i have 3 images Red, Yellow and Green (standard grapic stoplights)

i stack all 3 at the same X & Y position.

for the red one, i set the Print When Expression  to $F{STATUS} == 3

for the yellow one, i set the Print When Expression  to $F{STATUS} == 2

for the green one, i set the Print When Expression  to $F{STATUS} == 1

but this means placing 3 (or in some status displays, as many as 8) icons.

I'm hoping there's a way to build an Expression to evaluate one or more dataset fields and have the image resource to be displayed to be determined by the Expression.

Can this be done? 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

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