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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hyperlink contains comma (maybe)

Status
Not open for further replies.

TStriker

Programmer
Nov 12, 2003
277
US
Hi folks,

Crystal rookie here and I'm running Reports 10 and Enterprise 10. What I'm trying to do is create a report with a clickable hyperlink to a page on our intranet. Here's an example of a properly formatted link:


The value "1234" is contained in the 'record_no' field of our Oracle DB and is formatted to be a varchar(11). The remainder of the path is static and could be hardcoded into the Crystal Report.

So here is what I have done so far:

1. Created a simple report that contains the field "record_no".

2. Fotmatted that field to be a "Web site on the internet" type hyperlink and have it calculating the value like this:

"../../../../folder/file.asp?record_no=" & {TABLE_NAME.RECORD_NO}

There are a couple of problems:

1. When I click on the link it seems to pass the record_no parameter with a comma (,) in the value. Something like this:


It is tough to discern the exact problem because I can't see the parameter directly. I'm getting an "ORA-00907: missing right parenthesis" error message which makes me think the problem is a comma in the numeric value.

I tried the ToText function but no luck. Can anyone help me out here?

2. The other problem is with the static path. At this point I should mention that everything runs fine when I click on a link from within Reports 10 on my local workstation. The problems hit when I try to run it from Enterprise. CE seems think of the path in "relative terms"; hence the "../../.." stuff in the formula. I can live with this but would like to know if there is a way to have it use an "absolute" path.

-Striker
 
Change the formula to:

"../../../../folder/file.asp?record_no=" & totext({TABLE_NAME.RECORD_NO},0,"")

-k
 
...vampire,

You nailed it. I was missing the empty quotes.

I bow to your surerior knowledge!

Any ideas on how to make CE use absolute paths?

-Striker
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top