I have a table which cells fill values from 0 to 3 ( from dataset). I need that cell were painted according to the value. Now I know that a can create a conditional styles for every field in dataset:
- $F{MONDAY}.doubleValue() == 0
- $F{MONDAY}.doubleValue() == 1
- $F{MONDAY}.doubleValue() == 2
- $F{MONDAY}.doubleValue() == 3
So create the same for the rest days of week. But this way is extremly ineffetive and comlicated.
What should i use instead of $F{<DAYOFWEEK>} to include all columns into expression? So i could create one style with the four conditional styles and apply it for every column.
1 Answer:
Posted on February 16, 2017 at 5:11pm
Haven't tried it myself but have you read the following thread? The bug may be fixed in the current version.
http://community.jaspersoft.com/questions/539525/setting-styles-dynamica...
http://community.jaspersoft.com/questions/542449/how-make-parameterized-...
I have not got an answer on my question
And silence. And the dead with scythes standing :)))
(I hope you know this film)
It's a strange that there is no such an obvious feature.
Great film, btw :)