How do I change the top value name in a text box on a Cognos Report?

Joshua picture Joshua · Oct 21, 2008 · Viewed 8.3k times · Source

The default value for the first item in a drop down list is the name of the database field. I need to change it to a more user friendly name. How do I change the value?

Answer

Joshua picture Joshua · Oct 21, 2008

add a HTML Item onto the prompt page and add the following as an HTML item:

Example: <script> document.formWarpRequest._oLstChoicesMyList[0].text = '--SELECT A CITY--'; </script>

Replace 'MyList' with the name of the component.

from: link text