Hello,
I want to convert an ASP application running on a Windows server to a Fabrik list application. Currently, I have an online order status report that contains a hyperlink field with a shipment tracking number. Shipments are via FedEx, UPS, USPS. When the tracking number is clicked, the proper shipper website opens and displays the tracking reults. The URL for tracking is determined by the length of the tracking number. The relevant code (I think) from the .asp file is below:
<%
Dim strURL
dim sTrackNum
sTrackNum = FP_FieldURL(fp_rs,"TrackingNo")
Select Case len(trim(sTrackNum))
Case 11 'Airborne
strURL = "https://track.airborne.com/TrackByNbr.asp?ShipmentNumber=" & sTrackNum
Case 18 'UPS
strURl = "http://wwwapps.ups.com/WebTracking/...peOfInquiryNumber=T&loc=en_US&InquiryNumber1=" & sTrackNum & "&AgreeToTermsAndConditions=yes&track.x=13&track.y=5"
Case 22 'USPS
strURl = "http://tools.usps.com/go/TrackConfirmAction?qtc_tLabels1="& sTrackNum
Case else ' FedEx
strURL = "http://www.fedex.com/Tracking?template_type=plugin&tracknumbers=" & sTrackNum & "&action=track&language=english&cntry_code=us"
End Select
%>
The tracking number element in my Farbik list is named "shiphow" and is now set as a text field with "Guess link" checked. I know that a lot more has to be done, but I am not sure of the best approach for Fabrik to handle this task. Calc element or?? I'm no expert with code, so if you could point me to examples to help with structure, it would be greatly appreciated.
Thank you!
Brooks
I want to convert an ASP application running on a Windows server to a Fabrik list application. Currently, I have an online order status report that contains a hyperlink field with a shipment tracking number. Shipments are via FedEx, UPS, USPS. When the tracking number is clicked, the proper shipper website opens and displays the tracking reults. The URL for tracking is determined by the length of the tracking number. The relevant code (I think) from the .asp file is below:
<%
Dim strURL
dim sTrackNum
sTrackNum = FP_FieldURL(fp_rs,"TrackingNo")
Select Case len(trim(sTrackNum))
Case 11 'Airborne
strURL = "https://track.airborne.com/TrackByNbr.asp?ShipmentNumber=" & sTrackNum
Case 18 'UPS
strURl = "http://wwwapps.ups.com/WebTracking/...peOfInquiryNumber=T&loc=en_US&InquiryNumber1=" & sTrackNum & "&AgreeToTermsAndConditions=yes&track.x=13&track.y=5"
Case 22 'USPS
strURl = "http://tools.usps.com/go/TrackConfirmAction?qtc_tLabels1="& sTrackNum
Case else ' FedEx
strURL = "http://www.fedex.com/Tracking?template_type=plugin&tracknumbers=" & sTrackNum & "&action=track&language=english&cntry_code=us"
End Select
%>
The tracking number element in my Farbik list is named "shiphow" and is now set as a text field with "Guess link" checked. I know that a lot more has to be done, but I am not sure of the best approach for Fabrik to handle this task. Calc element or?? I'm no expert with code, so if you could point me to examples to help with structure, it would be greatly appreciated.
Thank you!
Brooks