-
1 Apr 2012 9:59 AM #1
ST2 Ext.List does not appear
ST2 Ext.List does not appear
Hello again,
I posted my code snippets to here: http://stackoverflow.com/questions/9966720/sencha-touch-2-my-ext-list-doesnt-appear
I used this tutorial to create a dummy list: http://docs.sencha.com/touch/2-0/#!/guide/list
But it doesnt show any data.
Can anyone help, why?
Thanks,
R
-
1 Apr 2012 10:12 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,653
- Vote Rating
- 14
You reference the store as 'Spots', try using 'ProjectName.store.Spots' instead.
Also, you shouldn't specify and alias and a xtype. In your case the xtype looks good.
Let me know if that works.
-
1 Apr 2012 11:11 AM #3
Hi,
I replaced the following row in 'Inside.spotlist.js':
store: 'Spots',
TO
store: 'ProjectName.store.Spots',
And removed the alias key, and it still doesnt work, generates the following WARN:
[WARN][ProjectName.view.Inside_spotlist#applyStore] The specified Store cannot be found
-
1 Apr 2012 12:30 PM #4Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,653
- Vote Rating
- 14
Field names are lastName and firstName but the tpl references last_name and first_name. I didn't realize you are using the standard MVC structure. The Spots reference may have been correct.
-
3 Apr 2012 11:13 AM #5
I fixed it, but the problem is still up. Here's my current code:
http://www.robber.hu/ext/Inside_spotlist.js [placed at the view dir]
http://www.robber.hu/ext/Spot.js [placed at the model dir]
http://www.robber.hu/ext/Spots.js [placed at the store dir]
And here's my app's code:
I run out of ideasCode:Ext.require([ 'Ext.viewport.Viewport', 'Ext.Container', 'Ext.List', 'Ext.DataView', 'Ext.data.Store', 'Ext.data.*', 'Ext.util.*' ]); Ext.application({ name: 'BHere', appFolder: APP_URL + "app", // phoneStartupScreen: 'LOGO.png', controllers: ['Site_inside'], views: ['Inside_spotlist'], models: ['BHere.model.Spot'], stores: ['BHere.store.Spots'], launch: function() { //bootstrap console.log("inner site bootstrap"); //var spotlist = Ext.create("BHere.view.Inside_spotlist"); Ext.Viewport.add({ xclass: 'BHere.view.Inside_spotlist' }); return true; } });
.. There is only a "scrollable" container, with no data, ut in the tutorial, the narrator has the same code.
There is no errors or warnings.
At file http://www.robber.hu/ext/Spots.js , in the line 'model: 'BHere.model.Spot', is it correct? Possibly it's just a reference for the class, not an instance?
Thanks,
R
EDITED: The dom tree does not contains the data 'test' or 'test2', I searched it with a Chrome DOM viewer, so I think this is not a display:none or other dummy problem.
Here's the result: http://www.robber.hu/ext/result.png
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.


Reply With Quote