Thank you Michael, you made my day! It is working fine.
Original Message:
Sent: Wed September 03, 2025 10:38 AM
From: Michael Webb
Subject: Rounded corners in prompts
@Patrick Neveu,
As you mentioned, I think the issue is that you are importing the css as an extension outside the report scope. To make an extension that imports the css into the report you could do it a couple different ways.
The simplest, and easiest way to import your css into a report would be keep your extension with your custom CSS file and use an HTML Item as the first object at the top of the report and add the html code below (I am using the path from the style extension for tile sizing you referenced):
<link rel="stylesheet" href="./../v1/ext/myStyles/styles.css"/>
No matter the scope where your CSS is loaded, the report page will pull the css automatically into the report document scope and load it correctly.
Another way to do it would be a custom control that uses JavaScript to inject the CSS into the document head during initialization. This method has some problems like a little bit of pop in of styles because it is added after page load. I made a simple custom control for you that will do this and I only targeted a value prompt list box to give it rounded corners and a border color.
You can add or remove any css style you want in the "CSSImport/styles/styles.css" file and it should populate for you.
I tested it with a sample report on a 12.1 and 12.0.4 but I think it should work on 11.2.4 or prior instances. Let me know if this works for you.
Steps:
- Upload the extension to Cognos
- Go to report and add a custom control at the top of the report page.
- Module path:"../v1/ext/CSSImport/js/control.js"
- Run report
------------------------------
Michael Webb
Original Message:
Sent: Wed August 27, 2025 04:10 AM
From: Patrick Neveu
Subject: Rounded corners in prompts
Hi Thomas,
A friend gave me the following explanation: "The style sheet is imported into the header of the HTML document, which means the imported styles will apply to all matching elements within that HTML document.
The issue is that the report itself is not loaded directly into the document, but rather through an iframe, which constitutes a complete HTML document independent from the parent HTML document. As a result, the style sheets of the parent document (where the CSS from our extension is imported) do not apply to the report, which is inside the iframe and therefore in another document with its own style sheets."
I assume the extension will not work as expected. I'm still trying to find out a working solution/workaround.
Best regards,
------------------------------
Patrick Neveu
BSL Consulting
IBM Champion
Original Message:
Sent: Mon August 04, 2025 07:42 AM
From: Thomas Wolf
Subject: Rounded corners in prompts
For me (CA 12.0.4) it's clsListView and clsListViewReportView alright.
For reasons of simplicity, I just added a html element to the report. It should work in an extension as well.
------------------------------
Thomas Wolf
BI Professional
Techniker Krankenkasse
Hamburg
Original Message:
Sent: Mon August 04, 2025 06:55 AM
From: Patrick Neveu
Subject: Rounded corners in prompts
Hi,
I'm trying to implement rounded corners in prompts.

I've read the excellent discussion called Changing the size of the tiles in 11.2 | Cognos Analytics.
So I've created an extension. I know this extension is partially working because I have the tiled with rounded corners:

I did try to use:
.clsListView .clsListViewReportView .clsPromptSelectWithSearch .clsPromptSelectValue .clsPromptComponent .fs
in my css file. Unfortunately, this is not working with prompts:

Any idea would be appreciated!
------------------------------
Patrick Neveu
BSL Consulting
IBM Champion
------------------------------