Hi All,

I am using MemoryProxy with XML data. The memory proxy is then used by number of store, the Ext.data.XmlReader is used to parse the XML and load the ListView control. However, i am not able to load the ListView. Please find the sample code snippet below.


//sXMLDocument is a AJAX XML response
var XMLmem = new Ext.data.MemoryProxy(sXMLDocument);

var ContourStore = new Ext.data.Store({
autoLoad: true,
proxy: XMLmem,
reader: new Ext.data.XmlReader({
record:'WizardSelects/SelectKPISet[Value="Contour"]/ColorBreakPoint[Value="Standard"]/KPI',
fields: [
{name: 'DisplayName', mapping: 'DisplayName/@Value', type: 'string'},
{name: 'MetaName', mapping: 'MetaName/@Value', type: 'string' }]
})
});

var KPIsList = new Ext.list.ListView({
id: 'kpi_contour',
columns:[{header: 'KPIs',
dataIndex:'DisplayName'
}],
store: ContourStore,
reserveScrollOffset: false,
height40/100) * GetBrowserHeight(),
enableDragDrop: true,
multiSelect:true,
triggerAction:'all',
listeners: {
render: initializeKPIDragZone
}
});

Requirement:-

1] One memory proxy with XML data.
2] Multiple stores which uses the memoryproxy and each of the stores have reader(Ext.data.XmlReader).

Can anyone help me with a sample?

Thank you,

Suraj