Tuesday 10 June 2014

COGNOS: ALTERNATE ROW COLOR IN A LIST REPORT

Sometime we may like to display alternate color for each row in a list report. This will make our report more redable. I have shared the steps to achieve this in my previos blog. Here is another simple step to achieve the same result.


- Create a Boolean Variable with followin expression
    mod(RowNumber(),2) = 0
- Click on the list for which you want to apply alternate row color.

- Select 'List Columns Body Style' by clicking on Properties Ancentor window.

- Select the newly created boolean variable in Style variable property.

- In Conditional Explorer pane and click on Yes value for the boolean variable. Select the Background color.
- Again click on 'No' value for the boolean variable and select the desired Background color.






2 comments: