PDA

View Full Version : Stores do not load with default build



Artistan
4 Jan 2012, 6:46 AM
This is an example of app where stores do not autoload....
http://visits.benint.net/visits/touch/designer.html (http://visits.benint.net/visits/touch/designer.html)

I added this to an index.js to show how "creating" the stores will then autoload...


// need to create the stores so they exist in the store manager before init
Ext.create('BenAdmin.store.StoreVisit');
Ext.create('BenAdmin.store.StoreVisitsSites');
Ext.create('BenAdmin.store.StoreVisitsStats');
Ext.create('BenAdmin.store.StoreVisitsList');

This can be seen here....
http://visits.benint.net/visits/touch/

aconran
30 Jan 2012, 10:51 PM
Stores should be automatically added to the Application Node now as they are created.

Artistan
31 Jan 2012, 4:30 AM
This is difficult to test with the warnings and TypeError I am still getting...

http://www.sencha.com/forum/showthread.php?175564-Warning-messages-on-Models&p=724005

Artistan
31 Jan 2012, 5:38 AM
Stores should be automatically added to the Application Node now as they are created.

Are you talking about the Designer interface?
In Designer build 257 yes, they are auto added to the Application config.
But if you change the class name, then they are wrong again.

Artistan
31 Jan 2012, 5:56 AM
Ok, in build 257.
Change Store classname and it changes in the application config.
Change Model or View classname and it does NOT change in the application config.

bharatn
31 Jan 2012, 7:55 AM
This is fixed in later builds. The current build is 268.

Thanks

Artistan
31 Jan 2012, 8:17 AM
Looks good, thanks.