AlanLundquist
8 years agoQrew Member
Javascript to pull tracking information from DHL website
I am fairly new to quickbase and have never worked with javascript before, so simple answers based on this would be helpful.
In my app I have a table that shows all of my shipments and I would like to automatically have a field for each record that shows the current location, when it arrived there, and what the status is (e.g. at customs, delivered, etc.).
All of this information is available on DHL Express's tracking website, and is found in the table class "result-checkpoints show". I need to pull the date in the column header of the latest record and the record details to have all the information needed (no need to pull the older records for the shipment).
I currently have a button in my table that takes me to the tracking page based on the tracking # for the record but this is cumbersome to do for many records.
I know real-time/scheduled updates probably wouldn't be possible but I can create an update button afterwards to run the script and that would solve my problem. Does anybody know where I can find a Javascript formula such as this? Or can explain to me how to set up the GET function in a case such as this? A basic example would be helpful.
In my app I have a table that shows all of my shipments and I would like to automatically have a field for each record that shows the current location, when it arrived there, and what the status is (e.g. at customs, delivered, etc.).
All of this information is available on DHL Express's tracking website, and is found in the table class "result-checkpoints show". I need to pull the date in the column header of the latest record and the record details to have all the information needed (no need to pull the older records for the shipment).
I currently have a button in my table that takes me to the tracking page based on the tracking # for the record but this is cumbersome to do for many records.
I know real-time/scheduled updates probably wouldn't be possible but I can create an update button afterwards to run the script and that would solve my problem. Does anybody know where I can find a Javascript formula such as this? Or can explain to me how to set up the GET function in a case such as this? A basic example would be helpful.