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

how to hide the prompt name and line under taht in value prompt?

Started by hrk551, 30 Jun 2009 03:42:46 PM

Previous topic - Next topic

hrk551

hi,

how can we hide the prompt name and the dotted line under that ina value prompt. i.e my value prompt drop down first item should be my parameter value.

Thanx in Adv

kalyan_y

You need to have a Javascript for this. Which version of cognos are u using? (Since JS depends on the version)

Gollapudi

Hi We had the same issue earlier... to resolve it what we have done it, In that prompt Query... we took another empty Data Item and placed this [Display Value] in that Query, you can name that extra Data Item as you want.... that name will be displayed in ur drop down...

Hope this will help you,
Gollapudi.

hrk551

Kalyan ... I am using 8.3. If you have any script availble, help me.

Gollapudi, sry I am little bit confused with your answer. you said when we add that extra data item and move the display value into that and the name of that extra data item will be displayed, but I dont want taht name to be displayed.

And i am not getting values from a data item, they are static choices:

sfirebaugh

more of a workaround, but you can set the UI of prompt to be Radio Button Group instead of Drop Down List...

Gopinath

try using the following code in a HTML item next to your value prompt.

<script>
var fW = (typeof getFormWarpRequest == "function" ? getFormWarpRequest() : document.forms["formWarpRequest"]);

fW._oLstChoicesprompt_name.remove(0);
fW._oLstChoicesprompt_name.remove(0);
fW._oLstChoicesprompt_name.selectedIndex = 0;
</script>

Replace prompt_name in the above code with your prompt name

hrk551