I am adding a new record to my store via the add method. By doing so the add event is fired automatically, which causes my HttpProxy to call my server to save the record to the db. So far everything is fine.

The server sends back "success":true and the id of the new record. But if an error occures while writing the record to the db "success":false is sent back.

So my question is, where and how can I handle the success property after adding my record? I have not found any examples. Everbody either uses form submit or an Ajax request but no one relies on the add event from the store object.

Thanks in advance.