I´m just curious if this is possible.
The ability to create a store, which contains data from either a json file or local storage.
Then there´s a store which is linked to it that which gets its data from that store, and can be filtered to show certain data. This is for lists, so many lists can get their data from one store through a personal substore.
Is this possible?
I was hoping this would be possible because currently, my application creates alot of fields, alot containing xtype: 'field' with lists within them, and was wondering if this would help speed up the application.
am not an advanced sencha user tho, so although i know a bit i dont really know how to use a direct store nor delegate.
how would one go about doing this?
well, i have nearly the same problem. and I'm still searching for a nice solution. with a direct store you can specify your own methods for the crud operations which return the wished records. so you could specify a function which calls the super store to load the items, maybe applying some filters or options. the super store will store them and pass them in some way to your function.
i need to try this solution, but this is not on top of my todo list. i need this solution for my bachelor thesis but there are other problems & questions that i have to solve and answer first.
Take a look at DirectStore in Sencha Documentation. You'll need to provide the so called directFn (it should be possible to provide them for each of the CRUD operations). These methods need to call the super store's CRUD methods.