<?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: Create GPRecorset as an input to GP Task? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/372003#M34504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Ann, &lt;BR /&gt;[INDENT]make sure to use version 3.1 of the JS API as the issue mentioned below was fixed at 3.1 and &lt;STRONG&gt;might &lt;/STRONG&gt;cause some problems for your particular workflow:[/INDENT]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN style="font-style:italic;"&gt;NIM083266: esri.tasks.FeatureSet.toJson() should ignore the featureSet's fields property when it is an empty array. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;John&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks John. Yes, I am using 3.1. This is the function which triggers on the button click:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function findAddress(){
&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 = new esri.tasks.Geoprocessor("http://psc-gis-1/AGServer/rest/services/Tools/GeocodeAddress/GPServer/Geocode%20Address");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.setOutSpatialReference({wkid:4326});
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var attr={"STANDARD":dijit.byId("address"), "ZIPCODE":dijit.byId("zipcode")};
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = new esri.Graphic(null,null,attr,null);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var features=[];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; features.push(graphic);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var featureSet=new esri.tasks.FeatureSet();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; featureSet.features=features;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var params= {"Input_Table":featureSet}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; esri.show(progress);
&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.submitJob(params, completeCallback , statusCallback,function(error){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(error);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; esri.hide(progress);
&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; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am also attaching the fullcode page as a zip file. Can you please take a look and tell me where i am wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ann&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 17:13:25 GMT</pubDate>
    <dc:creator>AnnCrystal</dc:creator>
    <dc:date>2021-12-11T17:13:25Z</dc:date>
    <item>
      <title>Create GPRecorset as an input to GP Task?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/371996#M34497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good morning:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anybody guide me how to create a GPRecorset&amp;nbsp; which pulls Address and Zipcode from two textboxes and pass it to my gp task? I couldn't find any helpful sample to do that. Please find the details of tool parameter below:-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;---------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Parameter: Input_Table&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Data Type: GPRecordSet&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Display Name: Input Table&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;SPAN&gt;Fields:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OBJECTID (Type: esriFieldTypeOID, Alias: OBJECTID)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;STANDARD (Type: esriFieldTypeString, Alias: STANDARD)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ZIPCODE (Type: esriFieldTypeString, Alias: ZIPCODE)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Parameter Type: esriGPParameterTypeRequired&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ann&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 14:16:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/371996#M34497</guid>
      <dc:creator>AnnCrystal</dc:creator>
      <dc:date>2012-08-08T14:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create GPRecorset as an input to GP Task?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/371997#M34498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you only want to geocode a single address it would probably be more appropriate to work with a geocoding service instead and pass the parameters directly (instead of trying to build a recordset for a geoprocessing service which expects an input table and does batch geocoding.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The sample linked below demonstrates how to pass a value from a textbox control to an address locator which takes a single line input.&amp;nbsp; You could modify it to pull values from several textboxes and assign them to an address and zipcode field instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/locator_address.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/locator_address.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a link to the geocoding service being used.&amp;nbsp; I often find it helpful to compare and contrast behavior between geocoding services directly in REST when I see problems in my applications.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://tasks.arcgis.com/ArcGIS/rest/services/WorldLocator/GeocodeServer"&gt;http://tasks.arcgis.com/ArcGIS/rest/services/WorldLocator/GeocodeServer&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 15:08:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/371997#M34498</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2012-08-08T15:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create GPRecorset as an input to GP Task?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/371998#M34499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks John for your reply. The model was doing more than geocoding with some intersect to pull values from other layers and so on. That's why I figured that it could be better if I stuff everything in the model. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since, I couldn't find any js samples for implementing gprecordset, I am still confused. Can you help me with how to do create a GPRecorset which pulls Address and Zipcode from two textboxes and pass it to my gp task ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ann&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 16:18:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/371998#M34499</guid>
      <dc:creator>AnnCrystal</dc:creator>
      <dc:date>2012-08-08T16:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create GPRecorset as an input to GP Task?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/371999#M34500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've never tried creating and populating a RecordSet which includes attribute values only, but you should definitely be able to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/featureset.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/featureset.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is a really stripped down example of passing attributes to a graphic and then storing the graphic in a recordset&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;//populate your attributes using name value pairs
var attr = {"Plant":"Mesa Mint", "Field2:"Value2"};
//graphics doesn't require geometry, symbology or an info window, so you can just pass in attributes
var graphic = new esri.Graphic(null,null,attr,null);

//create an empty array
var features= [];

//push in your attributes
features.push(graphic);

//create your featureSet and push in the feature
var featureSet = new esri.tasks.FeatureSet();
featureSet.features = features;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;as an alternative, since many tasks actually return a recordset, it might also make sense to seperate the geocoding from the rest of your geoprocessing and pass the result from the first rather than creating the recordset from scratch.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;good luck with the project.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:13:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/371999#M34500</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2021-12-11T17:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create GPRecorset as an input to GP Task?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/372000#M34501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&lt;BR /&gt;as an alternative, since many tasks actually return a recordset, it might also make sense to seperate the geocoding from the rest of your geoprocessing and pass the result from the first rather than creating the recordset from scratch.&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks John for that code. Now I know to implement a GPRecordset. It runs-but won't geocode properly. I need to dig deeper for that part. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As you mentioned of using a geocoding service to geocode address and input the result to the model, I am confused about how to access that output recordset. Can you guide me with some sample for that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your support. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ann&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 13:49:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/372000#M34501</guid>
      <dc:creator>AnnCrystal</dc:creator>
      <dc:date>2012-08-09T13:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create GPRecorset as an input to GP Task?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/372001#M34502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ann, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]make sure to use version 3.1 of the JS API as the issue mentioned below was fixed at 3.1 and &lt;/SPAN&gt;&lt;STRONG&gt;might &lt;/STRONG&gt;&lt;SPAN&gt;cause some problems for your particular workflow:[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;NIM083266: esri.tasks.FeatureSet.toJson() should ignore the featureSet's fields property when it is an empty array. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 15:20:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/372001#M34502</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2012-08-09T15:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create GPRecorset as an input to GP Task?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/372002#M34503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the first link that i posted is an excellent example of what is returned by a request to geocode a single address (a recordset of AddressCandidates)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/addresscandidate.htm"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/addresscandidate.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Typically we loop through the results of a query operation or a geocoding operation and add the results to a graphics collection to draw them on the map, but in your case you would want to pass the results to a GP task which expects a recordset input.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added an attachment which shows what you get when you interrogate the candidates variable after setting a breakpoint in the application.&amp;nbsp; If your GP service isn't expecting all those properties, you may have some additional work on your hands to remove them using a technique like delete(candidates&lt;I&gt;.score);&amp;nbsp; Not to mention the fact that the attributes aren't going to be prepopulated with the exact name value pairs you need.&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;all in all, it may not prove to be a shortcut setting thing up this way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 15:54:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/372002#M34503</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2012-08-09T15:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create GPRecorset as an input to GP Task?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/372003#M34504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Ann, &lt;BR /&gt;[INDENT]make sure to use version 3.1 of the JS API as the issue mentioned below was fixed at 3.1 and &lt;STRONG&gt;might &lt;/STRONG&gt;cause some problems for your particular workflow:[/INDENT]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN style="font-style:italic;"&gt;NIM083266: esri.tasks.FeatureSet.toJson() should ignore the featureSet's fields property when it is an empty array. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;John&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks John. Yes, I am using 3.1. This is the function which triggers on the button click:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function findAddress(){
&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 = new esri.tasks.Geoprocessor("http://psc-gis-1/AGServer/rest/services/Tools/GeocodeAddress/GPServer/Geocode%20Address");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.setOutSpatialReference({wkid:4326});
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var attr={"STANDARD":dijit.byId("address"), "ZIPCODE":dijit.byId("zipcode")};
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = new esri.Graphic(null,null,attr,null);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var features=[];
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; features.push(graphic);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var featureSet=new esri.tasks.FeatureSet();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; featureSet.features=features;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var params= {"Input_Table":featureSet}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; esri.show(progress);
&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.submitJob(params, completeCallback , statusCallback,function(error){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(error);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; esri.hide(progress);
&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; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am also attaching the fullcode page as a zip file. Can you please take a look and tell me where i am wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ann&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:13:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/372003#M34504</guid>
      <dc:creator>AnnCrystal</dc:creator>
      <dc:date>2021-12-11T17:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Create GPRecorset as an input to GP Task?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/372004#M34505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i took a look at the information you posted about the GP service above and perhaps you need to be passing an ObjectID as well?&amp;nbsp; if you hit a wall, i highly recommend testing directly in REST until you can figure out exactly what JSON is expected/required to run the service.&amp;nbsp; its a lot easier to reverse engineer in your Javascript application than it is to discover what REST is looking for.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the link below is related to a geocoding task rather than geoprocessing task, but it gives an example of the json for a recordset which has no geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/rest/apiref/geocodeaddresses.html" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/rest/apiref/geocodeaddresses.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 20:06:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/372004#M34505</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2012-08-09T20:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create GPRecorset as an input to GP Task?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/372005#M34506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;i took a look at the information you posted about the GP service above and perhaps you need to be passing an ObjectID as well?&amp;nbsp; if you hit a wall, i highly recommend testing directly in REST until you can figure out exactly what JSON is expected/required to run the service.&amp;nbsp; its a lot easier to reverse engineer in your Javascript application than it is to discover what REST is looking for.&lt;BR /&gt;&lt;BR /&gt;the link below is related to a geocoding task rather than geoprocessing task, but it gives an example of the json for a recordset which has no geometry.&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/rest/apiref/geocodeaddresses.html"&gt;http://resources.arcgis.com/en/help/rest/apiref/geocodeaddresses.html&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks John. I got it resolved. It was a simple mistake which I overlooked in getting values from the textbox. I forgot to add .get("value"). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your support!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 13:15:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-gprecorset-as-an-input-to-gp-task/m-p/372005#M34506</guid>
      <dc:creator>AnnCrystal</dc:creator>
      <dc:date>2012-08-10T13:15:42Z</dc:date>
    </item>
  </channel>
</rss>

