Hi Andrea,
I know. I used that always in ExtJS. Works perfect. But if you try to define a proxy like following code, Sencha-touch ignores the parameter and always sends a GET Request with values added in the URL.
Code:
var servincidentStore = new Ext.data.Store({
model: 'Incident',
storeId: 'incident',
proxy: {
type: 'ajax',
url: '/generator-grid/BackendGrid/incidentGridBackend.php',
method: 'POST',
extraParams: {
mobile: true,
start: 0,
limit: 9999,
userProfielId: profielid,
task: 'LISTING',
xvelden: ', incident.PersoonId ',
sort: 'incident.Incident',
dir: 'ASC'
},
reader: {
type: 'json',
root: 'results'
}
}
});
Here is a copy of the request send by code above:
Code:
Verzoek-URL:http://localhost/generator-grid/BackendGrid/incidentGridBackend.php?_dc=1295089977116&mobile=true&start=0&limit=25&userProfielId=791&task=LISTING&xvelden=%2C%20incident.PersoonId%20&sort=incident.Incident&dir=ASC
Verzoekmethode:GET
Statuscode:200 OK
Vraagkopteksten