Jump to content

Url Script for looking up UPS Tracking Number


This topic is 7118 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

Newbie here trying to set up a database of orders that we ship out with UPS. I plan to import the tracking numbers into the database and then I want a button next to the tracking number that I can press to go to UPS's website and lookiup the tracking number without re-entering the tracking number.

The url I need to use is "http://wwwapps.ups.com/etracking/tracking.cgi?tracknums_displayed=5&TypeOfInquiryNumber=T&HTMLVersion=4.0&sort_by=status&InquiryNumber1=&InquiryNumber2=&InquiryNumber3=&InquiryNumber4=&InquiryNumber5=&track.x=24&track.y=9"

I need to somehow insert the tracking number that is in each field into the url above where it says (InquiryNumber1=TRACKINGNUMBER GOES HERE).

Anyone know how I can do this?

Link to comment
Share on other sites

  • Newbies

Sorry, I am a newbie, what would the calculation be?

I have created the following calculation:

"http://wwwapps.ups.com/etracking/tracking.cgi?tracknums_displayed=5&TypeOfInquiryNumber=T&HTMLVersion=4.0&sort_by=status&InquiryNumber1="&"Tracking_Number"&"&InquiryNumber2=&InquiryNumber3=&InquiryNumber4=&InquiryNumber5=&track.x=24&track.y=9"

The end result is only: http://wwwapps.ups.com/etracking/tracking.cgi?

Link to comment
Share on other sites

Another suggestion, since tracking numbers show spaces, your users might try using spaces in the Tracking_Number field. With FM7, you can allow that but easily clean up the number so it will work correctly in a URL. Where you have Tracking_Number in your string, use this instead:

Filter(Tracking_Number;"0123456789")

Or if this number could be used in a relationship, then it would be better to remove the spaces automatically within the field itself. To do this, define Tracking_Number to have an Auto-entered calculation = Filter(Tracking_Number;"0123456789"), and uncheck the option to auto-enter only if the field is empty.

Link to comment
Share on other sites

This topic is 7118 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.