Select to view content in your preferred language

BUG 3.4 EditWidget (Editor/AttributeInspector) Undo

628
4
07-18-2013 06:57 AM
NickG
by
New Contributor II
I found this bug trying to set up my own edit widget.  Decided to double check in the default viewer to make sure I wasn't doing something wrong.  Got the same result.  Apologies in advance, this should probably be in the api forum.     

1. Open Edit Widget
2. Check "San Francisco 3-1-1 Incidents"
3. Click feature on map to open inspector
4. Edit any attribute
5. Click Ok
6. Click Undo and receive the following error: 

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.esri.ags.components::AttributeInspector/validate()
at com.esri.ags.components::AttributeInspector/set activeFeatureIndex$()
at com.esri.ags.components::AttributeInspector/set activeFeatureIndex()
at com.esri.ags.components::AttributeInspector/refresh()
at com.esri.ags.components.supportClasses::EditAttributesOperation/undoattributeInspector_editsCompleteHandler()
at mx.rpc::AsyncResponder/result()
at com.esri.ags.tasks::FeatureLayerTask/handleApplyEdits()
at Function/http://adobe.com/AS3/2006/builtin::call()
at com.esri.ags.tasks::BaseTask/handleResultEvent()
at mx.rpc::AsyncResponder/result()
at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyResult()
at mx.rpc.events::ResultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()
at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at DirectHTTPMessageResponder/completeHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
Tags (2)
0 Kudos
4 Replies
MehulChoksey
Esri Contributor
Thanks for reporting. This is an API bug and has been logged.
0 Kudos
MichaelVolz
Esteemed Contributor
Is this bug restricted to the 3.4 API?  Or does it also occur in earlier APIs?

I'm just asking so I know which API to build my editing application in, until this bug is fixed.
0 Kudos
NickG
by
New Contributor II
Works in 3.3.  Seems that with 3.4 its an issue with the new validation functionality.  Unfortunately the validation is what I need.
0 Kudos
BjornSvensson
Esri Regular Contributor
Version 3.5 was released today and includes the fix for this issue:
* Runtime error when performing an "undo" during editing. Bug was specific to version 3.4.
0 Kudos