PDA

View Full Version : Problem in display data in browser



spriya
7 May 2012, 8:22 PM
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.

aconran
9 May 2012, 2:30 PM
Did you load the store by calling store.load or setting the autoLoad property?

spriya
9 May 2012, 9:04 PM
Hi,

Thanks for reply.Yes autoLoad property is set to true only.Anyhow it is not working.

aconran
10 May 2012, 8:27 AM
Are any errors thrown on the console? Is it making a request?

Can we see your Store configuration?

spriya
10 May 2012, 8:32 PM
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>'
]
}
});

venkatesh.R
11 May 2012, 4:09 AM
@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.


T (http://www.sencha.com/forum/showthread.php?202871-List-data-is-not-viewable-in-browser-and-android-simulator.)hanks.