Store Announcement
new Ext.data.Store({ model:'prj.models.ContactInfo', storeId:'contactInfoId', proxy:{ type:'ajax', url:'/GetContactInfoByID', reader:{ type:'json' }, extraParams:{ format:'json' }, listeners:{ exception:function(proxy, response, orientation){ console.error('Failure Notification', response.responseText); Ext.Msg.alert('Loading failed', response.statusText); } } } });
Adding parameters to the proxy server and reading ajax repository
prj.stores.contactInfoId.getProxy().extraParams.partyID = options.partyID; prj.stores.contactInfoId.getProxy().extraParams.eventName = options.eventName; prj.stores.contactInfoId.read();
Hope this helps.
mehul9595
source share