<?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: Geoprocessing Parameters from a feature layer in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessing-parameters-from-a-feature-layer/m-p/167602#M3915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can anybody help me? I think the problem is with the entire feature layer, this part:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var featureSet:FeatureSet = new FeatureSet(myFeatureLayerstewardship.featureCollection.featureSet.attributes)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As nothing is executed after this line. How can I obtain the features of the feature layer? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private function calculalteplanind():void
&amp;nbsp; 
 {
&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var&amp;nbsp; SelectingFeature:FeatureSet =&amp;nbsp; new FeatureSet(myFeatureLayerstewardship.selectedFeatures);
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var featureSet:FeatureSet = new FeatureSet(myFeatureLayerstewardship.featureCollection.featureSet.attributes);
&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var params:Object = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Selecting_Features": SelectingFeature,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Stewardship": featureSet
&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.submitJob(params, new AsyncResponder( onResult, onFault ));
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; function onResult(gpResult:ExecuteResult = null, token:Object = null):void
&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; function onFault(info:Object, token:Object = null):void
&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; 
 
 }
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 08:44:07 GMT</pubDate>
    <dc:creator>ionarawilson1</dc:creator>
    <dc:date>2021-12-11T08:44:07Z</dc:date>
    <item>
      <title>Geoprocessing Parameters from a feature layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessing-parameters-from-a-feature-layer/m-p/167601#M3914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My gp has two inputs that are two features. One is a selected of a feature layer and the other is all features of the same feature layer.&amp;nbsp; A similar gp works fine in javascript but I get an error in Flex. Can anybody tell me how to get the parameters from a feature layer? Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the error I got when I select the feature and then click the button to run the gp:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[RPC Fault faultString="Error performing execute operation" faultCode="500" faultDetail=""&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; private function calculalteplanind():void &amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp; &amp;nbsp; var&amp;nbsp; SelectingFeature:FeatureSet = new FeatureSet(); &amp;nbsp; SelectingFeature.features = myFeatureLayerstewardship.selectedFeatures&amp;nbsp; &amp;nbsp; var features:ArrayCollection = ArrayCollection(myFeatureLayerstewardship.graphicProvider); &amp;nbsp; var featureSet:FeatureSet = new FeatureSet(features.source); &amp;nbsp;&amp;nbsp; &amp;nbsp; Alert.show ("GP RUNNING") &amp;nbsp; var params:Object&amp;nbsp; = { &amp;nbsp;&amp;nbsp; "Selecting_Features": SelectingFeature, &amp;nbsp;&amp;nbsp; "Stewardship": featureSet &amp;nbsp; } &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; gp.execute(params, new AsyncResponder( onResult, onFault )); &amp;nbsp; function onResult(gpResult:ExecuteResult = null, token:Object = null):void &amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show("YAY") &amp;nbsp; } &amp;nbsp; function onFault(info:Object, token:Object = null):void &amp;nbsp; { &amp;nbsp;&amp;nbsp; Alert.show(info.toString()); &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;lt;esri:Geoprocessor id="gp" &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; useAMF="false" &amp;nbsp;&amp;nbsp;&amp;nbsp; outSpatialReference="{myMap.spatialReference}" &amp;nbsp;&amp;nbsp; processSpatialReference="{myMap.spatialReference}" &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://tfsgis-iisd01:6080/arcgis/rest/services/TwoParametersWithSelection2/GPServer/CalcFeaturesStewardshipOneParameterSelection"&amp;nbsp; /&amp;gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 20:21:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessing-parameters-from-a-feature-layer/m-p/167601#M3914</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2014-01-31T20:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Parameters from a feature layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessing-parameters-from-a-feature-layer/m-p/167602#M3915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can anybody help me? I think the problem is with the entire feature layer, this part:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var featureSet:FeatureSet = new FeatureSet(myFeatureLayerstewardship.featureCollection.featureSet.attributes)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As nothing is executed after this line. How can I obtain the features of the feature layer? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private function calculalteplanind():void
&amp;nbsp; 
 {
&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var&amp;nbsp; SelectingFeature:FeatureSet =&amp;nbsp; new FeatureSet(myFeatureLayerstewardship.selectedFeatures);
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var featureSet:FeatureSet = new FeatureSet(myFeatureLayerstewardship.featureCollection.featureSet.attributes);
&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var params:Object = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Selecting_Features": SelectingFeature,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Stewardship": featureSet
&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.submitJob(params, new AsyncResponder( onResult, onFault ));
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; function onResult(gpResult:ExecuteResult = null, token:Object = null):void
&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; function onFault(info:Object, token:Object = null):void
&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; 
 
 }
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:44:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessing-parameters-from-a-feature-layer/m-p/167602#M3915</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2021-12-11T08:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Parameters from a feature layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessing-parameters-from-a-feature-layer/m-p/167603#M3916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got it working:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp; private function calculalteplanid():void &amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp; &amp;nbsp; var&amp;nbsp; SelectingFeature:FeatureSet = new FeatureSet(); &amp;nbsp; SelectingFeature.features = myFeatureLayerstewardship.selectedFeatures&amp;nbsp; SelectingFeature.fields = myFeatureLayerstewardship.layerDetails.fields&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; var features:ArrayCollection = ArrayCollection(myFeatureLayerstewardship.graphicProvider); &amp;nbsp; var featureSet:FeatureSet = new FeatureSet(features.source);&amp;nbsp; // var featureSet:FeatureSet = new FeatureSet(features.toArray())&amp;nbsp;&amp;nbsp; &amp;nbsp; featureSet.fields = myFeatureLayerstewardship.layerDetails.fields&amp;nbsp; &amp;nbsp; var params:Object&amp;nbsp; = { &amp;nbsp;&amp;nbsp; "Selecting_Features": SelectingFeature, &amp;nbsp;&amp;nbsp; "Stewardship": featureSet &amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; var geoprocessTask:Geoprocessor = new Geoprocessor(); &amp;nbsp; geoprocessTask.outSpatialReference = myMap.spatialReference; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; geoprocessTask.url = "http://tfsgis-iisd01:6080/arcgis/rest/services/TwoParametersWithSelection2/GPServer/CalcFeaturesStewardshipOneParameterSelection"; &amp;nbsp;&amp;nbsp; &amp;nbsp; geoprocessTask.submitJob(params, null, null); &amp;nbsp;&amp;nbsp; &amp;nbsp; geoprocessTask.addEventListener(GeoprocessorEvent.JOB_COMPLETE,jobCompleteHandler); &amp;nbsp;&amp;nbsp; &amp;nbsp; geoprocessTask.addEventListener(FaultEvent.FAULT, faultHandler2); &amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp; &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 17:27:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessing-parameters-from-a-feature-layer/m-p/167603#M3916</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2014-02-03T17:27:22Z</dc:date>
    </item>
  </channel>
</rss>

