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).
Thanks for the response I will test this, And get back.
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:
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:
You can test whether the user chooses that option with a logical operator, which I see you already have in your model.
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.
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, 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.
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:
to test the input value. If the value equals a value of your choice, representing 'all' (for example "All Sites"), then that branch would use a selection expression that selects all sites. If not, the expression will select whatever site is selected from the pick list.
Here is a very quick example:
and then the expression would use the variable if the user selected something other than the "all" value, for example:
Please I need a urgent response or the question is not clear enough? I can explain further.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.