Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Alternate coloring for group header
arjunmanju
Hi all,<br />
<br />
<br />
I have generated some reports where i have used <strong class='bbc'><span style='color: #00BFFF'>group header</span></strong> to display the data as it needs a count and there is no detail row....In case of other reports where detail row is there....am getting alternate colors by using the script <del class='bbc'>[b<span style='color: #FF0000'>]row.__rownum %2 Equal to 0</span>[/b]</del> in Highlight section of detail row....<br />
<br />
But am using the same script in the <strong class='bbc'>group header</strong> but am not able to achieve the alternate coloring<br />
<br />
I have used the same script in Highlight section of group header.... but its not fine.... <br />
<br />
Please Someone suggest me how to achieve this task...this is my exact requirement..<br />
<br />
<br />
Thanks in advance,<br />
<br />
Arjun Manju
Find more posts tagged with
Comments
Hans_vd
The grouping rows have no rownum of course; you can't use rownum in a group expression.
Are you using the dataset in other tables too?
If not, you could do the grouping in the SQL and show the data in the detail section.
Regards
Hans
mwilliams
If you set a variable in your report's initialize method, i.e. groupHighlight=0;, then increment this value in your group header's onCreate, i.e. groupHighlight++;, you can use the following highlight rule:
groupHighlight%2 equal to 0 and choose your highlight color. This should cause every other group header to be highlighted.