Hybrid View
-
8 Jul 2011 12:03 AM #1
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:
The error, which occur is: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'} } });
Uncaught ReferenceError: id is not defined
-
8 Jul 2011 12:05 AM #2
I seem to be confused, just forgot the '' around the id



Reply With Quote