<?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 Build A Web Tool w/ Dependent Field Param That Pulls From Web Map Layer Selection in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/how-to-build-a-web-tool-w-dependent-field-param/m-p/1591448#M27533</link>
    <description>&lt;P&gt;By reading the dang documentation, that's how you do it! I reread the &lt;A href="https://pro.arcgis.com/en/pro-app/3.1/help/analysis/geoprocessing/share-analysis/inputs-and-outputs-for-geoprocessing-services.htm" target="_self"&gt;input/output parameters&lt;/A&gt; documentation, and it mentions to set both your Feature Layer parameter and Field parameter (which should have a dependency on that Feature Layer) to &lt;EM&gt;user defined value&lt;/EM&gt;. This avoids hard-coding, and waits for a map layer to be selected before pulling field info.&lt;/P&gt;&lt;P&gt;A multi-value Field type parameter is not supported in 10.9.1, so you can't set up a tool to enable you to choose multiple from a dropdown. It is supported in 11.x. I published the same tool to my 11.3 portal and was able to achieve what I'd originally asked about.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Mar 2025 22:06:10 GMT</pubDate>
    <dc:creator>__JackCharde__</dc:creator>
    <dc:date>2025-03-03T22:06:10Z</dc:date>
    <item>
      <title>How To Build A Web Tool w/ Dependent Field Param That Pulls From Web Map Layer Selection</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-build-a-web-tool-w-dependent-field-param/m-p/1591091#M27530</link>
      <description>&lt;P&gt;Hey Everyone,&lt;/P&gt;&lt;P&gt;I published a web tool (based on a python script tool; .atbx, not .pyt) that contains a &lt;EM&gt;Feature Layer&lt;/EM&gt; parameter with a default value, set as&amp;nbsp;&lt;EM&gt;constant&lt;/EM&gt; in the publishing pane (a feature service URL), and a multi-value &lt;EM&gt;Field&lt;/EM&gt; parameter that is dependent on the Feature Layer parameter. This provides a dropdown for users to select fields they want summarized when the tool runs. The problem is that when publishing, this Field parameter is set as a&amp;nbsp;&lt;EM&gt;choice list&lt;/EM&gt;, and the resulting web tool hard-codes those field options into the tool.&lt;/P&gt;&lt;P&gt;My question is, is there a way to publish a tool that does not hard-code the choices and is instead reliant on what layer in the web map a user chooses (if I change how the aforementioned Feature Layer parameter is published)? This is currently being published to Enterprise 10.9.1, so I assume there are likely limitations alleviated in 11.x. I know the Summarize Within Analysis widget tool in Experience Builder allows for this, but that is only in AGOL or 11.x+, so I may just not be able to do it right now.&lt;/P&gt;&lt;P&gt;I can change the Feature Layer parameter to a choice-list as well, but it will just hard-code the layers from the active ArcGIS Pro map. Below is an image of the tools parameters tab showing my current setup.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="__JackCharde___0-1740953886340.png" style="width: 703px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/126737iFA41C74FC826E7A5/image-dimensions/703x130?v=v2" width="703" height="130" role="button" title="__JackCharde___0-1740953886340.png" alt="__JackCharde___0-1740953886340.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Jack C.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Mar 2025 22:26:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-build-a-web-tool-w-dependent-field-param/m-p/1591091#M27530</guid>
      <dc:creator>__JackCharde__</dc:creator>
      <dc:date>2025-03-02T22:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: How To Build A Web Tool w/ Dependent Field Param That Pulls From Web Map Layer Selection</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-build-a-web-tool-w-dependent-field-param/m-p/1591448#M27533</link>
      <description>&lt;P&gt;By reading the dang documentation, that's how you do it! I reread the &lt;A href="https://pro.arcgis.com/en/pro-app/3.1/help/analysis/geoprocessing/share-analysis/inputs-and-outputs-for-geoprocessing-services.htm" target="_self"&gt;input/output parameters&lt;/A&gt; documentation, and it mentions to set both your Feature Layer parameter and Field parameter (which should have a dependency on that Feature Layer) to &lt;EM&gt;user defined value&lt;/EM&gt;. This avoids hard-coding, and waits for a map layer to be selected before pulling field info.&lt;/P&gt;&lt;P&gt;A multi-value Field type parameter is not supported in 10.9.1, so you can't set up a tool to enable you to choose multiple from a dropdown. It is supported in 11.x. I published the same tool to my 11.3 portal and was able to achieve what I'd originally asked about.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 22:06:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-build-a-web-tool-w-dependent-field-param/m-p/1591448#M27533</guid>
      <dc:creator>__JackCharde__</dc:creator>
      <dc:date>2025-03-03T22:06:10Z</dc:date>
    </item>
  </channel>
</rss>

