<?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: Value List Filter - Aliases/Text in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/value-list-filter-aliases-text/m-p/1222742#M61207</link>
    <description>&lt;P&gt;If a selection is made from the value list, it will be a parameter for the tool.&amp;nbsp; From the selected value, why not use a dictionary to extract what you want.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2022 10:05:55 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2022-10-18T10:05:55Z</dc:date>
    <item>
      <title>Value List Filter - Aliases/Text</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/value-list-filter-aliases-text/m-p/1222736#M61204</link>
      <description>&lt;P&gt;If I am creating a value list filter in a toolbox tool for the user to select (in this case pointing at urls) is there a way for the text they select from in the tool GUI dropdown to be different from the values in the list that are fed to the script?&lt;BR /&gt;&lt;BR /&gt;I want to give the user a human readable option (which I also need to utilize later in the script for naming outputs), rather than the (meaningless to them) url.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 09:55:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/value-list-filter-aliases-text/m-p/1222736#M61204</guid>
      <dc:creator>RichardHowe</dc:creator>
      <dc:date>2022-10-18T09:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Value List Filter - Aliases/Text</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/value-list-filter-aliases-text/m-p/1222742#M61207</link>
      <description>&lt;P&gt;If a selection is made from the value list, it will be a parameter for the tool.&amp;nbsp; From the selected value, why not use a dictionary to extract what you want.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 10:05:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/value-list-filter-aliases-text/m-p/1222742#M61207</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-10-18T10:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Value List Filter - Aliases/Text</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/value-list-filter-aliases-text/m-p/1223337#M61273</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;&amp;nbsp;Now why didn't that occur to me 🤦🏻‍ Thanks!&lt;BR /&gt;&lt;BR /&gt;Works like a charm. For anybody that happens upon this. A dictionary where each of the keys is one of the value list inputs and each of the values is the url&amp;nbsp; (or whatever you want to script to actually use) is the way to go.&lt;BR /&gt;&lt;BR /&gt;Define the dictionary in the script and use similar code to that below to compare your inputs and generate a new dictionary within the script, which allows you to reference both the key and value furter on in the script.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;URL_dict = {1:'www.esri.com'}
inputs = arcpy.GetParameter(1)
for i in inputs:
    if i in URL_dict:
        tool_dict = {i: URL_dict[i] for i in inputs if site in URL_dict}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 14:21:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/value-list-filter-aliases-text/m-p/1223337#M61273</guid>
      <dc:creator>RichardHowe</dc:creator>
      <dc:date>2022-10-19T14:21:30Z</dc:date>
    </item>
  </channel>
</rss>

