Jump to content
JasperReports Library 7.0 is now available ×

Set conditional expression, right way !


luigi.frasca

Recommended Posts

HI,

I have Jasper Reports that it should be print the values in different color according a condition.

So this is my code:

<style name="Style1">
        <conditionalStyle>
            <conditionExpression><![CDATA[$F{OblPL}>0]]></conditionExpression>
            <style forecolor="#FF0000"/>
        </conditionalStyle>
 </style>

and my field is so defined:

<field name="OblPL" class="java.lang.Double"/>

But it does not work, why ? 

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...

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