I need some help with conditional styling in FML. I have a report set up for which one of the RECAP lines is:
RECAP TOTS(1,12)= IF R00 GT 0 THEN R00 ELSE (L01+L02+L03+L04+L06+L07+L08+L09+L10+L11+RXX);
The values in the fields used in the RECAP are in the format D12.3. I use conditional styling as below on this field and the background colour changes to Red, Orange or Green depending on the value as I want:
TYPE=DATA, COLUMN=C2, LABEL=TOTS, BACKCOLOR=RED, WHEN=C2 GT C1,$
TYPE=DATA, COLUMN=C2, LABEL=TOTS, BACKCOLOR=YELLOW, WHEN=C2 GT 2600,$
TYPE=DATA, COLUMN=C2, LABEL=TOTS, BACKCOLOR=LIME,$
However I want the field to be displayed as an integer, so I changed my code to this:
RECAP TOTS(1,12)/I9= IF R00 GT 0 THEN R00 ELSE (L01+L02+L03+L04+L06+L07+L08+L09+L10+L11+RXX);
which displays correctly, but now my conditional styling won't work. (The background colour is showning as lime when due to the value of the cell it should be red).
I've tried the manual and searching the forum, but I can't find any reason as to why this won't work. I don't want to change my column to an integer before summing, as the totals are then out due to the decimal places being lost.
Anyone know where I'm going wrong?
WF 7.6.11
Output: HTML, PDF, Excel