COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Active Reports => Topic started by: bladeless on 08 Jun 2015 04:15:56 PM

Title: Change color(background, foreground) of selected button(cell in the list)
Post by: bladeless on 08 Jun 2015 04:15:56 PM
Hi,

Could someone help me with this question: how to change color(background, foreground) of selected button(cell in the list) = i.e. change highlight color of buttons(cells in the list)?

Thanks,
Title: Re: Change color(background, foreground) of selected button(cell in the list)
Post by: MFGF on 09 Jun 2015 04:35:07 AM
Quote from: bladeless on 08 Jun 2015 04:15:56 PM
Hi,

Could someone help me with this question: how to change color(background, foreground) of selected button(cell in the list) = i.e. change highlight color of buttons(cells in the list)?

Thanks,

Hi,

If I'm understanding correctly, you are using a list as a control (setting an active report variable) and when you click on a value in the list you want it to appear differently? Is that the case?

If so, one option is to make the variable select the List as well as selecting or filtering the container it currently operates on. This should give the selected list item a faint orange hue.

Cheers!

MF.
Title: Re: Change color(background, foreground) of selected button(cell in the list)
Post by: bladeless on 09 Jun 2015 08:45:55 AM
Yes, you are right.

But I want give the selected list item ANOTHER color than orange hue.
Is it possible?
Title: Re: Change color(background, foreground) of selected button(cell in the list)
Post by: MFGF on 09 Jun 2015 09:17:23 AM
Quote from: bladeless on 09 Jun 2015 08:45:55 AM
Yes, you are right.

But I want give the selected list item ANOTHER color than orange hue.
Is it possible?

The only other way I can think of doing this is to have a deck with different cards for each list value. You'd have a different version of the list on each card, with the relevant list cell having your desired foreground/background colour on each card. Your variable would select the deck as well as your target object, and display the card for the selected value. You need to line up and size the lists accurately so that it looks like a single list with the highlight moving from one cell to another.

Cheers!

MF.
Title: Re: Change color(background, foreground) of selected button(cell in the list)
Post by: bladeless on 09 Jun 2015 10:06:55 AM
Good idea!

Thank you!