Jump to content
Changes to the Jaspersoft community edition download ×

Conditional Color on fields from a sub-dataset in a table?


dlage

Recommended Posts

       Hi,

              I am trying to change the color of a fields value that is it a table. And the fields are part of a sub-dataset. I have tried the Conditional Styling Tags but when i add the style tags to the reportElement I get an error saying "Field not found: XML_ANSWERS --- net.sf.jasperreports.engine.design.JRDesignExpression@33ef232a"

                     my style tag :     <style name="failColor" fontName="SansSerif">
                                                       <conditionalStyle>
                                                                <conditionExpression><![CDATA[$F{XML_ANSWERS}.equals("fail")]]></conditionExpression>
                                                                <style mode="Opaque" backcolor="#FF0000"/>
                                                       </conditionalStyle>
                                               </style>

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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...