If you are unable to create a new account, please email support@bspsoftware.com

 

Cognos 11.0.7 CustomControl JavaScript to remove top 2 lines from value prompt

Started by joseph123, 30 Jan 2018 10:10:38 PM

Previous topic - Next topic

joseph123

Hi

Does any one has JavScript code to remove top 2 lines from value prompt.
Does any one knows method and syntax to remove a line.

tkjenkin

<script language="javascript">
var f = getFormWarpRequest();
var list = f._oLstChoicesplaceyourpromptnamehere;

list.remove(0);
document.formWarpRequest._oLstChoicesplaceyourpromptnamehere[0].text =  '  ';
list.removeAttribute("hasLabel");
</script>

===============================

Notes:  replace placeyourpromptnamehere with your prompt name
in the two places.