Cognos Analytics

 View Only
  • 1.  Cognos Analytics 12.x: Adding My Content and Favorites to the Home bar

    Posted Mon February 26, 2024 12:19 PM

    Hi,

    Does anyone know how, via an Extension, one can add My Contents and Favorites as tabs to the Home bar?

    I am aware that Favorites can be turned on/off via Account->Customization->Features; however, I would like to control the order in which the tabs are displayed, as well as the toolbar options (i.e. filter, sort, etc.) that are shown for each tab.  My Contents, as far as I can tell, are not selectable on the Home tab.

    I located a reference for including Recent tab, which made all the difference.  Hopefully, the parts in bold help explain what I am trying to locate:

    "collectionItems":
    [{
             "containerId": "com.ibm.bi.caHome.navigator",
             "id": "com.ibm.bi.caHome.navigator.MostRecent",
             "legacyId": "com.ibm.bi.contentApps.MostRecent",
             "name": "Recent",
             "label": "Recent",
             "stateId": "RecentView",
             "weight": 400,
             "properties": {
                 "url": "v1/users/~/mrus",
               "toolbar": [
                            "filter",
                            "sort",
                            "refresh",
                            "settings"
                        ],
                  "listOptions": true
               }
    ....

    Thank you in advance.

    PS.  If a central repository of all such object information exists, please simply point me that way.

    KS



  • 2.  RE: Cognos Analytics 12.x: Adding My Content and Favorites to the Home bar
    Best Answer

    IBM Champion
    Posted Mon February 26, 2024 05:41 PM
      |   view attached

    For favorites you'll want to use "url":"v1/users/~/favorites". The My Contents folder can be accessed with "path":".my_folders". 

    Take a look at the attached spec.json.



    ------------------------------
    Paul Mendelson
    ------------------------------

    Attachment(s)

    json
    spec.json   2 KB 1 version


  • 3.  RE: Cognos Analytics 12.x: Adding My Content and Favorites to the Home bar

    Posted Tue February 27, 2024 05:31 AM

    Paul, this was exactly what I was looking for.  Thank you so much!

    I can confirm that I was able to redesign both the content and Home bars, using this information.

    I am just not clear what the relevance of the "legacyid" is and when does it take effect?
    "legacyId": "com.ibm.bi.ContentApps...."

    Would it, for home bar, need to be changed as indicated below?

    "legacyId": "com.ibm.bi.caHomeApps...."




  • 4.  RE: Cognos Analytics 12.x: Adding My Content and Favorites to the Home bar

    IBM Champion
    Posted Tue February 27, 2024 08:40 AM

    I believe the legacyId was used up to 12.0.1 as the identifier for the slideout C11 style folders. I don't think it's used in 12.0.2 as they removed the code to handle slideout folders. I tested using the extension without legacyId and it works great.



    ------------------------------
    Paul Mendelson
    ------------------------------