I want to load the combo box with XML, but I am not able to get any values in the combo box, Here it is what I have done so far
var getMessageDomain = function () {
var store = new Ext.data.Store({
url: 'zport/getDomainFilters',
autoLoad: true,
reader: new Ext.data.XmlReader({
record: 'Domain'
}, [{
name: 'name',
mapping: '@name'
}, ])
});
var combo = new Ext.form.ComboBox({
width: 250,
xtype: 'combo',
mode: 'local',
allowBlank: false,
triggerAction: 'all',
forceSelection: true,
editable: false,
fieldLabel: 'Message Domain',
name: 'titlez',
hiddenName: 'titlez',
displayField: 'name',
valueField: 'name',
editable: false,
store: store
});
return combo;
};
and my xml is something like this:
<TDSmessagedomain xmlns="">
<Domain name="AEPL" />
<Domain name="APAP" />
<Domain name="BCP" />
<Domain name="BTCI" />
<Domain name="BGSET" />
<Domain name="COLLCLIENT" />
<Domain name="COLLINT" />
<Domain name="CPL" />
<Domain name="DBWS" />
.........................