Jump to content
JasperReports Library 7.0 is now available ×

Change color of a row


2006 IR Open Dicussion

Recommended Posts

By: feryshirano - feryshirano

Change color of a row

2006-01-03 10:29

Hello to everybody!!!I have no idea if I can do a condition like this -> if var > 5000, setbackgroundcolor(Color.red). How can I change de color of the row, in this codition?

 

 

 

 

By: Oliver Heilmann - devolution32

RE: Change color of a row

2006-01-17 10:09

Hallo,

 

I did a simple trick to achive this. Just double all your fields in the row and move the copies at the exact same coordinates as the original ones. Change to the parameters of the copies (the element browser can help to identify the fields), set the background color you like and add a 'Print when expression' like the following one:

 

new Boolean($V{NewDepartment_COUNT}.intValue() % 2 == 0)

 

I hope this will help you!

 

 

 

 

By: feryshirano - feryshirano

RE: Change color of a row

2006-01-17 16:34

Thanks!!

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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