hanzz Posted May 22, 2009 Share Posted May 22, 2009 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 More sharing options...
C-Box Posted May 22, 2009 Share Posted May 22, 2009 Just take a look at the "ConditionalStyles" that you can define with several expression and different style options ... I think it will do the formatting you want! hthC-Box 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