Jump to content

Conditional Formatting - Multiple Fields, 1 Style


acacord

Recommended Posts

I'm writing some reports to highlight all fields with missing data in yellow. There can be 10-20 fields on any one of these reports. I have the condition expression figured out for a specific field ($F{fieldName} == null), but want to somehow wildcard the field's name so that I can simply apply the style to any field I want evaluated. Otherwise, I have to create a conditional style specifically for each field.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

You can create style in iReport and then create conditional style inside the style by specifing condition.

Then apply the style to each text box by its properties.

You have to create style and conditional style at report level through report properties and apply it to each field manually at field level through field properties.

Thanks,

Ajinkya

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