Select to view content in your preferred language

Geoprocessing widget ignores the Use selected features checkbox

1277
5
06-08-2022 02:23 PM
DougBrowning
MVP Esteemed Contributor

The Geoprocessing widget is completely ignoring the Use selected features checkbox.

If I run the tool like this I get all features sent to my script.

DougBrowning_0-1654723100058.png

I get the whole thing

DougBrowning_1-1654723219017.png

If I use the black box in the widget and select them that way then it does work.

Is this a known bug?  Or do I have to set something differently?  Not seeing any docs or posts on this.

Thanks for any help

 

0 Kudos
5 Replies
DougBrowning
MVP Esteemed Contributor

Update from more testing

I can get draw box next to the layer name to work.

I can get a second field that asks for a Polygon to work

I can get a query result layer to work

But the use selected features does not

DougBrowning_0-1654891825982.jpeg

Seems weird to have the box there if it is not supported. 

I am just using indLayer = arcpy.GetParameterAsText(0) in my code - maybe I need something else?

I cannot seem to find this new checkbox in the help either.  Anyone seen it?

thanks

0 Kudos
Robert_LeClair
Esri Esteemed Contributor

Doug - I believe you need to follow the workflow seen here in this Tech Support article about using the Select widget as input for a GP widget.

DougBrowning
MVP Esteemed Contributor

@Robert_LeClair  Not sure why I just saw this but I do have it set to User defined and it still does not work.  Note bug in Pro that you have to set this manually AND you have to reset it on every single Overwrite publish.  So I know I do it.

ExB same deal.

This is driving users nuts.  Any other things to try?

Update testing again and a selection in the attribute table does work but when using the Select tool it does not work.  Even though the same button.

0 Kudos
Robert_LeClair
Esri Esteemed Contributor

Hi @DougBrowning - yeah, it's been a while since we responded on this item.  Let's restart, what release of ArcGIS Enterprise Experience Builder are you using?  Is it the 11.4, 11.3, etc.?

0 Kudos
DougBrowning
MVP Esteemed Contributor

We are mostly still in WAB as ExB is still missing so many things.  We are building and testing now though.

But using the latest on AGOL the widget does not respect selections from the selection widget.  This was listed as a known issue fixed in 11.4 posted here  https://community.esri.com/t5/arcgis-experience-builder-questions/use-selected-features-as-input-to-...
But we are using AGOL so not sure what that has to do with server?

DougBrowning_0-1738853703280.png

The one spot said to use Set as Analysis input.  I do that and again it still has all the features and not what is selected.  Well wait it works from some places and not others.  It seems similar to WAB in a way.  If I select using the select widget it gets ignored.  If I select in the widget then use set as input it works.  If I select then Set as from the layers list also ignored.  Been confusing to users.

thanks a lot

0 Kudos