-
6 Oct 2010 9:09 AM #1
Uncaught exception
Uncaught exception
I am getting the following error in Firebug:
uncaught exception: Ext.data.Store: Attempted to execute a write-action without a DataWriter installed.
I have created a working Editable Grid, pulling info from the database, but am having trouble when I try to save it. I don't see anything that mentions I need to "install" the DataWriter.
My store is setup as follows:
Any help would be appreciated. Thanks!Code:var myContactsStore = new Ext.data.Store({ proxy : crudProxy, storeId: 'myContactStore1', reader : readerJsonMyContacts, // writer: minContactsWriter, writer: Ext.data.JsonWriter({ returnJson: true, writeAllFields: false, encode: true, listful: true }), remoteSort : false, nocache : true, autoLoad : true, autoSave: false, autoCommit: false, baseParams: { method: 'post', min_contacts: 'load', format: 'json' }, listeners: { load: function() { // Loaded } }, fields: ['bus_unit','dept_id','ee_id','name','email'] });
-
6 Oct 2010 9:25 AM #2
I think you just forgot the new keyword to create an instance of a Ext.data.JsonWriter.
Code:writer: new Ext.data.JsonWriter({ returnJson: true, writeAllFields: false, encode: true, listful: true }),
-
6 Oct 2010 9:45 AM #3
Yes, I did miss that in my example. However, I had originally created the writer as a separate object. I think the problem there was an ordering issue, as I was attempting to create the store before the writer. Same uncaught exception either way. Fixed now though. Thanks!
Similar Threads
-
uncaught exception: [Exception... "Component returned failure code
By dannyg in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 7 Dec 2009, 8:29 PM -
[1.2.4] Uncaught exception in a combo box
By cvs_fif in forum Ext GWT: Bugs (1.x)Replies: 1Last Post: 4 May 2009, 1:42 AM -
Forms in tabs- uncaught exception: [Exception... "Component returned failure...
By larest in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 4 Apr 2009, 1:03 PM -
How to catch uncaught exception?
By BuckBazooka in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 24 Jan 2008, 2:23 AM


Reply With Quote