If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Remove border from a value prompt

Started by hansimilnix, 04 Apr 2019 05:51:20 AM

Previous topic - Next topic

hansimilnix

I've created value prompt in a Cognos Analytics report which by default has a border around it ... How do I remove the border?
There doesn't seem to be any option in the value prompt properties which I can amend, so I thought using html?

Can someone advise how best to achieve it?

oscarca

#1
locate this file:
installpath\cognos\webcontent\prompting\reportskin\prompting\promptCommon.css

Open the promptCommon.css file and locate the prompt you want you edit and change the border settings to none.

/* selectValue control: Radio Button, Check Box Styles */
.clsCheckBoxList, .clsRadioGroupList
{
   overflow: auto;
   border: 2px inset ThreeDHighlight;
   -moz-border-right-colors: ThreeDLightShadow ThreeDHighlight;
   -moz-border-bottom-colors: ThreeDLightShadow ThreeDHighlight;
   border-right-color: ThreeDLightShadow;
   border-bottom-color: ThreeDLightShadow;
   padding-left:5px;
   padding-right:10px;
   padding-bottom:2px;

best regards,
Oscar

oscarca

Or you can Place an HTML item next to the prompt with following code:

<style>
.clsCheckBoxList {
    border: none;
}
</style>

***Make sure that you have set "Run with full interactivity" to No.***

hansimilnix

I don't have access to the installpath\cognos\webcontent\prompting\reportskin\prompting\promptCommon.css file, so html is my preferred option, however,

<style>
.clsCheckBoxList {
    border: none;
}
</style>

Does not work. In Cognos Analytics maybe .clsCheckBoxList is something else?

oscarca

Hey,

It depends on what value prompt you are using.

In this case I used a radiobutton prompt

It is probably a different syntax if you have a listbox prompt.

Anyone know the correct style syntax for listbox prompt ?

best regards,
Oscar