AnsweredAssumed Answered

Connect Info Window to Edit Widget

Question asked by mkoneya on Jan 22, 2013
Latest reply on Jan 23, 2013 by mkoneya
I am using the editorWidget to add new features,  delete features, and update features.     I am using the Attribute Inspector to display and edit the newly added features and selected features attributes.     

I recently added a function to my application which allows the user to search for an existing editable feature by a unique identifier (asset_id).   I am using the .selectFeatures() method on the FeatureLayer to select and then zoom to a feature based on the asset_id.

The attributes for the selected feature display within the attribute inspector with any associated domains and it appears that the fields are editable,  but my application errors when a change is made within the attribute inspector.  It appears that the attribute inspector is behaving like an info window and is not connected to the FeatureLayer for editing as I get an error which states.

Unhandled exception at line 19, column 158500 in http://serverapi.arcgisonline.com/jsapi/arcgis/3.3/js/esri/dijit/editing/Editor-all.js

'this._currentGraphic.attributes' is null or not an object

How can I connect the changes made via the attribute inspector in the above example back to the editor widget?

Thanks,

Mele

Outcomes