JsonStore.insert() causes exception in extjs

Posted by kalan on Stack Overflow See other posts from Stack Overflow or by kalan
Published on 2011-01-13T08:50:31Z Indexed on 2011/01/13 8:53 UTC
Read the original article Hit count: 236

Filed under:
|
|

I have an EditorGridPanel with toolbar button to add new records. Everything works fine except one scenario. When I try to insert a record which already exists in database, server sends back:

{"success":false,"message":"already exists","data":{}}

but grid creates a new row marked with red triangle. If after that I try to insert a new record (even if it doesn't exist in database), everything works fine on the server side, but i get an 'uncaught exception' in firebug. It says: 'uncaught exception: Ext.data.DataReader: #realize was called with invalid remote-data. Please see the docs for DataReader#realize and review your DataReader configuration.'

why is that?

© Stack Overflow or respective owner

Related posts about exception

Related posts about extjs