PDA

View Full Version : [CLOSED] Missing "operation" argument in Store Load Event



Nxs
15 Nov 2012, 1:58 AM
Since last Architect update (2.1.0 B676), "operation" argument is removed, why ?


How can I catch "operation.error" property when store load fails ?

aconran
15 Nov 2012, 10:46 AM
What framework?

Nxs
19 Nov 2012, 12:41 AM
ExtJS 4.1.3.425

Even in the API's doc the parameter doesn't appear anymore :
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.Store-event-load

Nxs
21 Nov 2012, 5:04 AM
Bump

aconran
26 Nov 2012, 7:21 AM
ExtJS 4.1.3.425

Even in the API's doc the parameter doesn't appear anymore :
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.Store-event-load

We base our definitions off of the documentation. It looks like there was an error (or a change). We'll investigate.

jjohnston
26 Nov 2012, 12:12 PM
This is more of a framework question than an Architect question, but I think the store's load event does not include the Operation object because an Operation is closely tied to a Proxy, and the load event can be fired by stores that do not have a proxy.

You should take my advice with a grain of salt, and follow up in the Ext JS forums if it doesn't work, but I would look into the 'exception' event fired by the proxy: http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.proxy.Ajax-event-exception