<?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: How to pass a FeatureLayer as an input parameter to GP service using JSAPI in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-pass-a-featurelayer-as-an-input-parameter/m-p/126739#M11738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/41606"&gt;Evelyn Hernandez&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer, I have seen all of these examples and they are using simple event feature, it is easy to pass such features to the GP service but I have created a CSV layer and I want to pass it as featureSet parameter or if there is any way that I can upload the CSV file directly to the geoprocessing service it will help a lot, note that I have tried uncountable ways to upload or request the file but all ended with failure. I am not sure what is blocking my requests.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jul 2017 06:32:49 GMT</pubDate>
    <dc:creator>omarelhadi2</dc:creator>
    <dc:date>2017-07-05T06:32:49Z</dc:date>
    <item>
      <title>How to pass a FeatureLayer as an input parameter to GP service using JSAPI</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-pass-a-featurelayer-as-an-input-parameter/m-p/126737#M11736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose that I have a simple buffer GP service and a several point featurelayers; how can I pass the chosen layer as an input parameter?&lt;BR /&gt;I have tried this&lt;BR /&gt;inputFeatures.features = map.getLayer("layer1").graphics&lt;/P&gt;&lt;P&gt;inputFeatures.fields = map.getLayer("layer1").fields&lt;BR /&gt;and many other ways but with no luck.&lt;BR /&gt;I would appreciate it if the solution was simple because I am not a professional&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Jul 2017 05:56:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-pass-a-featurelayer-as-an-input-parameter/m-p/126737#M11736</guid>
      <dc:creator>omarelhadi2</dc:creator>
      <dc:date>2017-07-02T05:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a FeatureLayer as an input parameter to GP service using JSAPI</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-pass-a-featurelayer-as-an-input-parameter/m-p/126738#M11737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this can help u.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jssamples/gp_servicearea.html" title="https://developers.arcgis.com/javascript/3/jssamples/gp_servicearea.html"&gt;Geoprocessing - Service area task | ArcGIS API for JavaScript 3.20&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jul 2017 21:14:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-pass-a-featurelayer-as-an-input-parameter/m-p/126738#M11737</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2017-07-04T21:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a FeatureLayer as an input parameter to GP service using JSAPI</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-pass-a-featurelayer-as-an-input-parameter/m-p/126739#M11738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/41606"&gt;Evelyn Hernandez&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer, I have seen all of these examples and they are using simple event feature, it is easy to pass such features to the GP service but I have created a CSV layer and I want to pass it as featureSet parameter or if there is any way that I can upload the CSV file directly to the geoprocessing service it will help a lot, note that I have tried uncountable ways to upload or request the file but all ended with failure. I am not sure what is blocking my requests.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 06:32:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-pass-a-featurelayer-as-an-input-parameter/m-p/126739#M11738</guid>
      <dc:creator>omarelhadi2</dc:creator>
      <dc:date>2017-07-05T06:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a FeatureLayer as an input parameter to GP service using JSAPI</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-pass-a-featurelayer-as-an-input-parameter/m-p/126740#M11739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A sort sample code is here&lt;/P&gt;&lt;P&gt;....................................&lt;/P&gt;&lt;P&gt;var featuresEN = []; &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;//-------------create an array&lt;BR /&gt; featuresEN.push(graphicEN); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//-------------push here the input graphics&lt;BR /&gt; var featureSetEN = new FeatureSet(); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//-------------create a feature set&lt;BR /&gt; featureSetEN.features = featuresEN; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //--------------set the feature set feature equal with the graphic array&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var params = {&lt;BR /&gt; "Input_Incident_Point": featureSetST,&lt;BR /&gt; "Input_Rescue_Mean_Point": featureSetEN, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//---------------set the feature set on the input parameters&amp;nbsp;&lt;BR /&gt; "Avoid_Depths_Below ": bathmeters&lt;BR /&gt; };&lt;BR /&gt; gp.execute(params, drawShipPath, errorEX);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....................................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 07:16:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-pass-a-featurelayer-as-an-input-parameter/m-p/126740#M11739</guid>
      <dc:creator>PanagiotisPapadopoulos</dc:creator>
      <dc:date>2017-07-05T07:16:02Z</dc:date>
    </item>
  </channel>
</rss>

