rasinc Posted February 9, 2020 Share Posted February 9, 2020 Based on some research, it appears the typical method of showing negative numbers as red is to setup a conditional style.I have a variable in a group footer that calculates inventory availability. I set up a style with the expression$V{Available}<0.00and red as the forecolour (255,0,0).However, when I run the report, the style doesn't change the forecolour.I'm not sure what to do to get this to work, or is this the correct approach?TIA, rasinc. Link to comment Share on other sites More sharing options...
bigalex Posted February 10, 2020 Share Posted February 10, 2020 Try expression:new Boolean($V{Available}<0.00) ? "<style forecolor='red'>" + $V{Available} +"</style>": $V{Available}Don't forget to set Markup in Text Field to <styled> Link to comment Share on other sites More sharing options...
rasinc Posted February 10, 2020 Author Share Posted February 10, 2020 Thanks bigalex. However, I am getting weird errors. When I have the report language set to Java as I understand I should when using Fishbowl Inventory, I am getting the error when running the report directly in iReport.The operator < is undefined for the arguement type(s) BigDecimal, double.I get other errors when it is set up as javascript.I can't believe how frustrated I am with this language but I expect that I am just missing some bit of logic. 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