> I'm currently trying to implement Ray Camden CFUPS and just can't
> figure it out. I'm able to retrieve a rate but it's always dumping the
> whole thing I would like to have only the total price returned.
Here's what I'm using:
<cfset trackingResults = st.getTrackingInformation(FORM.trackingnumber, true)>
<!--- If user is checking packages, show them data from UPS --->
<cfif StructKeyExists(VARIABLES, "trackingResults")>
<table class="UPSTrackingTable">
<tr>
<th colspan="4">Package Progress for: <cfif
Len(FORM.trackingnumber)><cfoutput>#FORM.trackingnumber#</cfoutput></cfif></th>
</tr>
<tr>
<td class="heading">Location</td>
<td class="heading">Date</td>
<td class="heading">Local Time</td>
<td class="heading">Description</td>
</tr>
<cfloop from="1" to="#arrayLen(trackingResults.packages[1].activity)#"
index="i">
<cfoutput>
<tr<cfif i MOD 2 EQ 0> bgcolor="##EBEBE6"</cfif>>
<td><p>
<cfif
StructKeyExists(trackingresults.packages[1].activity[i].activitylocation.address,
"city")>#trackingresults.packages[1].activity[i].activitylocation.address.city#,
</cfif>
<cfif
StructKeyExists(trackingresults.packages[1].activity[i].activitylocation.address,
"stateprovince")>#trackingresults.packages[1].activity[i].activitylocation.address.stateprovince#,
</cfif>
#trackingresults.packages[1].activity[i].activitylocation.address.countrycode#
</p>
</td>
<td>#DateFormat(trackingresults.packages[1].activity[i].date,
"m/dd/yyyy")#</td>
<td>#TimeFormat(trackingresults.packages[1].activity[i].time, "h:mm
tt")#</td>
<td>#trackingresults.packages[1].activity[i].status.statustypedescription#</td>
</tr>
</cfoutput>
</cfloop>
</table>
</cfif>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies
around the world in government. Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292576
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4