Cognos Analytics

Cognos Analytics

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

 View Only
  • 1.  Extensions: Adding Custom Folder to Navigation Bar

    Posted Tue July 14, 2020 03:15 PM
    Version: Cognos 11.1.6 

    I have three questions concerning customizing the code within the spec.json for the SampleExtensionsAll.zip file.
    To make heavily used folders from Team Content easily accessible, I have modified the code that adds a button to the navigation bar to easily access the folder. However, the issues that I have encountered are:

    1.)  There is no icon that shows to the left of the folder so when it (the Nav bar) is in collapsed mode, the area looks blank.
    2.)  When choosing the folder, the file listing of the folder is sorted in alphabetical order.  In Team Content, the file listing is sorted by Type with all "Folders" listed first.  I would like the list to behave by default the same as Team Content with Folders listed at the top and then Reports listed afterward.
    3.)  Some Reports in the listing have long names.  Is there a way to set the width of the flyoutPane to greater than 400px (which is the default)

    Is it possible to include these changes in the json file (or an extension)?

    The sample code provided by Cognos to add in the json file:

    {
    "comment": "This code adds a button to easily access an important folder.",
    "id": "sample.folder.opener",
    "containerId": "com.ibm.bi.glass.navbarLeadingGroup",
    "label": "2016 reports",
    "type": "Button",
    "icon": "ba_content_nav-folder_24",
    "weight": 700,
    "comment": "The higher the weight, the earlier it appears in the container.",
    "push": "true",
    "actionController": "bi/glass/api/FolderOpener",
    "options": {"path": ".public_folders/Samples/By feature/Extensions"}
    },

    #CognosAnalyticswithWatson


  • 2.  RE: Extensions: Adding Custom Folder to Navigation Bar

    Posted Wed July 15, 2020 05:41 AM
    To show an icon for the folder just add the icon file to the .zip file you upload and change "icon": "ba_content_nav-folder_24", to the file you upload. (ex: "icon": "iconfilename.png",)

    ------------------------------
    Jesper Bjerre
    ------------------------------



  • 3.  RE: Extensions: Adding Custom Folder to Navigation Bar

    Posted Tue July 21, 2020 01:53 PM
    Thank you Jesper.  The images are added and works fine.

    ------------------------------
    Towandra Grant
    ------------------------------