Hi, you're spec.json does not meet the CA Extension schema requirements. See: https://www.ibm.com/docs/en/cognos-analytics/11.2.0?topic=views-specjson-description
I believe what you are trying to add is a "collectionItem" to an existing "collection" but I'm not sure.
Your "collectionItem" plugin needs to be part of a feature and then added to the applicable "existing" widget collection via the collectionId key (:
eg:
...
"features": [{
"id": "com.ibm.bi.notebook.widgets",
"collectionItems": [
{
"containerId": "com.ibm.bi.dashboard.widgets",
"id": "notebook",
"label": "notebook",
"builtin": true,
"ownTitle": false,
"createContentNode": false,i
"widget": "notebook/DashboardWidget",
"layoutConsumeView": "dashboard/layout/views/Widget"
}
]
}
...
If you have access to the CA install, please see the extension samples provided under <CAInstall>/samples/extensions
Good luck!
------------------------------
Shawn Crook
------------------------------
Original Message:
Sent: Mon July 15, 2024 11:14 AM
From: Priya Sengar
Subject: Error in making a custom widget for reset filter to be applied in the dashboard
Hello All, I am currently working on a requirement to make a reset filter button using custom widget to be applied on a dashboard in the Cognos Version 11.2.4 by packaging custom HTML/JavaScript file and spec.json in a zip file. However when I upload the zip file under Manage-> Customization->Extensions I receive the error as given in the screenshot .
Please find the code of the custom HTML/JavaScript file and spec.json file . Also find the screenshot of the information obtained on using browser developer tools (right-click on the filter and select "Inspect" or press F12) to examine the HTML structure and identify the classes or IDs used for the filter applied on the dashboard
------------------------------
Priya Sengar
------------------------------