-
7 May 2012 8:22 PM #1
Problem in display data in browser
Problem in display data in browser
Hi,
Am new sencha touch i have to load a data in list from webservice .The data should be display in desginer but it is not display in browser.
Please can anyone help me............
Thanks.
-
9 May 2012 2:30 PM #2
Did you load the store by calling store.load or setting the autoLoad property?
Aaron Conran
@aconran
Sencha Architect Development Team
-
9 May 2012 9:04 PM #3
Hi,
Thanks for reply.Yes autoLoad property is set to true only.Anyhow it is not working.
-
10 May 2012 8:27 AM #4
Are any errors thrown on the console? Is it making a request?
Can we see your Store configuration?Aaron Conran
@aconran
Sencha Architect Development Team
-
10 May 2012 8:32 PM #5
This is the code which i am handling with.
Store.js
Ext.define('MyApp.store.MyStore', {
extend: 'Ext.data.Store',
config: {
autoLoad: true,
storeId: 'MyStore',
fields: [
{
name: 'CountryId'
},
{
name: 'CountryName'
}
],
proxy: {
type: 'ajax',
url: 'http://192.168.0.60:4466/RestDataService/Country',
reader: {
type: 'xml',
record: 'CountryDTO'
}
},
});
List.js
Ext.define('MyApp.view.MyList', {
extend: 'Ext.dataview.List',
config: {
height: 235,
ui: 'round',
width: 263,
store: 'MyStore',
itemTpl: [
'<div class="MyStore">{CountryId}<br>{CountryName}</div>'
]
}
});
-
11 May 2012 4:09 AM #6
Display data in browser
Display data in browser
@spriya
Please refer this thread , adding model config may resolve this issue.
http://www.sencha.com/forum/showthread.php?202871-List-data-is-not-viewable-in-browser-and-android-simulator.
Thanks.


Reply With Quote