dusoo
11 Jun 2010, 12:51 AM
Hi everyone,
i have a grid displaying data from xml, which is build using php file.
I would like to add a combobox, and function "on change" which will pass data from it to that php file and reload my Grid.
I guess it is simple, but it's not working for me at all.
I would like to pass string from ComboValue variable into my report.php
But i don't get anything using $_GET['ComboValue'].
Thanks for any help
D.
var combo = new Ext.form.ComboBox({
...
})
var store = new Ext.data.Store({
url: 'report.php',
reader: new Ext.data.XmlReader({record: 'ROW'},
[
{name: "node", mapping:"NODE_NAME"},
{name: "util_in", mapping:"UTIL_IN"},
{name: "util_out", mapping:"UTIL_OUT"}
])
var grid = new Ext.grid.GridPanel({
...
});
combo.on('select', function(){
store.load({
params: {
ComboValue: combo.getValue()
}
});
});
i have a grid displaying data from xml, which is build using php file.
I would like to add a combobox, and function "on change" which will pass data from it to that php file and reload my Grid.
I guess it is simple, but it's not working for me at all.
I would like to pass string from ComboValue variable into my report.php
But i don't get anything using $_GET['ComboValue'].
Thanks for any help
D.
var combo = new Ext.form.ComboBox({
...
})
var store = new Ext.data.Store({
url: 'report.php',
reader: new Ext.data.XmlReader({record: 'ROW'},
[
{name: "node", mapping:"NODE_NAME"},
{name: "util_in", mapping:"UTIL_IN"},
{name: "util_out", mapping:"UTIL_OUT"}
])
var grid = new Ext.grid.GridPanel({
...
});
combo.on('select', function(){
store.load({
params: {
ComboValue: combo.getValue()
}
});
});