Apply Conditional Style to Field Jaspersoft Studio

0

Using Jasper Studio 6.1 and have a Style called "RedLetters" with red forecolor, and a Field called "Salary". If Salary is above 50,000 then I want to apply "RedLetters" style. This way anyone making more than 50,000 will show up with red letters in my report. But I can't find anywhere in the "Salary" Field to put the expression "IF Salary > 50000 THEN apply RedLetters Style". Any ideas?

therrick_1's picture
Joined: Jul 17 2015 - 6:48am
Last seen: 4 years 1 month ago

1 Answer:

0

The Expression doesn't go in the Salary field. Create a generic Style and then create Conditional Styles under it. Conditional Styles are where the expressions and setting the colors goes. In the Salary field, you just set it to use the generic Style you created. See similar post:

http://community.jaspersoft.com/questions/911946/conditional-formatting-...

therrick_1's picture
Joined: Jul 17 2015 - 6:48am
Last seen: 4 years 1 month ago
Feedback