Background not showing up through style

0

Hi,

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">
        <conditionalStyle>
            <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"/>
        </conditionalStyle>

 

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: 3 days 2 hours ago

1 Answer:

0

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

C-Box's picture
1622
Joined: Jul 19 2006 - 5:58pm
Last seen: 4 days 10 hours ago
Feedback