Select to view content in your preferred language

GP Tool widget ignores selected features

289
0
10-28-2022 02:49 PM
DougBrowning
MVP Esteemed Contributor

I thought I had posted this but cannot find it.

The GP Tool widget in a web app completely ignores this Use Selected checkbox.

DougBrowning_0-1666993547032.png

Other selection tools like the polygon right there to the right work with my code fine.  But maybe it is somehow different?  Seems like this would have been caught by now.  I did try wrapping in a MakeFeatureLayer.

indLayer = arcpy.GetParameterAsText(0)

terrapkList = [row[0] for row in arcpy.da.SearchCursor(indLayer, ["PrimaryKey"], "ProjectName <> 'LMF'")]

Thanks a lot

 

0 Kudos
0 Replies