Hi All,
Currently, i am working on 8.3 and looking for the Java script to remove prompt name and the dotted line as well in the Value prompt. Kindly some one help me out. Cheers
¬K 2
<script language='javascript'>
document.formWarpRequest._oLstChoicesX.remove(0);
document.formWarpRequest._oLstChoicesX.remove(0);
</script>
Replace X with the prompt name from the code
Thanks for the reply Gopi. I have tried that it works in 8.2 but not in 8.3. The following script works fine in 8.3 in the promprt page but not in the report page. Can any one help me out in this. Thanks
1. Add an HTML item to the left and right of the value prompt in the Report Studio
2. For the first HTML item (left) add '<span id = "A1">'
3. For the second HTML item (right) add '</span>'
4. Add an HTML item at the bottom of the prompt page next to "Run" button
5. Add the following script for the third HTML item:
<script type="text/javascript">
var theSpan = document.getElementById("A1");
var theSelect = theSpan.getElementsByTagName("select");
theSelect[0].options[2].selected=true; //This will make default value in prompt to be the first item after line, change the value '2' for other item
theSelect[0].options[0].text = '<PUT WHATEVER TEXT FOR VALUE PROMPT TITLE HERE>';
canSubmitPrompt();
</script>
6. The value "A1" can be anything you like. Run the Report.
Regards,
K 2
Hi Guys,
Is there any way to set a default selection?
Thanks
Nigel
Hi,
If u know the index of the default value u can do that through the following script.
----------------------------
listBoxXXX.selectAll();
document.getElementById('formWarpRequestRS')._oLstChoicesXXX.options[2].selected=true;
----------------------------
HTH,
Satish Katta