Cognos Analytics

Cognos Analytics

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

 View Only
Expand all | Collapse all

Trigger onclick event on Cognos tabs

  • 1.  Trigger onclick event on Cognos tabs

    Posted Wed February 12, 2020 11:14 AM
    Dear all,

    - Cognos 11.1.3 -
    In a Cognos HTML tabbed report (via the property "View pages as tabs"), let's say I have 3 tabs.
    Taking into account that I can embed javascript libraries / javascript code, I would like to be able to trigger a click event on this tabs.
    I've been checking which DOM element (created by Cognos) I should target in order to trigger this "onclick" event, but "of course", it is not so simple as it could be. 
    Exploring event handlers (via the Chrome developper tool) on items composing this tabs, I don't find directly a "onclick" event attached somewhere. Only "onmousemove", "onmousedown" or equivalent.
    Does anybody know how to do this?
    Or, is there a way to tell to Cognos to set dynamically the first tab, or the second tab, or the third tab, etc.. as the active tab?

    Note: I know that I can very well "mimic"  the Cognos tabs with pure HTML + JS things (I did it in the past), but this is not what I want here.

    Thanks!
    KR

    ------------------------------
    Cosme POUSSET
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Trigger onclick event on Cognos tabs

    Posted Mon November 13, 2023 10:05 AM

    Did you get any solution to this? Looking exactly for same problem.



    ------------------------------
    Sowbhagya Baleapalli
    ------------------------------