Jump to content
We've recently updated our Privacy Statement, available here ×

Background not showing up through style


bfogler

Recommended Posts

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?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...