1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    7
    Vote Rating
    0
    arcticweb is on a distinguished road

      0  

    Default 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:

    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']
    });
    Any help would be appreciated. Thanks!

  2. #2
    Sencha User
    Join Date
    Aug 2009
    Posts
    480
    Vote Rating
    1
    plalx has a spectacular aura about plalx has a spectacular aura about

      0  

    Default


    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
        }),

  3. #3
    Sencha User
    Join Date
    May 2010
    Posts
    7
    Vote Rating
    0
    arcticweb is on a distinguished road

      0  

    Default


    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

  1. uncaught exception: [Exception... "Component returned failure code
    By dannyg in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 7 Dec 2009, 8:29 PM
  2. [1.2.4] Uncaught exception in a combo box
    By cvs_fif in forum Ext GWT: Bugs (1.x)
    Replies: 1
    Last Post: 4 May 2009, 1:42 AM
  3. Replies: 2
    Last Post: 4 Apr 2009, 1:03 PM
  4. How to catch uncaught exception?
    By BuckBazooka in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 24 Jan 2008, 2:23 AM

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi