phillips_chris Posted August 10, 2017 Share Posted August 10, 2017 Hi, 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?Thanks,Chris Link to comment Share on other sites More sharing options...
phillips_chris Posted August 10, 2017 Author Share Posted August 10, 2017 This worksEQUALS($F{CO_HIGHLIGHT},"GREEN") Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now