mercredi 17 décembre 2014

Reusing Stores

Hello Guys!!

I have the following situation:


One Store linked into one Grid and then, this Grid is linked into four Forms.


The problem:


The Store used in the Grid is apparently instantiated one time and the data changed in one Grid instance are replicated to the others instances.


I need for each Grid instance has its your own instance of the Store.


The Question:


Its possible to Sencha Architect define de Store inside the Grid with something like this:



Code:



store: new App.store.MyStore()

or

Code:



store: Ext.Create(App.store.MyStore)

Then each new Grid instance will have a new instance of the store!

How is the best way doing this with Sencha Architect?


Thanks a lot.






Reusing Stores

Aucun commentaire:

Enregistrer un commentaire