<?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 Populate a widget dropdown list from a GP service input parameter Choice List in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/populate-a-widget-dropdown-list-from-a-gp-service/m-p/83794#M1887</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Geoprocessing Service - GetRouteMeasure. I want to allow the user to select different layers to process in the service via a drop down list on my widget. The drop down list needs to be populated by the Choice List for the input parameter Input_Discipline as shown below e.g. Pipelines, Roads etc. Is there a way to do this?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/194695_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Apr 2016 15:51:49 GMT</pubDate>
    <dc:creator>RebeccaWatson</dc:creator>
    <dc:date>2016-04-13T15:51:49Z</dc:date>
    <item>
      <title>Populate a widget dropdown list from a GP service input parameter Choice List</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/populate-a-widget-dropdown-list-from-a-gp-service/m-p/83794#M1887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Geoprocessing Service - GetRouteMeasure. I want to allow the user to select different layers to process in the service via a drop down list on my widget. The drop down list needs to be populated by the Choice List for the input parameter Input_Discipline as shown below e.g. Pipelines, Roads etc. Is there a way to do this?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/194695_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 15:51:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/populate-a-widget-dropdown-list-from-a-gp-service/m-p/83794#M1887</guid>
      <dc:creator>RebeccaWatson</dc:creator>
      <dc:date>2016-04-13T15:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Populate a widget dropdown list from a GP service input parameter Choice List</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/populate-a-widget-dropdown-list-from-a-gp-service/m-p/83795#M1888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still haven't completely got there, but for anyone interested to access the ChoiceList I have put the following in the initialise function followed by the result handler below.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var taskinfoRequest:JSONTask = new JSONTask();
var urlVars:URLVariables = new URLVariables();
urlVars.f = "json";
taskinfoRequest.url = gp.url;
taskinfoRequest.execute(urlVars, new AsyncResponder(taskinfoRequest_resultHandler, taskinfoRequest_faultHandler));&lt;EM style=": ; color: #009900; font-size: 10pt;"&gt;
&lt;/EM&gt;

private function taskinfoRequest_resultHandler(taskInfo:Object, token:Object=null):void
{
var List:String = JSON.stringify(taskInfo.parameter[2].choiceList);
Alert.show(List);
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:12:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/populate-a-widget-dropdown-list-from-a-gp-service/m-p/83795#M1888</guid>
      <dc:creator>RebeccaWatson</dc:creator>
      <dc:date>2021-12-10T23:12:45Z</dc:date>
    </item>
  </channel>
</rss>

