<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Access Multiple Results from custom GP tool in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/access-multiple-results-from-custom-gp-tool/m-p/52195#M1241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This solution I thought I had has not worked for me. I have also tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var pv:ParameterValue = event.parameterValue.paramName["Result"];
var pv2:ParameterValue = event.parameterValue.paramName["SummaryStats"];&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any advice would still be welcome. Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 15:57:55 GMT</pubDate>
    <dc:creator>ErikMartin</dc:creator>
    <dc:date>2021-12-12T15:57:55Z</dc:date>
    <item>
      <title>Access Multiple Results from custom GP tool</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/access-multiple-results-from-custom-gp-tool/m-p/52193#M1239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a custom GP Service. It returns two results (esriGPParameterDirectionOutput) a FeatureSet of points (GPFeatureRecordSetLayer) and a RecordSet (GPRecordSet) of summary statistics about those points. I am successfully able to access and symbolize the points and bring the attributes into a datagrid. I'm not sure, though, how to access the second result. (which will go into a separate datagrid) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's what I have working so far -- just accessing the point results and displaying them. I left out the code to put the attributes into a datagrid, but that's working, too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; protected function gp_jobCompleteHandler(event:GeoprocessorEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (event.jobInfo.jobStatus == JobInfo.STATUS_SUCCEEDED)
&amp;nbsp;&amp;nbsp;&amp;nbsp; { 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.addEventListener(GeoprocessorEvent.GET_RESULT_DATA_COMPLETE, onGetResult);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.getResultData(gp.submitJobLastResult.jobId, "Result");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var messages:Array = event.jobInfo.messages;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var count:int = messages.length;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var index:int = count-2;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var message:String = messages[index].description;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statusArea.appendText(message + "\n");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statusArea.appendText("Drawing result graphics..." + "\n");
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; else
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var messages1:Array = event.jobInfo.messages;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var count1:int = messages1.length;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var index1:int = count1-4;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var message1:String = messages1[index1].description;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statusArea.appendText(message + "\n");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show("Geoprocessing Error:\n" + message1);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and then:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; protected function onGetResult(event : GeoprocessorEvent) : void
&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; myGraphicsLayer.renderer = ResultRenderer();
&amp;nbsp;&amp;nbsp;&amp;nbsp; var pv:ParameterValue = event.parameterValue;
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; fs = new FeatureSet;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fs = pv.value as FeatureSet;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for each(var graphic:Graphic in fs.features)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.addEventListener(MouseEvent.CLICK, graphic_clickHandler);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.addEventListener(MouseEvent.DOUBLE_CLICK, graphic_doubleClickHandler)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myGraphicsLayer.add(graphic);
&amp;nbsp;&amp;nbsp;&amp;nbsp; } 
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(myGraphicsLayer);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var resultAttribute:Array = fs.attributes;
&amp;nbsp;&amp;nbsp;&amp;nbsp; resultAttributes= new ArrayCollection(resultAttribute);
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; CursorManager.removeBusyCursor();

&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's what I'm trying to do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; protected function gp_jobCompleteHandler(event:GeoprocessorEvent):void
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (event.jobInfo.jobStatus == JobInfo.STATUS_SUCCEEDED)
&amp;nbsp;&amp;nbsp;&amp;nbsp; { 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.addEventListener(GeoprocessorEvent.GET_RESULT_DATA_COMPLETE, onGetResult);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.getResultData(gp.submitJobLastResult.jobId, "Result");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.getResultData(gp.submitJobLastResult.jobId, "SummaryStats"); 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var messages:Array = event.jobInfo.messages;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var count:int = messages.length;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var index:int = count-2;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var message:String = messages[index].description;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statusArea.appendText(message + "\n");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statusArea.appendText("Drawing result graphics..." + "\n");
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; else
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var messages1:Array = event.jobInfo.messages;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var count1:int = messages1.length;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var index1:int = count1-4;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var message1:String = messages1[index1].description;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statusArea.appendText(message + "\n");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show("Geoprocessing Error:\n" + message1);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and then:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; protected function onGetResult(event : GeoprocessorEvent) : void
&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; myGraphicsLayer.renderer = ResultRenderer();
&amp;nbsp;&amp;nbsp;&amp;nbsp; var pv:ParameterValue = event.parameterValue;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var pv2:ParameterValue = event.parameterValue; // This seems wrong -- how do I tell it to take the second of the output parameters?
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; fs = new FeatureSet;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fs = pv.value as FeatureSet;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rs = new RecordSet; // This doesn't work.&amp;nbsp; "RecordSet" isn't an option
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rs = pv2.value as RecordSet; // This obviously doesn't work either

&amp;nbsp;&amp;nbsp;&amp;nbsp; for each(var graphic:Graphic in fs.features)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.addEventListener(MouseEvent.CLICK, graphic_clickHandler);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.addEventListener(MouseEvent.DOUBLE_CLICK, graphic_doubleClickHandler)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myGraphicsLayer.add(graphic);
&amp;nbsp;&amp;nbsp;&amp;nbsp; } 
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(myGraphicsLayer);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var resultAttribute:Array = fs.attributes;
&amp;nbsp;&amp;nbsp;&amp;nbsp; resultAttributes= new ArrayCollection(resultAttribute);
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var sumStatsAttribute = rs.attributes; // This obviously isn't working since 'rs' isn't working
&amp;nbsp;&amp;nbsp;&amp;nbsp; sumStatsAttributes = new ArrayCollection(sumStatsAttribute);

