COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: tamirv on 06 Jun 2013 05:20:07 AM

Title: changing display in crosstab/list when clicking on the mouse
Post by: tamirv on 06 Jun 2013 05:20:07 AM
when i click on a cell on the list or in a crosstab the whole column background is changing an the selected cell background is chaged too.
can i disable it so when i click the cell nothing will happen, nothing will change in the display?

thanks,
tamir
Title: Re: changing display in crosstab/list when clicking on the mouse
Post by: CognosPaul on 06 Jun 2013 07:51:43 AM
You should know that if you disable this, then you also lose the right-click context menu.

There are two ways of doing this.

1. Go to the properties of the report. Click on Report, Advanced options. Uncheck "Enable selection-based interactivity in HTML reports"
2. You can disable interactive selections for groups of users through the capabilities screen. Administration -> Security ->  Capabilities -> Cognos viewer -> Selection. Remove everyone, or set specific groups to deny.
Title: Re: changing display in crosstab/list when clicking on the mouse
Post by: tamirv on 06 Jun 2013 09:18:18 AM
hi paul,
the issue is that i want to change the background color of the row of the cell i am clicking.
i am using CSS
do you have a solution for this?
i succeded to change the background-color while i hover with the mouse:
tr:hover{
background-color:#D9E9F0;
}
Title: Re: changing display in crosstab/list when clicking on the mouse
Post by: CognosPaul on 06 Jun 2013 09:47:50 AM
Difficult. When you click on a cell, the physical change to the table is that the cells in question gain either
background-image: url(../common/images/selection_primary.png); BACKGROUND-REPEAT: repeat;
or
background-image: url(../common/images/selection_secondary.png); BACKGROUND-REPEAT: repeat;

It would have been easier if clicking on the cell simply changed the style.

You may be able to pickyback on the click functionality that selects the node. But that would be diving deep into the internal JS API, and I don't recommend doing that.