cancel
Showing results for 
Search instead for 
Did you mean: 

Group Footer Alternating Background Color

scott_selph
Participant
0 Kudos

I have an alternating background color on my GF2, which works correctly using the code below in the section expert.  However when I add a new suppressed group (GH3/GF3) to the report, the alternating is not correct as it may skip a few instances of GF2, and then color 5 instances of GF2 in a row, etc.  GF2 is the only section that is not suppressed in the report.

How do I correct this?

if groupNumber mod 2 = 0 then color(235,235,235) else crNoColor

Accepted Solutions (1)

Accepted Solutions (1)

vitaly_izmaylov
Employee
Employee
0 Kudos

This is expected behavior.

Suppressed group does not mean it is not counted for GroupNumber function.

I would suggest to modify your formula as following:

numbervar a:=a+1;

if a mod 2 = 0 then color(235,235,235) else crNoColor


scott_selph
Participant
0 Kudos

Worked like a charm...thanks!

Answers (0)