If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Alternate row colors in a report

Started by naveen10046, 09 Mar 2010 08:36:08 PM

Previous topic - Next topic

naveen10046

Hello All,
I want to display my list report in alternate colours for each row as shown  below. Can anyone explain me how to do this.




With Regards
Naveen :)


MFGF

Good old Blom saves the day again! Thanks for the link Angela.  :)
Meep!

naveen10046

#3
Thanks ;D Angela

There is another way as well.
1)create a Boolean variable with expression " mod(RowNumber(),2)=1 "
2)Go to conditional explorer and select ' yes ' under the boolean variable.
3)Then select the entire report and set the backgroung color as "blue".
This one is simple and works fine...

dhanu

Suppose you are creating a report with two data items
Customer_Name and Total-sales respectively.

Create two new data items.
1.Dataitem1: Running-count([CUSTOMER_NAME])
2.Dataitem2: Mod([Data Item1],2)

Create a variable :
Boolean [Query1].[Data Item2]=1 or 0

Come to conditional explorer bar, select YES, under
properties select the background color.

Come to conditional explorer bar, select NO, under
properties select the background color.

Save report and run.

mbirrell

Put this in a conditional style:

case
when (RowNumber ()/ 2) = round((RowNumber ()/ 2),0) THEN
1
ELSE 0
end