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

How can I made the cell red when value is negative?


carter_zhou

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hello,

you can use conditional styles for that. Therefore you need to create a parent style first (Report inspector/Styles). Then you create a conditional style with the formatting options that you like.

In that conditional style you can use an expression like $F{FIELD}<0 . The problem is that as far as I know you cannot reference to the textfield value itself, you always have to use a specific field. So you need to create a conditional style for every field that you want to be conditionally formatted.

After doing this you have to apply the newly created style to your textfield.

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