jorgepereira.eng
2 Jan 2012, 5:12 AM
Hi everybody,
I would like to transport a value from a combobox to an url.
I have tried this, but d'ont works:
...
...
var mycombo = Ext.create('Ext.form.ComboBox', {
id: 'mycombo',
fieldLabel: 'Campaign',
displayField: 'col1',
valueField: 'col2',
store: campaign,
triggerAction: 'all',
autoHeight: true
});
...
var myproxy = new Ext.data.HttpProxy({
extraParams: { "campaign": Ext.getCmp('mycombo').getValue() },
url: 'getReport.ashx',
reader: new Ext.data.JsonReader({
type: 'json',
root: 'data',
totalProperty: 'totalCount'
})
});
Any ideas...i need help!!!:((
I would like to transport a value from a combobox to an url.
I have tried this, but d'ont works:
...
...
var mycombo = Ext.create('Ext.form.ComboBox', {
id: 'mycombo',
fieldLabel: 'Campaign',
displayField: 'col1',
valueField: 'col2',
store: campaign,
triggerAction: 'all',
autoHeight: true
});
...
var myproxy = new Ext.data.HttpProxy({
extraParams: { "campaign": Ext.getCmp('mycombo').getValue() },
url: 'getReport.ashx',
reader: new Ext.data.JsonReader({
type: 'json',
root: 'data',
totalProperty: 'totalCount'
})
});
Any ideas...i need help!!!:((