replace char(13) char(10)

char(13) is carriage return and char(10) is line feed. Different text editors/viewers will interpret it differently.

Use replace function to get all data in 1 line.
replace(replace(column_name,char(13),’ ‘),char(10),’ ‘)

when copying data which have char(13), char(10) in it to text editor/excel- we notice data showing up in different rows. FOr this scenario we replace it by ‘ ‘ to get in 1 row.

select ‘a’+char(13)+’b’
select ‘a’+char(10)+’b’

cognos drill through from a button/URL link

Had a situation where I need to develop a detail report for a dashboard based on the prompts selected in that dashboard.
Dashboard had multiple summary lists/crosstabs/charts
below are high level steps.

Solution:
1. develop a detail list report based on the same prompts.
2. At master report

  1. create a singleton (on the dashboard where you want to see the url)and say you assigned it to query – q_detail.
  2. Create a data item say “Detail data” and with value “click for detail data”
  3. now add this data item to the singleton you created.
  4. select the data item in the singletom and select drill-Through definitions.
  5. select required report and other options. At parameters click on edit sign and use
  6. “Pass parameter value” and select associated prompt name.
  7. click ok.

now when you run the summary report you should see a link “click for detail data”