marlin_snyder Posted February 22, 2013 Share Posted February 22, 2013 I see that this question has been asked several times, and I also see that it has been answered, but usually not with much detail, and I apologize if I have just missed it somewhere.I have a report with about 50 variable fields on it. In each of those fields, I want to show the currency formatted number in black, bold if it is 0 or greater than 0, and change only the color to red if it is less than 0.I am testing this on one field only right now, I will also attach the full xml file as well.I'm certain that there is something I am missing relatively simple here. I also have a couple of questions related to this. Is there no way to apply a generic 'conditional format' to all fields on the report? Am I reading correctly that I will need to create a set of conditional styles for each field, and then apply the style (what I'm calling 'Normal') to each field?I also downloaded and read the Ultimate User Guide, which only has a few bits of information on how this feature works. Perhaps there is an online tutorial for this somewhere? I'm happy to research it if pointed in the right direction. Sincerely, M. Snyder Link to comment Share on other sites More sharing options...
ajinkya_c Posted February 25, 2013 Share Posted February 25, 2013 Create conditional style:1. Right click on style and create a new style 2. Add a conditiinal style into that style with your condition.3. Apply the style to your field.Let me know if you have any problem. Link to comment Share on other sites More sharing options...
sanbez Posted February 25, 2013 Share Posted February 25, 2013 @marlin_snyderFrom ireport-ultimate-guide.pdf : In the condition expression you can use all the properties of the report object. Please note that the conditions cannot be generic, for instance, you cannot set a condition like “if the number is positive” or “if the string is null.” You must be very specific, specifying, for example, that a particular value (field, parameter, variable or any expression involving them) must be positive or null, and so on. I have similar problems :( 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