Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only
  • 1.  Mouse-Over Functionality in Dashboards

    Posted Wed February 25, 2026 09:27 AM

    Hello everyone, 


    We currently use mouse-over functions in our Cognos reports by nesting two blocks and using the following HTML as an example (see below).

    Question:
    You can't use blocks in dashboards. How can I create similar mouse-over functions there? Or is that not possible in the dashboard?

    HTML code that we use in the reports:

    <style>

    div[lid*=wrapper_Hinweis] {
      position: relative;
      display: inline-block;
    }

    div[lid*=content_Hinweis]{
      opacity: 0;
      visibility: hidden;
      position: absolute;

      /* Tooltip bottom right */ 
      top: 100%;                                        
      left: 100%;                                       
      transform: translate(5px, 5px);                 

      background-color: #bfbfbf;
      padding: 0.4rem;
      box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
      width: auto;
    }

    div[lid*=wrapper]:hover div[lid*=content] {
      z-index: 10;
      opacity: 1;
      visibility: visible;

      /* Animation to final point */
      transform: translate(0, 0);

      transition: all 0.5s cubic-bezier(0.75, -0.02, 0.2, 0.97);
    }

    div[lid*=wrapper]:hover div[lid*=content] * {
      user-select: text !important; 
      -moz-user-select: text !important;    
      -webkit-user-select: text !important;
      -ms-user-select: text !important;
    }

    </style>



    ------------------------------
    Rene Wynands
    Business Analyst
    AOK Niedersachsen
    ------------------------------


  • 2.  RE: Mouse-Over Functionality in Dashboards

    Posted Wed February 25, 2026 11:54 AM

    Hi Rene,

    you will need a widget that allows for inserting HTML to the dashboard. I am pretty sure that I saw @Paul Mendelson doing something of that kind.



    ------------------------------
    Thomas Wolf
    BI Professional
    Techniker Krankenkasse
    Hamburg
    ------------------------------



  • 3.  RE: Mouse-Over Functionality in Dashboards

    Posted Sun March 01, 2026 11:41 AM

    Hi Rene,

    In IBM Cognos Dashboards, we cannot recreate that report technique (two nested blocks + injected HTML/CSS hover). Dashboards don't support report-style blocks or custom HTML/CSS injection into dashboard objects, so that exact mouse-over approach is not possible in a standard dashboard.

    What we can do instead:

    • If the mouse-over is on a visualization (chart, map or etc.), use the built-in Tooltip slot and add the extra fields you want shown on hover.

    • If you need a hover tooltip for text, KPIs, labels or layout elements, the only way to get the same kind of custom hover behavior is to build/deploy a dashboard extension.

    hope this helps!!



    ------------------------------
    Anand Kushwaha
    AMVARA CONSULTING S.L.
    Senior Software Engineer
    Barcelona, Spain
    ------------------------------



  • 4.  RE: Mouse-Over Functionality in Dashboards

    Posted Mon March 02, 2026 06:37 AM


    >> If you need a hover tooltip for text, KPIs, labels or layout elements, the only way to get the same kind of custom hover behavior is to build/deploy a dashboard extension.

    Hi Anand,

    Thank you for your reply-that sounds great!
    Can you tell me which specific IBM Extension (UI extensions) we need for this? There are so many of them.

    And do we have to book them? So are there additional costs involved?
    Otherwise, it sounds very good and promising.

    Best regards,

    René



    ------------------------------
    Rene Wynands
    Business Analyst
    AOK Niedersachsen
    ------------------------------



  • 5.  RE: Mouse-Over Functionality in Dashboards

    Posted Thu March 05, 2026 12:15 PM

    The only thing that came to my mind when reading this was that @Paul Mendelson has a viz as tooltip widget built into CogBox Premium version.

    https://cogboxwiki.pmsquare.com/Visualization-as-Tooltip.html



    ------------------------------
    Zach
    ------------------------------



  • 6.  RE: Mouse-Over Functionality in Dashboards

    Posted 2 days ago

    A callout! Sweet!

    Here's a quick demo.

    In the background what's happening the tooltip is actually a regular Cognos visualization. The author defines which vis is the tooltip. When the report loads, the widget automatically hides the tooltip. It then stores any author defined filters on the vis as a variable. When the user hovers over any widget data point, the widget unhides and repositions the tooltip vis. It then copies any filters on the hovered vis, merges that into the authored filters, and applies those to the tooltip vis. 

    It should also work with any schematics and custom visualizations too.



    ------------------------------
    Paul Mendelson Product Manager
    Product Manager
    PMsquare
    ------------------------------