AnsweredAssumed Answered

Detecting selection event on Query or Attribute Table widgets

Question asked by ahuarte47 on Nov 10, 2016
Latest reply on Nov 14, 2016 by ahuarte47

Hi, I'm trying to find a way to detect the event of feature selection of a ArcGISMapServiceLayer loaded in a map. Or get the features selected by user using the Query or Attribute Table widgets.

 

I don't know how to get the FeatureLayer collection of the ArcGISMapServiceLayer instance to attach their 'selection-change'/'selection-clear' events. I see the 'layersInfo' member successfully but the method 'map.getLayer(id)' always return null to these sublayer collection.

 

Is it possible? How I do it?

 

Thanks in advance

Alvaro

 

Outcomes