How to copy a Store that has no model
-
23-12-2019 - |
Question
I have the following store:
Ext.define('App.store.Status', {
extend: 'Ext.data.Store',
proxy: {
type: 'rest',
url: '...'
},
pageSize: 9999
});
The store has no model, and gets the fields from the metaData
property send from the server.
How do I create a new copy of this store? All examples I found for copying a store need a model to work.
Solution
Every store in Ext4 has a model. If you don't specify one, it will be created implicitly, so you can always access it with: myStore.model
. That means you can use the examples you've found with your store.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow