Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Jun 2010
    Posts
    2
    Vote Rating
    0
    tmtrademark is on a distinguished road

      0  

    Default [CLOSED] data.Store sync() method returning error after 0.91

    [CLOSED] data.Store sync() method returning error after 0.91


    Greetings.

    I am using a data.Store with a localStorageProxy like this:

    PHP Code:
    charStore = new Ext.data.Store({
                
    proxy: new Ext.data.LocalStorageProxy({
                    
    id'charStore-Proxy'
                
    }),
                
    autoloadtrue,
                
    id'characterStorage',
                
    storeId'store4char',
                
    model'Character',
            }); 
    When I create a new record and add it to the store, then call charStore.sync(), everything is fine:

    PHP Code:
    charStore.add(Ext.ModelMgr.create({namethisChar.stats.namecharacterthisChar}, 'Character'));
    charStore.sync(); 
    However, attempting to add any subsequent records causes this error:

    PHP Code:
    ext-touch-debug-w-comments.js:8037 TypeErrorJSON.stringify cannot serialize cyclic structures
    Had never seen this before. Commenting out the sync() function makes everything perform as expected.

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    10
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    We don't immediately see the problem here and aren't able to reproduce it. Could you please provide the Character model definition? Even better would be to give us a copy of your javascript so we can look at it and hopefully reproduce the problem. If you dont want your source code to be public you can send it to tommy@extjs.com.

  3. #3
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    9
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    @tmtrademark if you are still getting this behavior please post a reproducible test case otherwise we'll close the ticket as it appears to work in all of our tests.
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

Similar Threads

  1. Replies: 1
    Last Post: 18 Mar 2010, 6:47 PM
  2. Replies: 13
    Last Post: 16 Nov 2009, 7:29 AM
  3. Error 'undefined' for getById method for store
    By ssyeda in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 8 Jun 2009, 8:08 AM
  4. Can anyone please help with (data)store.collect method?
    By Judy in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 6 May 2008, 7:53 AM
  5. Can anyone please help with (data)store.collect method?
    By Judy in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 22 Apr 2008, 4:17 PM

Thread Participants: 2