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

Removing the first 2 lines from a list prompt

Started by UseCog, 06 Jul 2009 11:59:24 AM

Previous topic - Next topic

UseCog

Hi All,


I want to remove the first 2 lines from a list prompt , ie:- the parameter name and '-----------'.
Is there a way to achive this in report studio(V84)....or anybody done using java scripts

Thanks in advance

Regards,
UC

Gopinath

Try this code. It works in 8.3 but not sure about 8.4.

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

fW._oLstChoicesprompt_name.remove(0);
fW._oLstChoicesprompt_name.remove(0);

</script>

UseCog

#2
Thanks a lot Gopinath.

your solution lead me to implement using getFormWarpRequest()._oLstChoicesPrompt_Name.remove(0);