Crystal Reports and Hyperlinking

Savatage
Member Posts: 7,142
This drove me crazy for a while so to help those who want to try it.
We send reports out that show a person's name and their tracking# for a specific package. Now nothing is better than just clicking on the tracking number and have everything else happen automatically.
First thing is Create a Formula Field Called Tracking.
Now you edit it an put some code or options but for this example lets say it's formula is
if ({Sales_Invoice_Header.Shipping Agent Code} = 'MAIL'
and {Sales_Invoice_Header.Ship-to Country Code} = 'US') then
"http://www.usps.com"
else
if ({Sales_Invoice_Header.Shipping Agent Code} = 'MAIL'
and {Sales_Invoice_Header.Ship-to Country Code} <> 'US') then
"http://www.upsmailinnovations.com"
Else
{Sales_Invoice_Header.Tracking No_}it can say "Hi Mom" if you want but this is the word that will contain the hyperlink
Now you drop the field in the report & right click & go to Format field.
The last tab says hyperlink
The type is "A website on the internet" as you can see you can pick others like emaill address(that's for another time).
Click the formula link in the Hyperlink info to add your code
http://wwwapps.ups.com/WebTracking/processRequest?HTMLVersion=5.0&Requester=NES&AgreeToTermsAndConditions=yes&loc=en_US&tracknum="+{Sales_Invoice_Header.Tracking No_}
in this case it's a link to UPS with our tracking number added to the the end.
Now when the report is run the link is set and if you export to pdf or something - the receiver can simply click the link (note I change the color to red for any hyperlinks) and they are there.
Have Fun!
We send reports out that show a person's name and their tracking# for a specific package. Now nothing is better than just clicking on the tracking number and have everything else happen automatically.
First thing is Create a Formula Field Called Tracking.
Now you edit it an put some code or options but for this example lets say it's formula is
if ({Sales_Invoice_Header.Shipping Agent Code} = 'MAIL'
and {Sales_Invoice_Header.Ship-to Country Code} = 'US') then
"http://www.usps.com"
else
if ({Sales_Invoice_Header.Shipping Agent Code} = 'MAIL'
and {Sales_Invoice_Header.Ship-to Country Code} <> 'US') then
"http://www.upsmailinnovations.com"
Else
{Sales_Invoice_Header.Tracking No_}it can say "Hi Mom" if you want but this is the word that will contain the hyperlink
Now you drop the field in the report & right click & go to Format field.
The last tab says hyperlink
The type is "A website on the internet" as you can see you can pick others like emaill address(that's for another time).
Click the formula link in the Hyperlink info to add your code
http://wwwapps.ups.com/WebTracking/processRequest?HTMLVersion=5.0&Requester=NES&AgreeToTermsAndConditions=yes&loc=en_US&tracknum="+{Sales_Invoice_Header.Tracking No_}
in this case it's a link to UPS with our tracking number added to the the end.
Now when the report is run the link is set and if you export to pdf or something - the receiver can simply click the link (note I change the color to red for any hyperlinks) and they are there.
Have Fun!
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions