<?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: Select Multi-Value and combine into one field in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/select-multi-value-and-combine-into-one-field/m-p/679467#M22553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I am reading too much into this. You can create hard coded pick lists of strings with parameter validation in the model properties for parameters River, Ditch, Flood type&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/modelbuilder/creating-tool-with-modelbuilder-tutorial.htm#ESRI_SECTION1_0DDEB37A81544CD980B4407E4E86EE0C" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/modelbuilder/creating-tool-with-modelbuilder-tutorial.htm#ESRI_SECTION1_0DDEB37A81544CD980B4407E4E86EE0C" rel="nofollow noopener noreferrer" target="_blank"&gt;Tutorial: Creating tools with ModelBuilder: Setting Filters on Model Parameters—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can use the Calculate Value tool with Python expressions like these, and then use the Calculate Value output model element in a Calculate Field string down the chain. (Tip: Use Precondition to make sure the Calculate Value tool runs first.)&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;"{}, {}, {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"%River%"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"%Ditch%"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"%Flood type%"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;", "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"%River%"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"%Ditch%"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"%Flood type%"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# same result&lt;/SPAN&gt;
r&lt;SPAN class="string token"&gt;"%River%"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;", "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&amp;nbsp; r&lt;SPAN class="string token"&gt;"%Ditch%"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;", "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"%Flood type%"&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# same but ugly!&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 04:37:21 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2021-12-12T04:37:21Z</dc:date>
    <item>
      <title>Select Multi-Value and combine into one field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-multi-value-and-combine-into-one-field/m-p/679465#M22551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running into an issue with my model that I am hoping someone can help me out with! Essentially I am using this model to update Flood Zones when LOMC's are filed with FEMA. My issue here is that there will be times where there will be multiple flood sources or the parcel crosses multiple FIRM Panels. I am looking for a way for those field to be pick lists and allow for a multi-value input and have it combine into a single string. Below is an example of what I mean&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parcel A has a flood source of River X, Y Ditch, and Sheet Flooding. I want to have a pick list showing:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;River X&lt;/LI&gt;&lt;LI&gt;Y Ditch&lt;/LI&gt;&lt;LI&gt;Shallow Flooding&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;etc&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The user selects the necessary Flood Sources and then when the model runs it puts it into the field as:&lt;/P&gt;&lt;P&gt;River X; Y Ditch; Shallow Flooding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions? I have attached a screenshot of the model if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 23:27:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-multi-value-and-combine-into-one-field/m-p/679465#M22551</guid>
      <dc:creator>Greg_Mattis</dc:creator>
      <dc:date>2017-05-31T23:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select Multi-Value and combine into one field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-multi-value-and-combine-into-one-field/m-p/679466#M22552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to get really fancy with parameter validation you want to make a python script (.py or .pyt) with validation code and call your model from that script (ImportToolbox, call the model with arcpy). If you do this there are few limitations on how you set up your pick lists, you can even open datasets to dynamically create your picklists from the data if you want.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/customizing-script-tool-behavior.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/customizing-script-tool-behavior.htm"&gt;Customizing script tool behavior—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Model Builder is pretty great but parameter validation is one thing that can force you to have to do at least part of your tool in Python.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 17:01:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-multi-value-and-combine-into-one-field/m-p/679466#M22552</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-06-02T17:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Select Multi-Value and combine into one field</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-multi-value-and-combine-into-one-field/m-p/679467#M22553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I am reading too much into this. You can create hard coded pick lists of strings with parameter validation in the model properties for parameters River, Ditch, Flood type&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/modelbuilder/creating-tool-with-modelbuilder-tutorial.htm#ESRI_SECTION1_0DDEB37A81544CD980B4407E4E86EE0C" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/modelbuilder/creating-tool-with-modelbuilder-tutorial.htm#ESRI_SECTION1_0DDEB37A81544CD980B4407E4E86EE0C" rel="nofollow noopener noreferrer" target="_blank"&gt;Tutorial: Creating tools with ModelBuilder: Setting Filters on Model Parameters—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can use the Calculate Value tool with Python expressions like these, and then use the Calculate Value output model element in a Calculate Field string down the chain. (Tip: Use Precondition to make sure the Calculate Value tool runs first.)&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;"{}, {}, {}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"%River%"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"%Ditch%"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"%Flood type%"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;", "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"%River%"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"%Ditch%"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"%Flood type%"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# same result&lt;/SPAN&gt;
r&lt;SPAN class="string token"&gt;"%River%"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;", "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&amp;nbsp; r&lt;SPAN class="string token"&gt;"%Ditch%"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;", "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"%Flood type%"&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# same but ugly!&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:37:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-multi-value-and-combine-into-one-field/m-p/679467#M22553</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-12T04:37:21Z</dc:date>
    </item>
  </channel>
</rss>

