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.
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?
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.
is it possible to do validation based on layer name? for example what if most of my layers are polygon layers
Unfortunately, so far there is no way to do so.