I have Crystal 8 and have a field that I want to hyperlink to another application, but I want that new app to open in it's own window. I am using Crystals Active X viewer. I have the link working correctly, just not opening in a new window. Any ideas??
Dross : Did you ever resolve this issue?? I have the same problem I.E. I have a report, I want to add a formula (hyperlink) to a field on the main report that opens an HTML page in a new window.. The Javascipt won't work as there is no way to enter that (Javascript) in a CR Link Formula..
No, never really resolved it. I have over 1,000 customers and I have to make sure they are all on IE 6 and their browser is set to always open in a new window. It is a nightmare to keep track of who did it and who didn't, but that is the only way to make sure it opens in a new browser. Hope that helped.
here's one idea that would be kinda tough, but doable.
At the beginning of your ASP page that loads the report, check to see if any parameters (request objects) have been sent in and set Session variables equal to these parameters.
Throughout the rest of your page, use these Session variables to populate your report.
<%
if request("parm1" <> "" then
Session("parm1" = request("parm1"
end if
For your hyperlinks, point them to this same exact ASP report page (which they should already be a part of) and include something like:
loadReport.asp?newWindow=
Back to your ASP Report page:
Just before the <body> tag, check to see if there's something in this part of the querystring, and then run the javascript LV posted accordingly.
So your code looks something like this:
<head>
<script language="javascript">
function openReportWindow(strNewWindow){
window.open("
Now, the other trick is that when you're submitting the report from a different ASP page for the first time, you'll have to check those Session variables that store the parameter values and clear them out if need be before you try to load the report.
<%
if Session("parm1" <> "" then
Session("parm1" = ""
end if
%>
<a href="loadReport.asp?parm1=firstValue">Click here to see the report</a>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.