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

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Value Prompt with Javascript

Started by axis, 17 Sep 2008 09:45:10 AM

Previous topic - Next topic

axis

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!!


Zucethy

Do you have the old one code that you used to delete those values?

Suraj

Add another line in the javascript to select the first value from the index.

DanSev

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.