Lines with alternating colors

1

I'm putting together a report using Jaspersoft Studio to display a list of calls from a system. This list has 3 columns, with the number of the call, the title and its creation date.

What I need is that this listing has alternating background color between its lines, ie, first line white background, second gray light, third white, and so on.

But I do not know which resource to use or which rule to create.

    
asked by anonymous 15.12.2016 / 16:38

1 answer

1

Place a rectangle with the transparent color you want to fill the entire line and add the following rule in the PrintWhenExpression event:

$V{report_COUNT}%2 == 1 ou $V{report_COUNT}%2 == 0

That is, now prints the rectangle, not now.

    
15.12.2016 / 16:53