Cognos Analytics

 View Only
  • 1.  Disable interactivity fuctionalties but enable CustomControl

    Posted Wed February 20, 2019 07:45 AM
    We need to have only Custom control functionality enabled, but we would like to disable all others. 

    We are building report (in report studio as report). We included custom D3 visualizations and interactivity. For fast report loading and response times. But we do not build in interactive behavior on this dashboard, as this  are great for standard reports but not  to have them on  dashboard.

    ------------------------------
    Žane Logar
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Disable interactivity fuctionalties but enable CustomControl

    Posted Wed February 20, 2019 01:50 PM

    Hi Zane,

    Thanks for posting to the community!

    In Cognos Analytics, JavaScript in HTML items is executed only when the report is run with limited interactivity (the report property Run with full interactivity is set to No).

    Here is the supported documentation:
    https://www.ibm.com/support/knowledgecenter/en/SSEP7J_11.0.0/com.ibm.swg.ba.cognos.ug_cr_rptstd.doc/t_rpting_add_javascrpt.html

    ​If you would like to see this feature added, please log a Request for Enhancement at the site below so we can investigate the need for this further:

    https://ibmanalytics.ideas.aha.io/

    Thank you,



    ------------------------------
    Sami El Cheikh
    Offering Manager
    IBM Cognos Analytics
    ------------------------------



  • 3.  RE: Disable interactivity fuctionalties but enable CustomControl

    Posted Wed February 20, 2019 02:52 PM
    I am aware of that. 
    But I would like to use Custom control, because of require.js and mainly because of datasets within CS.

    So to use CS, but also disable actions got with full interactivity ON.

    ------------------------------
    Žane Logar
    ------------------------------



  • 4.  RE: Disable interactivity fuctionalties but enable CustomControl

    Posted Fri April 12, 2019 03:25 AM
    I forgot to respond, that it is simple. It's not "official" way, but I saw that when in interactive mode, all data objects get an extra attribute in html output. If you remove it, the object is not interactive anymore.

    So to remove interactivity on all objects, then we just add one code line

    // remove interactivity
    $('[roid]').removeAttr('roid');


    ------------------------------
    Žane Logar
    ------------------------------