signorin Posted September 4, 2007 Share Posted September 4, 2007 I need to change the back color in a crosstab cell if the content is a negative number.it's possible with Ireport??thank you very much. Link to comment Share on other sites More sharing options...
kkelleher Posted September 5, 2007 Share Posted September 5, 2007 I've got a report that does this. Essentially, you'd create a style that specifies the color for cells whose value is less than 0, and create a conditional expression (by clicking Add under the Style conditions list on the Add/Modify style window. Here's my expression (it turns a cell red when the cell's value is less than 500):Code:$V{OpportunityLineItem1_UnitPrice_Sum}.doubleValue() < 500.0 ? Boolean.TRUE : Boolean.FALSEI do believe that's it, but I didn't create my report in iReport, so there may be something else you'd need to do. Thanks, Kristen Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now