<?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: Use Parameter of Choice List for GP Service in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149857#M3487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Or perhaps this question is better:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm still not sure about the answer of my last question, but i guess it's a problem with Client and Server site, that the GP needs a file which is provided on the server and not in the local file system, right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But i have another GP Service which saves the Shapefile in my Scratworkspace and i want to use this Shapefile in my GP Service ... I have no clue how to manage this ...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jun 2011 11:09:36 GMT</pubDate>
    <dc:creator>Stefan_Arndt</dc:creator>
    <dc:date>2011-06-24T11:09:36Z</dc:date>
    <item>
      <title>Use Parameter of Choice List for GP Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149847#M3477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i'm trying to implement a flex web application, which uses a geoprocessing service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This GP Service needs a FeatureLayer/FeatureDataSet as input, before it can run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried different ways to deliver the parameter, but it doesn't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached you'll find my code. I hope that somebody can find the mistake.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Probably the mistake is in this line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var params:Object = "http://wk2658/ArcGIS/rest/services/scotturb/FeatureServer/0":featureSet;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to use a file out of the local file system of the webserver?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally i have uploaded 4 Layers in the MapDocument together with the Toolbox/GP Service, so as you can see in the screenshot i have a choice list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can i choose one layer of the choice list and forward this to the GP Service ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And most important question: What i am doing wrong? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stefan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:06:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149847#M3477</guid>
      <dc:creator>Stefan_Arndt</dc:creator>
      <dc:date>2021-12-12T16:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Use Parameter of Choice List for GP Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149848#M3478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: ibespalov&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;screen1.png contains all information you need to submit jobs&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;your parameter name is "Feature_Layer" and its value is one of presented in list of choice and its type is GPString&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var paramName:String = "Feature_Layer";
var paramValue:String = "scotturb_3lines_03052011";

var params:Object = { paramName: paramValue };&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;var params:Object = "&lt;A href="http://wk2658/ArcGIS/rest/services/scotturb/FeatureServer/0" target="_blank"&gt;http://wk2658/ArcGIS/rest/services/scotturb/FeatureServer/0&lt;/A&gt;":featureSet;&lt;BR /&gt;&lt;BR /&gt;:confused:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Who teached you to do it so?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you now anything about &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcGIS API for Flex Samples&lt;/A&gt;&lt;SPAN&gt; (6 GP tasks samples)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can find very helpful information about &lt;/SPAN&gt;&lt;A href="http://sampleserver1-350487546.us-east-1.elb.amazonaws.com/ArcGIS/SDK/REST/index.html?gpserver.html" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcGIS Server REST API&lt;/A&gt;&lt;SPAN&gt; (with samples) &lt;/SPAN&gt;&lt;A href="http://sampleserver1-350487546.us-east-1.elb.amazonaws.com/ArcGIS/SDK/REST/index.html?gpserver.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://yourservername/ArcGIS/SDK/REST/index.html?gpserver.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:05:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149848#M3478</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T08:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use Parameter of Choice List for GP Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149849#M3479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Ivan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you a lot for your answer!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nobody told me to do it like that, i tried to learn it for myself the last days and weeks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I had a look at all the samples, watched some Tutorial-videos and read the affected API pages, but you saw the result &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Even if it not looks like this, i spent already 1-2 Weeks on this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So i was very happy to read your post and excited to try it out, but sadly it's still not working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When i just enter the ValueName in the submitJob REST Service Directory (see 19.png) it works perfectly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when i click on the button in my widget, nothing happens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I Added an Example-Alert to see if the function is called and the end of it is reached, this was successfull.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is the order of the code correct? "fx:Script", then "fx:Declarations" and then the viewer:WidgetTemplate ? ( Full code attached: schematics_widget.txt).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You told me that the type is "GPString" like i can see it in the screen1.png, but you wrote just "var paramName:String" ? Why? After i tried to change String in GPString there was an error, so i think your code was correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 10:25:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149849#M3479</guid>
      <dc:creator>Stefan_Arndt</dc:creator>
      <dc:date>2011-05-27T10:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Use Parameter of Choice List for GP Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149850#M3480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: ibespalov&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
...
private function gp_jobCompleteHandler(event:GeoprocessorEvent):void
{
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; // your output parameter name find in screen1.png !!!NOT Display name!!!
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gp.getResultData(gp.submitJobLastResult.jobId, "output_diagram_name");
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do something
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}

private function gp_getResultDataCompleteHandler(event:GeoprocessorEvent):void
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (event.parameterValue)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // get your output result here
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataUrl = String(event.parameterValue.value.url);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!dataUrl)
&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; Alert.show(emptyResultsLabel, wTemplate.widgetTitle);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;
&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; Alert.show(saveDataFileLabel, wTemplate.widgetTitle, Alert.YES | Alert.NO, null, alert_ClickHandler);
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alert.show(emptyResultsLabel, wTemplate.widgetTitle);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}

private function gp_faultHandler(event:FaultEvent):void
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; // do something
}

private function alert_ClickHandler(event:CloseEvent):void
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (event.detail == Alert.YES)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // do something
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
]]&amp;gt;
&amp;lt;/fx:Script&amp;gt;
 
