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

 

[Solved]Removing Report Viewer Text from the Report Prompts and Report Viewer

Started by thecustomizer, 25 Oct 2005 02:47:36 AM

Previous topic - Next topic

thecustomizer

Hi All,

I would like to have the "Report Viewer" text completely removed from the Report Viewer Header text, the browser title as well as the Report Prompt templates.

Please note that just changing the text from the config xml file to blank would not help because i also need to remove the hyphen( - ) sign that appears between the Report Viewer text and the Report Name in the header/title.

I tried modifying the report-viewer.xts file but the changes do not get reflected on restarting the Reportnet service.

Please get back to me ASAP. Thanks in advance.

sir_jeroen

It's only possible using Javascript while viewing a report in HTML format.

thecustomizer

It is ofcourse possible with Javascript when the output is rendered as HTML but i would like to find out a way to achieve the same with all formats.
Also, i need to have it removed from the Prompt template, the browser window as well as the Screen that appears before the report is displayed i.e. the screen with the delivery options.

sir_jeroen

you can look in the code of the page when rendered in eg pdf what javascripts are called. In that script you could add javascript function, which is standard executed. But... before that's executed the Report Viewer bar must be generated and if I remember correctly that's not :S

CoginAustin

The report-viewer.xts is cached in your database somewhere (I have been to lazy to look for exactly where it is located)

However, if you do rename this file to report-viewer_new.xts or something else it will be parsed and execute your changes.
You just have to make a link that uses this new XTS.
eg http://cognos/cognos.cgi?b_action=xts.run&m=report-viewer_new.xts

Or, figure out which table(and let us know) the cache is loaded into so you can remove the report-viewer.xts and replace it with a new one. :)

sir_jeroen

CoginAustin does this work for you? My experience is that this is only applicable when you enter the url manually... Not when you login to ReportNet and use the buttons... How did you solve this?

CoginAustin

Actually I just did a right click->copy short cut  then I edited the xts filename and placed mine in there. I think pasted this link into a URL shortcut in reportnet. It runs with my new xts file.

I have also placed this type of link inside a report. I have never used this in production because I am not sure if I am creating issues by creating my own xts :)

All I am certain of is that changing an XTS file once it is cached somewhere does nothing.

pmcghiey

I know that some of the xts files are stored in a cached jar file located at crn_install\webapps\p2pd\web-inf\lib\portal.jar.Ã,  I didn't see the report-viewer.xts file in that file so it may be cached in a different file.

Here is a link about this:Ã,  http://www.tek-tips.com/viewthread.cfm?qid=1024719


thecustomizer

Hi,

Thanks a lot for the replies/solutions folks.
I am new to this forum but am really happy about the active participation and willingness to help that is being put forward by all of you.
Looking forward to a longlasting citizenship to the world of cognoise.

Keep rockin!!