colombianboss561 Posted May 22, 2017 Share Posted May 22, 2017 Hello, I'm running into a situation where I need to disallow values to repeat, BUT I also need to apply style to the TextField that gets ommited. I've attached an image to explain the situation. As you can see, there is one TextField that does not have the red backcolor as the rest, and it's because I have set the "Print Repeated Values" attribute to false for that TextField.My questions is how can I apply style to the TextFields that are not being repeated? For example, in my case, how would I make the backcolor of that TextField blue?Thanks! Link to comment Share on other sites More sharing options...
Solution szaharia Posted May 23, 2017 Solution Share Posted May 23, 2017 You could place an empty frame in the report that:has the same x, y, width and height as the textfield.is 'Opaque' and has a blue backcolorhas 'Print repeated values' set to trueis placed under the textfield (in the JRXML file the frame is defined before the textfield):<frame> ...</frame><textField> ...</textField>[/code] Link to comment Share on other sites More sharing options...
colombianboss561 Posted May 23, 2017 Author Share Posted May 23, 2017 Thank you shertage, your suggestion worked perfectly. 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