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

Value prompt - values in colours

Started by cognosun, 29 May 2013 07:21:55 AM

Previous topic - Next topic

cognosun

Hi,

I've got 4 values in my value prompt drop down...in which 2 are of default selection ( check box/right mark symbol).

Is there any way to give background color to those "specific 2" values, using conditional variables.

Thanks,
Joys

Satheesh

Hi,
By Using Java Script you can apply the colors....




Regards
Sateesh

blom0344

Well, let's give us some JS to get an idea..

Satheesh


<script type="text/javascript">


var fw=getFormWarpRequest();
var dl = fw._oLstChoicesmyDropDownPrompt;
var color = ["CEECFF","#7EECE5","#C8ECA5","#4EEC95","#CEEC15","AB9832","#ACEB95","#BCBB99","#ACCA99"];
for( var i=0; i<dl.length;i++)
dl.options.style.backgroundColor = color;
</script>