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.
Original Message:
Sent: Tue February 27, 2024 05:31 AM
From: K S
Subject: Cognos Analytics 12.x: Adding My Content and Favorites to the Home bar
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...."
Original Message:
Sent: Mon February 26, 2024 05:40 PM
From: Paul Mendelson
Subject: Cognos Analytics 12.x: Adding My Content and Favorites to the Home bar
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
Original Message:
Sent: Mon February 26, 2024 12:01 PM
From: K S
Subject: Cognos Analytics 12.x: Adding My Content and Favorites to the Home bar
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