COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: hrk551 on 30 Jun 2009 03:42:46 PM

Title: how to hide the prompt name and line under taht in value prompt?
Post by: hrk551 on 30 Jun 2009 03:42:46 PM
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
Title: Re: how to hide the prompt name and line under taht in value prompt?
Post by: kalyan_y on 30 Jun 2009 11:51:19 PM
You need to have a Javascript for this. Which version of cognos are u using? (Since JS depends on the version)
Title: Re: how to hide the prompt name and line under taht in value prompt?
Post by: Gollapudi on 01 Jul 2009 08:10:01 AM
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.
Title: Re: how to hide the prompt name and line under taht in value prompt?
Post by: hrk551 on 01 Jul 2009 10:35:56 AM
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:
Title: Re: how to hide the prompt name and line under taht in value prompt?
Post by: sfirebaugh on 01 Jul 2009 11:45:23 AM
more of a workaround, but you can set the UI of prompt to be Radio Button Group instead of Drop Down List...
Title: Re: how to hide the prompt name and line under taht in value prompt?
Post by: Gopinath on 02 Jul 2009 01:46:51 AM
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
Title: Re: how to hide the prompt name and line under taht in value prompt?
Post by: hrk551 on 02 Jul 2009 08:11:05 AM
Thanx  ...Gopinath .... it worked