1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    71
    Vote Rating
    0
    heringsfilet is on a distinguished road

      0  

    Default set internalId on localStorageProxy to id of model

    set internalId on localStorageProxy to id of model


    Is there a way to set the internalId of a localStorageProxy to an attribute of the model like the id?

    I tried the following but there occurs an error:
    Code:
    myStore = new Ext.data.Store({
        model: "MyModel",
        storeId: 'myStore ',
        sorters: 'date',
        proxy: {
            id: 'myStore',
            type: 'localstorage',
            internalId: id,
            reader: {type: 'json'},
            writer: {type: 'json'}
        }
    });
    The error, which occur is:
    Uncaught ReferenceError: id is not defined

  2. #2
    Sencha User
    Join Date
    Mar 2011
    Posts
    71
    Vote Rating
    0
    heringsfilet is on a distinguished road

      0  

    Default


    I seem to be confused, just forgot the '' around the id

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar