How do I change the name of a top value in a text box in a Cognos report?

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

+3
source share
4 answers

add the HTML element to the invitation page and add the following as an HTML element:

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

Replace "MyList" with the name of the component.

from: link text

+5
source

In Cognos 10, you can specify the hint text of your choice in Report Studio.

  • Select value tooltip
  • "" " " " " "". , .
  • " ". .
  • "".
  • , , , , .

.

How to change prompt header text

+4

. -, Framework Manager.

-, Report Studio. , , , . , . , [Namespace]. [Unfriendly Name], ​​ "Friendly Name". - " ". , :

[ ]. [ ] || ''

, . '.

( ).

confusing? Yes.

+2
source

Inside the dataitem in the request .. you can do ..

IF ([dataitemA] = 'some text') THEN ("new text") ELSE ([dataitemA])

I try to avoid using javascript and html elements because they usually do not work in pdf or excel format.

just a thought ..

Hooray!

+1
source

Source: https://habr.com/ru/post/1698521/


All Articles