Jump to content
Changes to the Jaspersoft community edition download ×

Can I get a Conditional Style to work on the value in a Field


Recommended Posts


   I'm using Jaspersoft Studio 6.4.0.final and am a complete novice in using Jasper Reports.

   I have a field CO_HIGHLIGHT which can contain the values RED or GREEN.

   I have a Style that applies a Green background to a different field ADDRESS1 and want to make it conditional on the CO_HIGHLIGHT field containing 'GREEN'.

   I have tried using EQUALS($F{CO_HIGHLIGHT},CHAR(GREEN)) in the Expression Editor and get the error 'GREEN cannot be resolved to a variable'.

   Is it possible to do what I want using EQUALS or in some other way?



Link to comment
Share on other sites

  • Replies 1
  • 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...