Select to view content in your preferred language

Filtering value fields with Python Script Tool in Geoprocessing service

284
1
07-21-2022 10:25 AM
ZachPorteous
Emerging Contributor

Hello,

Im trying to publish a script tool to a geoprocessing service whose values are dependent on one another. I have a field that has "State" and another field that is dependent on it to choose a list of weather stations filtered by that state (values are filtered using the updateparameters validation function. . Is there a best practice way to do this? I have not been able to get the filtering value function to work within the geoprocessing widget in WAB. 

 

Thanks!  

0 Kudos
1 Reply
by Anonymous User
Not applicable

If I follow your post correctly, I am not sure you can implement a value dependency like that in the same service. You'll have to send the first request with the state to get the weather station list and then process that result for the follow-on geoprocessing service. I could be wrong, but when the tool is converted to a geoprocessing service, it doesn't implement the class/ rules laid out in the validation class.

0 Kudos