Hi,
I use a ScriptTagProxy for a jsonStore this way
Code:
var remoteGridProxy = new Ext.data.ScriptTagProxy({
api:{
read: { url : '../secure/getSubjectDataGrid.htm', method: 'POST' },
create: { url : '../secure/createSubjectDataGrid.htm', method: 'POST' },
update: { url : '../secure/updateSubjectDataGrid.htm', method: 'POST' },
destroy: { url : '../secure/deleteSubjectDataGrid.htm', method: 'POST' }
}
});
Code:
var remoteGridJsonStore = new Ext.data.JsonStore({
proxy: remoteGridProxy,
baseParams: { pageId: id, subjectId: subjectId, gridNum: gridNbr, sptNbr: (sptNbr+1), screenSequence: screenSequence },
storeId: 'remoteGridJsonStore_'+sptNbr+'_'+gridNbr,
root: 'records',
autoLoad: false,
totalProperty: 'totalCount',
remoteSort: false,
fields: gridFields,
I have two questions
1)Unhappily the requests are sent with a 'GET' method. So I didn't use the right syntax. How can I send them with a POST method
2) Furthermore some gridFields are not sent to the server. Maybe when the value has not changed the Ext.data.Field is not sent to the server ?How can I force the store to send every Ext.data.Field ?
Thank you in advance for your answers