Jump to content

Fields option


abdul_b

Recommended Posts

Hi,

     I dragged the following fields to detailed view band, which will show multiple records while executing the report.

Example :

        Employee Number, Employee Name, DOB, Salary and so on...

        I like to display the odd rows in one color and even rows in another color in detailed view band..

 

Is there any procedure to set the even and odd row colors  differently using ireport.

Kindly consider this and help me asap.......

Thanks in advance.............

 

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

You need to define a style and add a conditional style.. something like:

new Boolean($V{REPORT_COUNT}.intValue() % 2 == 0) (make the color light blue for example)

 

Then you need to apply the style to the field(s) you need to alternate the color for.

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