PDA

View Full Version : No "write" event if successProperty==false



g2mac
22 Jul 2009, 12:08 AM
Hi!

I have a problem with my RESTful Store. If I have successefull answer after Update or Delete action all is ok and my Write event handler catches an even, but when in the server answer "success":false I get a silence. However API docs says:
"Write". Fires if the server returns 200 after an Ext.data.Api.actions CRUD action. Success or failure of the action is available in the result['successProperty'] property.

campersau1
2 Aug 2009, 12:37 PM
I have this problem too.
Can anyone help us?

mjlecomte
2 Aug 2009, 1:30 PM
The docs are not correct, the docs do not describe what the code is doing.

write event will not be called if success status sent back is false. If you think that behavior is incorrect you're going to need to offer up details on why you think the current behavior (to not fire the write event) is incorrect ...

g2mac
3 Aug 2009, 11:43 AM
Correct such behavior or not this is another question, but docs must be correct. I solved my problem by viewing ext-all-debug.js - If success==false Store fires event "exception".