Trouble accessing attributes of geoprocessing results

424
2
02-16-2011 11:42 AM
JayGregory
New Contributor III
I am having trouble accessing the attribute table of a returned geoprocessing result, and was hoping someone could help. 
executeComplete calls the following function:
private function showResult(event:GeoprocessorEvent):void
   {
    messages.text = "Best Route Displayed";
    this.cursorManager.removeBusyCursor();
     Alert.show(event.executeResult.results[0].value.features[0].attributes.SEQUENCE + "");

However, the alert shows up undefined when the GP service (http://129.2.24.163/ServerMPSArcGIS/rest/services/PCTools/GPServer/Best_Route - publicly accessible if you want to take a look) clearly shows that SEQUENCE is an attribute of the the first output (results[0]).  What could I doing wrong?  Also, assume I know very little about ActionScript and Flex - I'm fairly new to this. 
Thanks!

Jay
Tags (2)
0 Kudos
2 Replies
MehulChoksey
Esri Contributor
try Sequence instead of SEQUENCE in your code snippet.
0 Kudos
JayGregory
New Contributor III
My foot is in my mouth (thank you!).  I can't believe I hadn't tried that.  I guess that's why I'm a novice. 

try Sequence instead of SEQUENCE in your code snippet.
0 Kudos