Jump to content
We've recently updated our Privacy Statement, available here ×

Using a color value returned from data source to color report elements


barneskd

Recommended Posts

I have a requirement to color certain report elements (text, text field backgrounds, crosstab backgrounds, etc.) according to a color value returned by my data source.  I'm trying not to use conditional formatting because that would require updating the report to create a new conditional style every time a new color is added.  Ideally, my data source would return a color value as a field, say $F{color1}, and then I could use $F{color1} as an element's foreground/background color.  This way the onus is on my data source and stored procedures to control the color rather than Jasper.

Is this feasible?

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