Jump to content
Changes to the Jaspersoft community edition download ×

Open in new browser window


Recommended Posts

By: Hillebrand Gelderblom - hgelderblom

Open in new browser window

2003-06-20 04:58

I use hyperlinks in my generated pdf. The report is part of a webapp and i open the pdf inline in a browser window. The report contains hyperlink that points to a report that shows more detail. My problem is that when the hyperlink is clicked on it opens the report in the same window, therefore discarding my master report. I cannot use the back button to get back to my master report because the form with the parameters no longer exists and the report cannot be generated again. If i could open the detail report in a new window it would be fixed. Is this possible with jasperreports and how?? can you specify a target in the link??

 

 

 

 

By: Paddy - shamking

RE: Open in new browser window

2004-11-30 04:24

This is how I did it in the browser

 

Under Hyperlink Reference Expression

 

"/maps/displayLocationsOnMap.do?&vehicleRid=" + $F{id} + "&mobileNumber=" + $F{mobileNumber} + "" target="_top"" + " onclick="javascript:parent.startWait();"

 

By replacing _top with _blank I think it should work.

 

Paddy

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...