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

assign style dynamically depending on field data


hanzz

Recommended Posts

there is very often the requirement to dynamically style report elements depending on specific data. change the font color of data fields to "red" if some condition is true (e.g. if it is a saturday or sunday, change font to red; if it is wednesday after 1pm, change font color to green; otherwise font color should be black).

I found the rather new report styles to be a good choice for defining central styles for report elements.

But is there a way to dynamically assign style classes to report elements depending on the data?

I guessed I could do it with a scriptlet but it seems that I to not have access to report elements but only variables and fields in scriptlets.

I guess this is a common requirement, but is there a proposed solution for that?

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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