Background not showing up through style



I am trying to use a style condition to color the backgorund of the cell if it is greater than another column. The condition express works for the forecolor/text but it does not color the background.

    <style name="Conditional Formatting" mode="Transparent">
            <conditionExpression><![CDATA[$F{Total Accrual to Date}>=$F{Upper Target Accrual}]]></conditionExpression>
            <style mode="Opaque" forecolor="#1227E6" backcolor="rgba(255, 172, 18, 0.4117647)" fill="Solid" isBold="false"/>


The background color shows up white instead of the chosen color.

Can anyone help?

bfogler's picture
Joined: Jun 14 2019 - 12:27pm
Last seen: 2 months 1 week ago

1 Answer:


Be sure, that your TextField - where you adjust the "link" to the style - doesn't have set the mode set to TRANSPARENT explicit.  (so check the TextField attributes in jrxml source as well!)

If so, the textfield attributes will override the (conditional) Style attributes... so in former times, the old designer iReport sometimes set the color to white and the mode to transparent and you had to remove these attributes at JRXML level to get the (conditional) opaque style working. Not sure what the current JasperSoft Studio does. Just try it out.

hth + regards 


C-Box's picture
Joined: Jul 19 2006 - 5:58pm
Last seen: 2 weeks 2 days ago