Jump to content

Change background color reportelement


davide83

Recommended Posts

hello,

how can i change the background color of a report element depending on the value of a parameter or a variable?

I try in this way.(See CODE)

It doesn't work.

answer pleaseeeeeeeeeeeeeeeeeeeeeee!!!!! /tools/fckeditor/editor/images/smiley/msn/cry_smile.gif

Code:
Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

I'll try to be more precise and simple:

I've got a database table with a  list of exadecimal colors and I want this colors to be tha backcolor of different reportelement.

 

I'd like to make something like:

                             backcolor=""+$F{color}+""

in the JRXML code in the list of report element property.

Help me please!



Post Edited by davide83 at 01/25/2010 11:12
Link to comment
Share on other sites

  • 7 months later...

 As it has been said here, the styled text background color applies only to the text and not the texfield

Is there way of coloring the whole textfield without the need of creating a conditional style for each one of the possible colors?

like the styled text does but for the whole textfield

Link to comment
Share on other sites

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