AnsweredAssumed Answered

How to programmatically update attributes after sketching a feature by using JavaScript API Editor/TemplatePicker?

Question asked by xiannian on Jun 4, 2015
Latest reply on Jun 9, 2015 by khutchins-esristaff

After finishing a feature on Web map, I want to update some attribute information before the attribute inspector popup.

 

What I am doing now is:

(1) initializing Draw toolbar (invisible) after a template is chosen.

(2) Trap the "draw-end" event of Draw once the feature sketch event is done.

 

The problem I found that: in the "draw-end" handler, I can get the geometry of the created feature. But this feature is not added to its feature class in the "draw-end" handler yet. I want to update some attribute information before the Attribute Inspector popup the information window.

I don't know when this feature is added to its feature class, and how to automatically update information for users before they use the attribute inspector.

 

Thanks,

Outcomes