ajorgensen Posted August 10, 2006 Share Posted August 10, 2006 Hello- I have been unable to find an example of how to make every other line of the detail band a different color. Is there an example somewhere or can someone provide details? Thanks... Link to comment Share on other sites More sharing options...
lucianc Posted August 10, 2006 Share Posted August 10, 2006 See the scriptlet sample from JasperReports (under demo/samples in the distribution or at http://www.jasperforge.org/images/documentation/jasperreports/samples/ScriptletReport.jrxml). HTH,Lucian Link to comment Share on other sites More sharing options...
ajorgensen Posted August 10, 2006 Author Share Posted August 10, 2006 Got it, thanks!! Link to comment Share on other sites More sharing options...
nnvc Posted July 31, 2009 Share Posted July 31, 2009 Hi!I have to alternate the row color, but depending on a value.For example if the value is ´A´ it should be red. if the value is 'N' it´s green. Thanks in advance. Natacha. Link to comment Share on other sites More sharing options...
harinderrakkar Posted August 1, 2009 Share Posted August 1, 2009 HI Natacha. for this you can create a new style and in that style condition you can mention your condition and respective colors...this will solve your your problem. Link to comment Share on other sites More sharing options...
nnvc Posted August 3, 2009 Share Posted August 3, 2009 Hi!!Thank you for the reply.I have created 2 conditional styles, but it does not work.I think i am doing something wrong.the conditional style expression´s are:new java.lang.Boolean($V{genderV}=="F")and new java.lang.Boolean($V{genderV}=="M")genderV is a variable with this expression $F{gender}.All the data comes from a xml Data source like this<Persons> <Person> <name></name> <surname></surname> <gender>F</gender> </Person><Person> <name></name> <surname></surname> <gender>M</gender> </Person></Persons>I just want to show the name and the surname, but the line must have the color according to the values of gender.I would appreciate if anyone could help me.Thank you. Post Edited by nnvc at 08/03/2009 12:26 Link to comment Share on other sites More sharing options...
nnvc Posted August 3, 2009 Share Posted August 3, 2009 Hi again!I could make it, but the problem is that now only shows the line color, and the values are behind the color!!!! Link to comment Share on other sites More sharing options...
nnvc Posted September 17, 2009 Share Posted September 17, 2009 Hi to all!!!I want to know if it is possible to have only columns with color.Thanks in advance. :) 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