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

Applying style to non-repeated values (TextFields)


colombianboss561
Go to solution Solved by szaharia,

Recommended Posts

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! 

repeated_values_problem.jpg.7196c27b6a07d1bac3a08ba174fdf9c7.jpg

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

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 backcolor
  • has 'Print repeated values' set to true
  • is 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

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