<?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: Passing a FeatureSet with Attributes to a Geoprocessor in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/passing-a-featureset-with-attributes-to-a/m-p/595274#M13311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I figured out what the problem was.&amp;nbsp; The input featureclass was expecting an FID (instead of OBJECTID) for the OID field.&amp;nbsp; The featureclass I was sending didn't have this.&amp;nbsp; The reason the FID entered the picture in the first place was I exported that layer using ArcMap and FID was introduced that that point.&amp;nbsp; I didn't even notice it.&amp;nbsp; So when I created the GP model and pointed to that featureclass (exported with FID) for the schema for the input parameter, FID was expected.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 May 2011 17:30:21 GMT</pubDate>
    <dc:creator>DeonaEvans</dc:creator>
    <dc:date>2011-05-18T17:30:21Z</dc:date>
    <item>
      <title>Passing a FeatureSet with Attributes to a Geoprocessor</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/passing-a-featureset-with-attributes-to-a/m-p/595272#M13309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How do you set up the FeatureSet to pass as an input parameter to a geoprocessing function and pass the attributes as well?&amp;nbsp; Given a graphic:Graphic, I need to pass it as an input.&amp;nbsp; The model for the geoprocessing tool was built with the same feature class (schema) as the graphic I'm trying to input.&amp;nbsp; I get a "Failed" on the status messages when I run the geoprocessor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var featureSet:FeatureSet = new FeatureSet();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var features:Array = new Array();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var geom:Geometry = graphic.geometry;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var attrs:Object = graphic.attributes;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var obj:Object = {geometry:geom, attributes:attrs};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;features.push(obj);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;featureSet.features = features;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 21:19:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/passing-a-featureset-with-attributes-to-a/m-p/595272#M13309</guid>
      <dc:creator>DeonaEvans</dc:creator>
      <dc:date>2011-05-17T21:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a FeatureSet with Attributes to a Geoprocessor</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/passing-a-featureset-with-attributes-to-a/m-p/595273#M13310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried this another way.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var featureSet:FeatureSet = new FeatureSet();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;featureSet.features = new Array();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;featureSet.features.push(graphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;featureSet.spatialReference = map.extent.spatialReference;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This didn't work either. My gp tool only has one input parameter as show here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]Parameter: Feature_Class&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Data Type: GPFeatureRecordSetLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Display Name: Feature Class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Direction: esriGPParameterDirectionInput&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Default Value: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Geometry Type: esriGeometryPolygon&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Spatial Reference: 4326&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fields: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FID (Type: esriFieldTypeOID, Alias: FID) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shape (Type: esriFieldTypeGeometry, Alias: Shape) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OBJECTID (Type: esriFieldTypeInteger, Alias: OBJECTID) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shape_Leng (Type: esriFieldTypeDouble, Alias: Shape_Leng) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NAME (Type: esriFieldTypeString, Alias: NAME) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MAX_RANGE (Type: esriFieldTypeString, Alias: MAX_RANGE) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MIN_RANGE (Type: esriFieldTypeString, Alias: MIN_RANGE) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WIDTH (Type: esriFieldTypeString, Alias: WIDTH) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AZIMUTH (Type: esriFieldTypeString, Alias: AZIMUTH) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LAT (Type: esriFieldTypeString, Alias: LAT) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LON (Type: esriFieldTypeString, Alias: LON) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CLASS (Type: esriFieldTypeString, Alias: CLASS) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;COMMENTS (Type: esriFieldTypeString, Alias: COMMENTS) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BUFF_GEOM (Type: esriFieldTypeString, Alias: BUFF_GEOM) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BUFF_LYR (Type: esriFieldTypeString, Alias: BUFF_LYR) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BUFF_TYPE (Type: esriFieldTypeString, Alias: BUFF_TYPE) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CLIP_GEOM (Type: esriFieldTypeString, Alias: CLIP_GEOM) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CLIP_LYR (Type: esriFieldTypeString, Alias: CLIP_LYR) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CLIP_TYPE (Type: esriFieldTypeString, Alias: CLIP_TYPE) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MERGED (Type: esriFieldTypeInteger, Alias: MERGED) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SHOW_MIN (Type: esriFieldTypeInteger, Alias: SHOW_MIN) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;THRT_TYPE (Type: esriFieldTypeString, Alias: THRT_TYPE) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;THRT_ID (Type: esriFieldTypeInteger, Alias: THRT_ID) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TRIGRAPH (Type: esriFieldTypeString, Alias: TRIGRAPH) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;COUNTRY (Type: esriFieldTypeString, Alias: COUNTRY) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SYSTEM_ID (Type: esriFieldTypeString, Alias: SYSTEM_ID) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SYSTEM (Type: esriFieldTypeString, Alias: SYSTEM) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FEAT_NAME (Type: esriFieldTypeString, Alias: FEAT_NAME) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shape_Length (Type: esriFieldTypeDouble, Alias: Shape_Length) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shape_Area (Type: esriFieldTypeDouble, Alias: Shape_Area) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Parameter Type: esriGPParameterTypeRequired[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I don't send the attributes with the graphic, then it works. Otherwise it does not. What am I doing wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 15:52:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/passing-a-featureset-with-attributes-to-a/m-p/595273#M13310</guid>
      <dc:creator>DeonaEvans</dc:creator>
      <dc:date>2011-05-18T15:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a FeatureSet with Attributes to a Geoprocessor</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/passing-a-featureset-with-attributes-to-a/m-p/595274#M13311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I figured out what the problem was.&amp;nbsp; The input featureclass was expecting an FID (instead of OBJECTID) for the OID field.&amp;nbsp; The featureclass I was sending didn't have this.&amp;nbsp; The reason the FID entered the picture in the first place was I exported that layer using ArcMap and FID was introduced that that point.&amp;nbsp; I didn't even notice it.&amp;nbsp; So when I created the GP model and pointed to that featureclass (exported with FID) for the schema for the input parameter, FID was expected.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 17:30:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/passing-a-featureset-with-attributes-to-a/m-p/595274#M13311</guid>
      <dc:creator>DeonaEvans</dc:creator>
      <dc:date>2011-05-18T17:30:21Z</dc:date>
    </item>
  </channel>
</rss>

