AnsweredAssumed Answered

Filter lists with custom input

Question asked by r.klingeresri-de-esridist Employee on Aug 30, 2018

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 

Outcomes