Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Are there Events in the ArcGIS JavaScript API that I can use to get the selected features being used by the attribute inspector and when features are added to the map?

I am using the editor widget in combination with the Attribute Inspector. I have also created a Template picker and used that with the editor widget.

In my application, I am editing points, lines, and polygons from a Feature Server using the On Demand Mode. I have seen examples that show selected features using the On Selection mode, but was not pleased with having to add both the map server and the featureServer layers so I am trying to find another way.

I would like to be able to start a function that draws a graphic for the point features when they are selected and displayed in the attribute inspector, as well as when the features are first completed but don't know which event is firing.

I appreciate any assitance.

Thanks,

Mele

share|improve this question
add comment

1 Answer 1

dojo.connect( layername, "onEditsComplete", function(a, u, d) { alert('edited'); });

This will alert you to the add, update, or delete

hope this helps...

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.