COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: gabrielkalb on 18 Sep 2012 10:48:45 AM

Title: Search and Select Prompt
Post by: gabrielkalb on 18 Sep 2012 10:48:45 AM
Hello!

im using Cognos 8.4.

I have a report with a search and select prompt.

So, i need that prompt start with a default search. Like this:
In the textbox of select and search prompt start with value "1" and click on search button.

I try to to this with javascript, but dont work. What i try is:

I create the prompt between a SPAN tag, and in the end of page a put a html item with this:

<script type="text/javascript">
   var theDiv = document.getElementById("mySearchAndSelectSpan");
   var node_list = theDiv.getElementsByTagName("promptSS");
   alert(node_list.legth);
</script>


but always the legth is 0!