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
You need to have a Javascript for this. Which version of cognos are u using? (Since JS depends on the version)
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.
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:
more of a workaround, but you can set the UI of prompt to be Radio Button Group instead of Drop Down List...
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
Thanx ...Gopinath .... it worked