Hi,
I have a report where I need to display alternate rows as colored.
There is some data in detail section followed by a cross tab in the report header section.
While I am able to display alternate rows as colored in Detail secction for displaying alternate colored rows in Cross tab data I need some help.
Data in cross tab is like this
history geography
Tammy 90 60
Sid 80 50
Julia 70 40
In cross tab for displaying alternate colored rows ie for alternate student names I am using two formulas
- for displaying row values I am using this one
whileprintingrecords;
numbervar d;
d := iif(d=100,255,100);
color(255,255,d);
For displaying alternate colored inner cells ie marks I am using this formula
whileprintingrecords;
numbervar c;
c := iif(c =255,100,255);
color(255,255,c)
I got these formulas after doing Googling
My cross tab is present in report footer and in the generated report it comes separeated in two pages.
In the first page data for Tammy and Sid is displayed while Julia is displayed on next page.
Now the Tammy is coming as yellow colored and as expected Sid is coming as white colored. However Julia which is on next page is coming as white , but logically it should have come as yellow. On the other hand my column data ie marks column is coming fine. Data for tammy and sid is coming as alternately colored and data is Julia on the next page is coming as yellow(as data for Sid is in white)
I am not able to understand why this is happening and what is the correct way to do alternate row coloring in cross tabs