COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: UseCog on 06 Jul 2009 11:59:24 AM

Title: Removing the first 2 lines from a list prompt
Post by: UseCog on 06 Jul 2009 11:59:24 AM
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
Title: Re: Removing the first 2 lines from a list prompt
Post by: Gopinath on 07 Jul 2009 03:08:24 AM
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>
Title: Re: Removing the first 2 lines from a list prompt
Post by: UseCog on 07 Jul 2009 07:53:13 AM
Thanks a lot Gopinath.

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