Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report that opens another report in a different browser

Status
Not open for further replies.

marydn

Programmer
Mar 26, 2001
152
US
Hi,

In order to defeat the no subreport within a subreport limitation in Crystal 8.5, I created two separate reports. I added a hyperlink to my main report so that when clicked it opens the subreport. In order to open the subreport I need to pass a parameter to it. The only problem is that it doesn't work when I post it to Crystal Enterprise. It keeps putting a comma in the value being passed through the URL. It doesn't do this in the report designer. Can anybody tell me how to fix this? I have tried ToText with the thousands separator, but then it puts a number and a percent in the URL, which deos not work. These are the various URL's I have used:

"http:.....=java&promptex-Pm-vwSite.PropertyID="""+cstr({vwSite.PropertyID},0)+""""


"http:.....=java&promptex-Pm-vwSite.PropertyID="""+ToText({vwSite.PropertyID},0)+""""

"http:.....=java&promptex-Pm-vwSite.PropertyID="""+ToText({vwSite.PropertyID},0," ")+""""


Any help would be greatly appreciated!

M.


 
The hyperlink function depends on the viewer (sorry to say). The following is an example of one (using the formula) that works in the Active X and java viewer.. but not in the DHTML viewer.

" "&promptex-catalogId=" + '"' + {catalog.catalogId} + '"'


I think it is the single quotes around double quotes that is the trick you need.

Lisa
 
Thanks...what I needed to do was get rid of the comma being passed and I did that by........

+cstr({PropertyID),0,'')

I had to use single quotes or else it wouldn't work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top