Skip to content Skip to sidebar Skip to footer

Cognos Popout Label For Selected Item

I have two similar javascripting challenges I am looking to solve in Cognos with the help of conditional formatting. I would like to be able to show a data item, for only the item

Solution 1:

Yeah conditional rendering unfortunately is not available everywhere, so it's not a viable solution.

Writing JS against a chart is tough, but I suppose not impossible. First, I'd highly recommend the FireBug plugin for Firefox. It will allow you to more easily see the generated HTML for a graph in Cognos. I just looked at a sample bar chart. Unfortunately, none of the elements have individual IDs. You will have to pull the "area" elements by attribute. The hover text for the bars and the label text are both in the TITLE attribute.

I have to put the obligatory "no JS" statement in here as I guarantee such a solution will break between versions of Cognos and potentially browsers.

An alternative may be to hide the standard chart labels and put Singletons below the chart to control the shown information.

If you still need help - can you take a screenshot of this chart? If not - can you elaborate on what type of chart it is and what other data values exist (other than FL, US, World). I think I may not be visualizing this properly.

Post a Comment for "Cognos Popout Label For Selected Item"