Filter lists with custom input

111
0
08-30-2018 02:39 AM
Labels (1)
Occasional Contributor

I've created a small toolbox where I use a GPString input with a filter list:

        param1 = arcpy.Parameter(
            displayName="OSM tag value",
            name="in_key",
            datatype="GPString",
            parameterType="Required",
            direction="Input",
            multiValue=True
        )
        param1.filter.list = self.getConfig("tags")
‍‍‍‍‍‍‍‍‍

the function getConfig reads a JSON and fills the values of the String input. Yet I want to enable the user to use an own string for the input at param1.

Is there any chance to do this with the given approach or do I need to create a second input for a user defined GPString?

Here is the issue on GitHub: allow manual input of tags and keys · Issue #16 · riccardoklinger/OSMquery · GitHub 

Reply
0 Kudos
0 Replies