Select to view content in your preferred language

How to limit Analysis geoprocessing inputs to specific layers?

315
3
11-15-2024 10:02 AM
vl-driscolls
Emerging Contributor

I have custom geoprocessing services which I am bringing into the Analysis widget. The Analysis widget will simply select all the features on a layer, so since I need to allow users to select specific features from a layer as input for the geoprocessing services, I am using the Select widget.

 

vldriscolls_0-1731693294915.png

Is there a way to make sure only a specific layer is used as input for a parameter?

For example if it is a geoprocessing service that transfers polygons from "Positions" to another layer, is there a way to make sure only selections from the "Positions" layer can be used for a certain parameter?

0 Kudos
3 Replies
Wei_Ying
Esri Regular Contributor

Hi @vl-driscolls ,

You can add input data validation in your gp service. Analysis widget input parameter does not do additional validation. It only filter the data type you specify in the parameter in the service. 
For example, if your parameter only accept point type, then you can limit it in the parameter definition of the service, and the Analysis widget will honor that. 

0 Kudos
vl-driscolls
Emerging Contributor

is it possible to do validation based on layer name? for example what if most of my layers are polygon layers

0 Kudos
Wei_Ying
Esri Regular Contributor

Unfortunately, so far there is no way to do so. 

0 Kudos