&amp;lt;fx:Declarations&amp;gt;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Geoprocessor id="gp"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://wk2658/ArcGIS/rest/services/GP/GP/GPServer/server_schematic_model"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; showBusyCursor="true" 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fault="gp_faultHandler(event)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; getResultDataComplete="gp_getResultDataCompleteHandler(event)"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; jobComplete="gp_jobCompleteHandler(event)"/&amp;gt;
&amp;lt;/fx:Declarations&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is not my source code. This is part of DataExtractWidget.mxml source code in last Flex Viewer changed by me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some times ago I did small project (used GP service) based on flex viewer code - it works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You must read more ESRI help and explore API reference to implement your Geoprocessor result handler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try to use Fiddler (for IE) or Firebug (for FF) to see actions on the background of you application (sometime it helps).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:05:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149850#M3480</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T08:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Use Parameter of Choice List for GP Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149851#M3481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Ivan!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think most of the code is very usefull for a real application, but in my case i would like to keep it as simple as possible. Just submit the Job in the most simple Code as possible. But of course i'm very thankful of this and i tried it and edited it but the error was the same as shown below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the Hint with Firebug was a very good idea!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I found out that the outgoing request looks like&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;http://wk2658/ArcGIS/rest/services/GP/GP/GPServer/server_schematic_model/submitJob?paramName=scotturb%5Flines%5Fida%5Fhalf%5Ftest&amp;amp;f=json&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;So i can see that the Parameters are correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the Response of the server is not correct. It says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;{"error":{"code":500,"message":"GPTask 'server_schematic_model' does not exist or is inaccessible.","details":[]}}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try to figure out why.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If somebody has an idea in the meanwhile: I'm amenable to advices&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 12:43:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149851#M3481</guid>
      <dc:creator>Stefan_Arndt</dc:creator>
      <dc:date>2011-05-27T12:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Use Parameter of Choice List for GP Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149852#M3482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: ibespalov&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, params are not correct!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;.../wk2658/ArcGIS/rest/services/GP/GP/GPServer/server_schematic_model/submitJob?paramName=scotturb%5Flines%5Fida%5Fhalf%5Ftest&amp;amp;f=json&lt;BR /&gt;&lt;BR /&gt;must be something like:&lt;BR /&gt;&lt;BR /&gt;.../wk2658/ArcGIS/rest/services/GP/GP/GPServer/server_schematic_model/submitJob?Feature_Layer=scotturb%5Flines%5Fida%5Fhalf%5Ftest&amp;amp;f=json&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 13:27:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149852#M3482</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-05-27T13:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Use Parameter of Choice List for GP Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149853#M3483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;YES! You're right!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When i enter this link in my Browser it works!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very very much for you help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 13:34:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149853#M3483</guid>
      <dc:creator>Stefan_Arndt</dc:creator>
      <dc:date>2011-05-27T13:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Use Parameter of Choice List for GP Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149854#M3484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: ibespalov&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Very good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note, what this url:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;.../wk2658/ArcGIS/rest/services/GP/GP/GPServer/server_schematic_model/submitJob?Feature_Layer=scotturb%5Flines%5Fida%5Fhalf%5Ftest&amp;amp;f=json&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;must be the same with url you submit job in 19.png (your earler posted image)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 13:46:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149854#M3484</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-05-27T13:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Use Parameter of Choice List for GP Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149855#M3485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;But very strange that the URL was not created correctly. Difficult to find this error. Because the code looks correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 var paramName:String = "Feature_Layer";
 var paramValue:String = "scotturb_lines_ida_half_test";
 var params:Object = { paramName : paramValue };
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when i manually replace the parameters it works:&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; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var params:Object = { "Feature_Layer" : "scotturb_lines_ida_half_test" }; 
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise the first Variable in the braces {} is not&amp;nbsp; replaced by the Variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the reason why there was "paramName" instead of "Feature_Layer" in the Request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When i switch paramName and paramValue the "FeatureLayer" is replaced corretly, but paramValue not any more.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Strange, but i think this is not a big problem any more.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:05:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149855#M3485</guid>
      <dc:creator>Stefan_Arndt</dc:creator>
      <dc:date>2021-12-11T08:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Use Parameter of Choice List for GP Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149856#M3486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;just in addition to my last problem a little question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've already shown you my function, which uses a parameter out of the coice list:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private function generateDiagram():void
&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var paramName:String = "Feature_Layer";
&amp;nbsp;&amp;nbsp;&amp;nbsp; var paramValue:String = "scotturb_lines_ida_half_test";&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var params:Object = { paramName : paramValue };&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; gp2.submitJob(params);
&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And it works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when i want to use a shapefile, which is not in the choice list (screen1.png from Ivan), for example with a full absolute path like "C:\arcgisserver\....\testfile" it doesnt work. But i want to learn more about geoprocessing services and would like to know why this doesn't work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can somebody explain it to me? What should i change (or do differently) to make it working?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why can't he access the file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error message when i want to use it looks like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;"description":"The value does not exist.
ERROR 000732: Input locations: Dataset C:/arcgisserver/arcgisinput/testfile does not exist or is not supported"&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:05:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149856#M3486</guid>
      <dc:creator>Stefan_Arndt</dc:creator>
      <dc:date>2021-12-11T08:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Use Parameter of Choice List for GP Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149857#M3487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Or perhaps this question is better:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm still not sure about the answer of my last question, but i guess it's a problem with Client and Server site, that the GP needs a file which is provided on the server and not in the local file system, right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But i have another GP Service which saves the Shapefile in my Scratworkspace and i want to use this Shapefile in my GP Service ... I have no clue how to manage this ...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 11:09:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/use-parameter-of-choice-list-for-gp-service/m-p/149857#M3487</guid>
      <dc:creator>Stefan_Arndt</dc:creator>
      <dc:date>2011-06-24T11:09:36Z</dc:date>
    </item>
  </channel>
</rss>