&amp;nbsp;&amp;nbsp;&amp;nbsp; CursorManager.removeBusyCursor();

&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need a separate event listener for the SummaryStats table? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As always, any advice would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Erik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 15:57:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/access-multiple-results-from-custom-gp-tool/m-p/52193#M1239</guid>
      <dc:creator>ErikMartin</dc:creator>
      <dc:date>2021-12-12T15:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Access Multiple Results from custom GP tool</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/access-multiple-results-from-custom-gp-tool/m-p/52194#M1240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK I think I've figured out 2 things.&amp;nbsp; First, &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/tasks/supportclasses/ParameterValue.html" rel="nofollow noopener noreferrer" target="_blank"&gt;ParameterValue&lt;/A&gt;&lt;SPAN&gt; looks like it takes the name of the FeatureSet.&amp;nbsp; Also the same link shows that the Flex Type for Record Set is Feature Set.&amp;nbsp; Based on these, it looks like my code in question should be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; protected function onGetResult(event : GeoprocessorEvent) : void
&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; myGraphicsLayer.renderer = ResultRenderer();
&amp;nbsp;&amp;nbsp;&amp;nbsp; var pv:ParameterValue = event.parameterValue["Result"];
&amp;nbsp;&amp;nbsp;&amp;nbsp; var pv2:ParameterValue = event.parameterValue["SummaryStats"];
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; fs = new FeatureSet;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fs = pv.value as FeatureSet;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; rs = new FeatureSet;
&amp;nbsp;&amp;nbsp;&amp;nbsp; rs = pv2.value as FeatureSet;


&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;still not working yet, but optimistic...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:01:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/access-multiple-results-from-custom-gp-tool/m-p/52194#M1240</guid>
      <dc:creator>ErikMartin</dc:creator>
      <dc:date>2021-12-10T22:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Access Multiple Results from custom GP tool</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/access-multiple-results-from-custom-gp-tool/m-p/52195#M1241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This solution I thought I had has not worked for me. I have also tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var pv:ParameterValue = event.parameterValue.paramName["Result"];
var pv2:ParameterValue = event.parameterValue.paramName["SummaryStats"];&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any advice would still be welcome. Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 15:57:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/access-multiple-results-from-custom-gp-tool/m-p/52195#M1241</guid>
      <dc:creator>ErikMartin</dc:creator>
      <dc:date>2021-12-12T15:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Access Multiple Results from custom GP tool</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/access-multiple-results-from-custom-gp-tool/m-p/52196#M1242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In case this might help someone in the future, here's the solution I came up with.&amp;nbsp; I don't know if its the best or most efficient solution, but it works.&amp;nbsp; Essentially, I added a conditional in my onGetResult function to direct the flow based on the parameter name.&amp;nbsp; It then calls one of two separate functions for either symbolizing the result points or adding the summary stats to an array (for display in a data grid).&amp;nbsp; onGetResult is called twice -- once for each result returned.&amp;nbsp; Here's the completed code (the gp_jobCompleteHandler is unchanged)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;protected function onGetResult(event : GeoprocessorEvent) : void {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (event.parameterValue.paramName == "Result")&amp;nbsp; { &amp;nbsp; var pv1:ParameterValue = event.parameterValue; &amp;nbsp; symbolizeResults(pv1);&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; if (event.parameterValue.paramName == "SummaryStats")&amp;nbsp; { &amp;nbsp; var pv2:ParameterValue = event.parameterValue; &amp;nbsp; addSumStats(pv2);&amp;nbsp; } }&amp;nbsp;&amp;nbsp; private function symbolizeResults(pv1:ParameterValue):void {&amp;nbsp; fs = new FeatureSet;&amp;nbsp; fs = pv1.value as FeatureSet;&amp;nbsp;&amp;nbsp;&amp;nbsp; for each(var graphic:Graphic in fs.features)&amp;nbsp; { &amp;nbsp; graphic.addEventListener(MouseEvent.CLICK, graphic_clickHandler); &amp;nbsp; graphic.addEventListener(MouseEvent.DOUBLE_CLICK, graphic_doubleClickHandler) &amp;nbsp; myGraphicsLayer.add(graphic);&amp;nbsp; }&amp;nbsp;&amp;nbsp; map.addLayer(myGraphicsLayer);&amp;nbsp;&amp;nbsp; zoomToGraphics();&amp;nbsp;&amp;nbsp;&amp;nbsp; var resultAttribute:Array = fs.attributes;&amp;nbsp; resultAttributes= new ArrayCollection(resultAttribute); }&amp;nbsp;&amp;nbsp; private function addSumStats(pv2:ParameterValue):void {&amp;nbsp; rs = new FeatureSet;&amp;nbsp; rs = pv2.value as FeatureSet; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var sumStatsAttribute:Array = rs.attributes;&amp;nbsp; sumStatsAttributes = new ArrayCollection(sumStatsAttribute);&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 13:11:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/access-multiple-results-from-custom-gp-tool/m-p/52196#M1242</guid>
      <dc:creator>ErikMartin</dc:creator>
      <dc:date>2013-04-16T13:11:32Z</dc:date>
    </item>
  </channel>
</rss>

