<?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 can I include 'All' in a Variable Picklist in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813057#M1103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are manually supplying the values for the pick list using the parameter properties, then you can add a value such as "ALL", for example:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/469756_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then if the user chooses that option, use a branch of the model to execute a SQL statement that selects all records. For example, this expression would select all sites:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/469775_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can test whether the user chooses that option with a logical operator, which I see you already have in your model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are familiar with Python, you might consider that as another option. Typically I find Python easier to work with when a model starts using lots of conditional logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Oct 2019 20:21:12 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2019-10-29T20:21:12Z</dc:date>
    <item>
      <title>How can I include 'All' in a Variable Picklist</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813053#M1099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am building a tool using model builder in ArcGIS pro. I will like the user to be to select all in my variable pick-list;for instance i want the user to select all location (polygon).&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/469602_tool.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2019 19:10:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813053#M1099</guid>
      <dc:creator>AyokunleAdebisi</dc:creator>
      <dc:date>2019-10-28T19:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I include 'All' in a Variable Picklist</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813054#M1100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please I need a urgent response or the question is not clear enough? I can explain further.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 13:23:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813054#M1100</guid>
      <dc:creator>AyokunleAdebisi</dc:creator>
      <dc:date>2019-10-29T13:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I include 'All' in a Variable Picklist</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813055#M1101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A little more detail about what your model is doing could be helpful, but one way you could go about this is using a "Logical" operator:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/469636_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to test the input value. If the value equals&amp;nbsp;a value of your choice, representing 'all' (for example "All Sites"), then that branch would use a selection expression that selects all sites.&amp;nbsp; If not, the expression will select whatever site is selected from the pick list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a very quick example:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/469740_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then the expression would use the variable if the user selected something other than the "all" value, for example:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/469741_pastedImage_5.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 17:27:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813055#M1101</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-10-29T17:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I include 'All' in a Variable Picklist</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813056#M1102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply,my model wants to know the population of birds in a single location which I have done, then I want to further let user to know the number of birds in all location,&amp;nbsp; for instance what is the population of a bird in all location. Now in the dropdown list (sitename), where you have single location, I want to include picklist "ALL" to select all location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/469737_pastedImage_1.png" /&gt;&lt;IMG src="https://community.esri.com/legacyfs/online/469738_tool.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 17:41:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813056#M1102</guid>
      <dc:creator>AyokunleAdebisi</dc:creator>
      <dc:date>2019-10-29T17:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I include 'All' in a Variable Picklist</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813057#M1103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are manually supplying the values for the pick list using the parameter properties, then you can add a value such as "ALL", for example:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/469756_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then if the user chooses that option, use a branch of the model to execute a SQL statement that selects all records. For example, this expression would select all sites:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/469775_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can test whether the user chooses that option with a logical operator, which I see you already have in your model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are familiar with Python, you might consider that as another option. Typically I find Python easier to work with when a model starts using lots of conditional logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 20:21:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813057#M1103</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-10-29T20:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I include 'All' in a Variable Picklist</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813058#M1104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response I will test this, And get back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 21:01:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813058#M1104</guid>
      <dc:creator>AyokunleAdebisi</dc:creator>
      <dc:date>2019-10-29T21:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I include 'All' in a Variable Picklist</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813059#M1105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry it did not work..I guess I don't understand what you explained. Can you explain further.. For instance I am building a tools that will select all polygon using modelbuilder..How can I include ' all' option for user. for example, i am building this from the scratch:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/469806_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 23:10:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813059#M1105</guid>
      <dc:creator>AyokunleAdebisi</dc:creator>
      <dc:date>2019-10-29T23:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I include 'All' in a Variable Picklist</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813060#M1106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, here is another example that I think is a bit closer to your situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This model simply selects a country from a polygon layer and calculates summary statistics using the selection:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/469851_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added a "Country" variable and made it a model parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key thing is then to go into the model properties (right-click the model in the toolbox and click Properties) and enter the values that you want to appear in the pick list. I entered in some country names as well as "ALL COUNTRIES":&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/469852_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;This creates the pick list when the tool is opened in the Geoprocessing pane:&lt;BR /&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/469859_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the model, we can then test whether the user has selected ALL COUNTRIES from the pick list:&lt;BR /&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/469860_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If True, that means that the user selected "ALL COUNTRIES", and we use the Select by Attribute tool to select all polygons:&lt;BR /&gt;&lt;IMG class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/469861_pastedImage_5.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If False, that means that they selected a country name, and then we use the name of the country in the SQL expression, using the Country variable:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-6 jive-image" src="https://community.esri.com/legacyfs/online/469865_pastedImage_6.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Preconditions are used in the model to determine which Select by Attribute tool gets executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached the example toolbox here, hopefully it will be useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2019 16:38:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813060#M1106</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-10-30T16:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I include 'All' in a Variable Picklist</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813061#M1107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help. One more question..what is the "Values" doing there...is it a shapefile of&amp;nbsp;country aside the country parameter or what,&amp;nbsp;and is it also included in condition if value.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="358" src="https://community.esri.com/legacyfs/online/470985_pastedImage_1.png" width="776" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2019 22:36:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813061#M1107</guid>
      <dc:creator>AyokunleAdebisi</dc:creator>
      <dc:date>2019-10-30T22:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I include 'All' in a Variable Picklist</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813062#M1108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The "Values" variable contains the value to test against to see if the&amp;nbsp;condition is&amp;nbsp;true or false. You can test against multiple values, but in this case, we just care if the user chose the "ALL COUNTRIES" value or not.&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;So the string that you type in to this variable should be exactly the same as the one you type in to the parameter properties when you are specifying the values that will appear in the drop-down. You can type your value (for example, "ALL COUNTRIES") directly into the "If Value Is"&amp;nbsp;tool, and it will create this "Values" variable for you (at least it did in my case).&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/471079_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2019 15:35:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813062#M1108</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-10-31T15:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I include 'All' in a Variable Picklist</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813063#M1109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="527" src="https://community.esri.com/legacyfs/online/471197_pastedImage_1.png" width="634" /&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/471198_pastedImage_2.png" /&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/471199_pastedImage_3.png" /&gt;Hello Andrew, your tips have helped a lot but this is the problem now, whenever the location is empty it works but whenever i input "All locations" it gives warning&amp;nbsp; - -'The process did not execute because the precondition is false', Is there anything wrong with my model or logic. Please help me to check it up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Nov 2019 12:55:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813063#M1109</guid>
      <dc:creator>AyokunleAdebisi</dc:creator>
      <dc:date>2019-11-01T12:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I include 'All' in a Variable Picklist</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813064#M1110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This warning does not necessarily mean anything is wrong with the model --&amp;nbsp;it just means certain&amp;nbsp;tools&amp;nbsp;did not run, which is expected in some cases (for example, if you have a selection query for when the user chooses "All locations", and another query for when they choose another value, only one query should run, not both).&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2019 16:02:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813064#M1110</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-11-04T16:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I include 'All' in a Variable Picklist</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813065#M1111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. it is working but the only warning I get now is " All input are current". which does not allow execution of final results..What could be the reason for &lt;SPAN&gt;" All input are current".&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2019 20:36:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813065#M1111</guid>
      <dc:creator>AyokunleAdebisi</dc:creator>
      <dc:date>2019-11-06T20:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I include 'All' in a Variable Picklist</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813066#M1112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Thanks. it is working but the only warning I get now is " All input are not current". which does not allow execution of final results..What could be the reason for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;" All input are not current"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2019 20:39:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/how-can-i-include-all-in-a-variable-picklist/m-p/813066#M1112</guid>
      <dc:creator>AyokunleAdebisi</dc:creator>
      <dc:date>2019-11-06T20:39:57Z</dc:date>
    </item>
  </channel>
</rss>

