Hi All,
I have insert a javascript where i delete the first two row of value prompt..
Now I need to use the new first value like filter when i launch first time report ...
Do you have a solution to this problem?
Thanks!!
Do you have the old one code that you used to delete those values?
Add another line in the javascript to select the first value from the index.
The code has changed in newer versions of cognos.
use:
<script>
document.formWarpRequest._oLstChoicesPROMPTNAME[1].remove;
document.formWarpRequest._oLstChoicesPROMPTNAME[0].remove;
document.formWarpRequest._oLstChoicesPROMPTNAME.removeAttribute('hasLabel');
</script>
Here is the support document on cognos's site: 1039231 Javascript: Removing first 2 items from a value prompt in Cognos8.3.