COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Topic started by: raro on 07 May 2007 07:01:07 AM

Title: [CC][RS] switch for language of text in browsertitle ?
Post by: raro on 07 May 2007 07:01:07 AM
The browsertitle is displaying wrong language.

Test case:

* save a report studio report
* give it a name associated to language english
* run the report via URL
-> report title is english

* put a second language to the report name
* run the report via url with the new name
* in url set "locale" to new language
-> report title still english

Test the other way around:
* save a new reportstudio report
* give it a name associated to a different language e.g. german
* run the report via URL
-> report title is german

* put second language in the name
* run  the report via url with "locale" pointing to english
-> report title still german

URL calling the report:
https://localhost/p2pd/servlet/dispatch?b_action=xts.run&m=portal/report-viewer.xts&ui.action=run&ui.object=%2fcontent%2fpackage%5b%40name%3d%27MYPACK%27%5d%2freport%5b%40name%3d%27TEST_Deutsch%27%5d&ui.backURL=%2fp2pd1%2fservlet%2fdispatch%3fb_action%3dxts.run%26m%3dportal%2fcc.xts%26m_folder%3di9390446736F74AF3AF3A90E2CDD23183%26m_folder2%3dm-i2BFC3D7D98334EF6BA8BF0358117684E%26m_tab%3diA46F893117C242E287E657176895AAD7&outputFormat=PDF&outputLocale=de&lang=de&nh=1&run.prompt=false

Behaviour is the same with CRN.

So ... what I conclude is, that you always get the browsertitle in the language you first saved the report.

You may switch the browsertitle by selecting a different product/content language in cognos connection.
Then the language is displayed accordingly.

Is it possible to showing a browsertitle according to the reportname called via URL and/or language passed via URL ?

Any hints are welcome.

regards,
Ralf
Title: Re: [CC][RS] switch for language of text in browsertitle ?
Post by: COGNOiSe administrator on 08 May 2007 12:18:52 AM
I wonder if a browser repsonds to a change in the HTML TITLE element  ...

If yes, then theorithically you could plug in a combination of HTML Items and a layout calculation to override title using JavaScript.
Title: Re: [CC][RS] switch for language of text in browsertitle ?
Post by: COGNOiSe administrator on 08 May 2007 12:19:17 AM
I hope you did raise a ticket with Cognos ...
Title: Re: [CC][RS] switch for language of text in browsertitle ?
Post by: raro on 06 Jun 2007 11:30:22 AM
Yes ... ticket was opend and has been closed.

Answer:Works as designed, we might have a enhancementrequest on this one.

Details:
As users can change their language in their personal preferences there is a "workaround".

But:
1.) Our users do not have access to cognos connection and cannot change there preferences.
2.) the results are displayed as PDF. So rendering HTML-Javascript items into the report is not feasible

Title: Re: [CC][RS] switch for language of text in browsertitle ?
Post by: COGNOiSe administrator on 13 Jun 2007 12:50:44 PM
I wonder if setting up a CRN cookie would help. It does define product and content languages. Could you test for its presence in both cases? The goet the proper systax just open Cognos Connection, then type

javascript:alert(document.cookie);

in your address bar and hit enter.