Apply conditional style based on field value text = jasper studio

0

I'm trying to write a style conditional just an easy one to test some things. I want to be able to change the color of the text in a field that is rendered

when it matches a text string.

When 

$GroupField = "text"  apply style

 

I can't seem to get it to trigger. Any help would be appreciated.

imaginethepoet's picture
Joined: Aug 12 2016 - 7:47am
Last seen: 3 years 3 weeks ago

1 Answer:

0

Steps involve:

1) Right click on styles >> Add >> Style
2) give it a forecolor
3) right click on style >> Add Conditional Style >> give a condition like below;

   $P{GroupField}="text"

For the field you want to apply the style, click on the field and in the property select the style.

Note: This property would apply to complete string and not just one word of that field.

kkriplani's picture
847
Joined: Sep 4 2015 - 2:18am
Last seen: 1 week 6 days ago
Feedback
randomness