PDA

View Full Version : Update Grid via PHP-SQL request



lvil
7 Jan 2011, 2:00 AM
I have a Grid with a store set with HTTP.proxy to a php file.
On the same page I have a Form.
My goal is to submit a form, send it to a php that generates a SQL query and update the Grid with the query results.
How can I do it?

Condor
7 Jan 2011, 2:44 AM
There are two methods:
1. Load the store with parameters from the form, e.g.

store.load({
params: form.getForm().getFieldValues()
});
2. Submit the form and load the store with the response, e.g.

form.getForm().submit({
success: function(form, action) {
store.loadData(action.result);
}
});