COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Nicholas on 11 Jun 2015 03:38:02 PM

Title: Alternating Column Colors (List Report)
Post by: Nicholas on 11 Jun 2015 03:38:02 PM
Hello,

So in a report I'm making I have similar values next to each other, such as "Address Line 1" and "Alt Address Line 1," "City," "Alt City," etc etc, and I would the columns to be a little more clear. Coloring every other column would accomplish this I think.

I know how to have alternating colors regarding rows, using conditional styles and a Mod(running-count()) calculation, but I can't find how to do this regarding columns.

If it's not possible in the normal sense, does anyone with experience incorporating javascript and CSS think it may be possible that way?

Thanks!

-Nicholas



EDIT:

Well, that's a little embarrassing.  I just figured applying a Table Style does what I need.   :-[   Never used those before. 

For those that don't know, just right click your table, go to Styles then Apply Table Style.

Thanks for coming to check out my post though! 
Title: Re: Alternating Column Colors (List Report)
Post by: Robl on 12 Jun 2015 03:37:55 AM
Being a list it would have fixed columns.
So you could have just manually selected every other column and then changed the background colour.
Title: Re: Alternating Column Colors (List Report)
Post by: Nicholas on 12 Jun 2015 12:27:57 PM
Oh, that's really handy, thanks.