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.

Was it helpful?

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
scroll top