How to open report in a new browser window when click a link

I need to create a link on report. And when click this link, it open another report in a new browser window. I use the code below:

="<a href=\"http://pww.pmsbdw.anr.ms.philips.com/wijsp/scripts/openDocument.jsp?sDoc=Single Order Summary&amp;sType=wid&amp;RepoType=corporate&amp;iDocID=3356&amp;lsSEnter the Order Number:="+[Order Number]+"\" target=\"_blank\">"+[Order Number]+"</a>"

and change the link property to “view as HTML”

it does open the report in a new window. but when I view this report in PDF view, it shows HTML code on the report instead of feild name.

I post my question last week and got some suggestions. It looks like I need to add some code on the server side. But the suggestion are for IIS and ASP environment. And our BO is running on Tomcat Java environment. Anybody know how do it in Java Tomcat environment?
Thanks in advance!

Please see below for the suggestions I got:
Hi Hua

We can open the linked report in a new window in 6.1a or 6.1b
However we have to do two things.One of it is to append some code to one asp file which is not supported by BO( take care)

Two steps are :

  1. at server side
  2. at universe level.

This is how we do:

  1. SERVER side

Go to your server machine, in the “\nodes<machine><cluster>\IIS\1\wiasp\viewers\cdz” folder.

  • Make a backup copy of the “viewReport.asp” file
  • Edit the file, go to the last line.
  • Append the code below after the last file (after the last “%>”)
  • save the file.
  1. Uinverse link object

Now go and edit the universe where you have the hyperlinks defined.
In the link object, add “target=_blank” to the hyperlink url.

Example, if you had this:
http://localhost/wiasp/scripts/openDocument.asp?sDoc=MyDoc&iDocID=123&sType=wid&RepoType=0&lsSNCountry=Australia
You should now have:
http://localhost/wiasp/scripts/openDocument.asp?sDoc=MyDoc&iDocID=123&sType=wid&RepoType=0&lsSNCountry=Australia&target=_blank
or
http://localhost/wiasp/scripts/openDocument.asp?target=_blank&sDoc=MyDoc&iDocID=123&sType=wid&RepoType=0&lsSNCountry=Australia
or any other combination.

This modification is invisible to the end-user and will only use a new window for the links you want (where you specify target=_blank);
If you want to change the “target=_blank” to something else, feel free. Just make sure that it corresponds to the tag you put in the “viewreport.asp” file.

I hope this helps you


Veera
NSW Health
Australia


hua (BOB member since 2004-02-19)

try this…create a object in the universe as follows (assuming db is oracle)


'<a href="javascript:void(window.open('''http://pww.pmsbdw.anr.ms.philips.com/wijsp/scripts/openDocument.jsp?sDoc=Single Order Summary&amp;sType=wid&amp;RepoType=corporate&amp;iDocID=3356&amp;lsSEnter the Order Number:='||table.column||''', target='''||'_blank'||'''));">'||table.column||'</a>'

Then include this object as a column in your report. You could also do it at the report level ( it could affect the performance though). Check this link out https://bobj-board.org/t/17203/5.


tp_4321 (BOB member since 2003-09-21)