Cognos Analytics

Cognos Analytics

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

 View Only
  • 1.  home page customization using spec json in cognos analytics 11.0.8 (excluding some text and container.)

    Posted Mon August 06, 2018 08:53 AM
    ​Hello everyone,
    Does someone know the solution/the code how to exluding the text and the container in red box here below (part of our home page about cognos analytics)?

    I tried to use the funcion excludeitems in spec.json to get rid of those.
    I tried to find uit the specifieke id's which belong to those things according to the link below
    https://www.ibm.com/support/knowledgecenter/en/SSEP7J_11.0.0/com.ibm.swg.ba.cognos.ag_manage.doc/t_cust_ident.htmlhttps://www.ibm.com/support/knowledgecenter/en/SSEP7J_11.0.0/com.ibm.swg.ba.cognos.ag_manage.doc/t_cust_ident.html

    But i did not find the solution yet.
    Can someone help me?
    I don't know if it is possible.


    Thanks a lot!
    Best regards,
    Sisi



    ------------------------------
    Sisi Wu
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: home page customization using spec json in cognos analytics 11.0.8 (excluding some text and container.)

    Posted Mon August 06, 2018 01:10 PM
    You have to modify the following file, at your own risk:  

    \Cognos\webcontent\bi\js\cahome\lib\@waca\bahome\public\js\bahome\views\templates\HomeView.html

    There used to be a post at this link, but not sure why it was removed:

    https://community.watsonanalytics.com/discussions/questions/35228/hide-quick-reference-links-from-new-welcome-page-o.html



    ------------------------------
    blarson
    ------------------------------



  • 3.  RE: home page customization using spec json in cognos analytics 11.0.8 (excluding some text and container.)

    Posted Wed April 10, 2019 03:45 PM
      |   view attached
    I have to make the same customizations.

    I am using CA 11.1.1

    For the "Drag and Drop" section, I found out that removing the "Upload files" capability from the user role is sufficient.
    For the "Quick References" section, I tried to upload an extension like the one below, but Cognos does not fully respect the exclusion.
    The section is still there, with the 3 sub-sections, but the links inside the sub-sections are gone (see attachment)

    {
    "name":"Custom Extension",
    "schemaVersion": "1.0",
    "comment": "Removes the Quick References section.",
    "extensions": [
    {
    "perspective": "home",
    "comment": "Removes content that is not useful or usable for the role.",
    "features": [{
    "id": "sample.homePerspective.excludeItems",
    "excludeItems":["com.ibm.bi.bahome_common.quickReferences","com.ibm.bi.cahome_common.5"],
    "comment": "Consumers will not understand the references above, which primarily focused on content authors."
    }]
    }]
    }

    ------------------------------
    Denilson Nastacio
    ------------------------------



  • 4.  RE: home page customization using spec json in cognos analytics 11.0.8 (excluding some text and container.)

    This message was posted by a user wishing to remain anonymous
    Posted Thu April 11, 2019 10:36 AM
    This message was posted by a user wishing to remain anonymous

    Hi,
    The way I got rid of quick reference is ​by editing  the bundle.js which is located at
    (webcontent\bi\js\cahome ) and then find the code in that JS
     (<div class="homeReferenceContainer">\n\n   {{? it.wasmQuickRefContainerId }}\n    <div id="{{=it.wasmQuickRefContainerId}}"></div>\n   {{?}}\n   </div>)
    This DIV structure is used to generate the entire "Quick reference" menu structure at the right-side of the Welcome page. I deleted this code from the bundle.js and restarted the services. Hope this will help. Thanks
    Pradeep Sahay


  • 5.  RE: home page customization using spec json in cognos analytics 11.0.8 (excluding some text and container.)

    Posted Thu April 11, 2019 11:14 AM
    Edited by System Admin Fri January 20, 2023 04:26 PM

    This is pretty clever, and I am seriously considering your suggestion.

    That said, I think most people will be looking for ways to make it an automated and supported process. Note how the location (and probably the nature) of the edit changes considerably between your suggestion and the suggestion from the first reply.

    I opened a ticket with Cognos support and they confirmed that, at least as of version 11.1.1, excluding the "Quick References" section is not supported and referred me to (1) create a custom view instead and (2) go vote for the corresponding RFE:  https://ibmanalytics.ideas.aha.io/ideas/CAOP-I-469

    Here is what Cognos support offered about creating a custom view:

    "An alternative approach would be to use a custom view. Views are extensions that can be enabled as views through Manage > Customization > Views tab. There are a few sample views that you can use to test, like SampleWelcome.zip :
     
    Bear in mind that then your users won't be able to use the Recent tiles, as your view will be rendered instead of the Welcome page in Cognos as the home page. "

    ------------------------------
    Denilson Nastacio
    ------------------------------



  • 6.  RE: home page customization using spec json in cognos analytics 11.0.8 (excluding some text and container.)

    Posted Mon June 22, 2020 08:35 PM
      |   view attached
    This illustration outlines how to safely remove the Quick reference section from the Cognos home. The Quick reference section is rendered as a <div> with a named class of homeReferenceContainer. One solution is to simply hide it using javascript. It is helpful to locate the exact <div> by pressing F12 in the Chrome web browser and drilling down / selecting the homeReferenceContainer element within the body of the html:
    https://www.slideshare.net/ElihuEl/remove-quick-reference-section-from-cognos-236055406

    ------------------------------
    Elihu El
    ------------------------------

    Attachment(s)

    pdf
    Remove Quick Reference.pdf   26 KB 1 version