I'm trying to loop over the struct return from UPS via ray's sweet new UPS 
tool, and I can't get my variable referencing right. 

Here's what the data looks like:

http://wtomlinson.com/structscan.gif

Here's my code:
<cfloop collection="#trackingResults.packages#" item="thislocation">
<cfoutput>#trackingResults.packages.activity[thislocation].activitylocation.address.city#</cfoutput><br
 /><br />
</cfloop>

Here's my error:

 Loop error.
Invalid collection "[{RETURNTO={{}},ACTIVITY={[{DATE={{ts '2006-12-14 
00:00:00'}},SIGNEDFORBYNAME={},TIME={05:40:00},STATUS={{STATUSTYPECODE={I},STATUSTYPEDESCRIPTION={OUT
 FOR 
DELIVERY},STATUSCODECODE={DS}}},ACTIVITYLOCATION={{CODE={},DESCRIPTION={},ADDRESS={{COUNTRYCODE={US},STATEPROVINCE={NC},CITY={WINSTON
 SALEM}}}}}}, {DATE={{ts '2006-12-14 
00:00:00'}},SIGNEDFORBYNAME={},TIME={00:26:00},STATUS={{STATUSTYPECODE={I},STATUSTYPEDESCRIPTION={ARRIVAL
 
SCAN},STATUSCODECODE={AR}}},ACTIVITYLOCATION={{CODE={},DESCRIPTION={},ADDRESS={{COUNTRYCODE={US},STATEPROVINCE={NC},CITY={WINSTON
 SALEM}}}}}}, {DATE={{ts '2006-12-13 
00:00:00'}},SIGNEDFORBYNAME={},TIME={23:43:00},STATUS={{STATUSTYPECODE={I},STATUSTYPEDESCRIPTION={DEPARTURE
 
SCAN},STATUSCODECODE={DP}}},ACTIVITYLOCATION={{CODE={},DESCRIPTION={},ADDRESS={{COUNTRYCODE={US},STATEPROVINCE={NC},CITY={GREENSBORO}}}}}},
 {DATE={{ts '2006-12-13 
00:00:00'}},SIGNEDFORBYNAME={},TIME={19:33:00},STATUS={{STATUSTYPECODE={I},STATUSTYPEDESCRIPTION={ORIGIN
 SCAN},STATUSCODECODE={OR}}},ACTIVITYLOCATION={{COD..." - must be a valid 
struct or COM object.
 
Thanks,
Will

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264047
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to