Hi!
whats wrong on this code?
the param cache_bypass will not send!?Code:// store is a treestore store.load({ params : { cache_bypass : e.shiftKey }, callback : function(records, operation, success){ console.warn(operation); } })
Hi!
whats wrong on this code?
the param cache_bypass will not send!?Code:// store is a treestore store.load({ params : { cache_bypass : e.shiftKey }, callback : function(records, operation, success){ console.warn(operation); } })
cache_bypass is not sent or the value is not sent with it?
cache_bypass will be sent, because it is defined in the stores prxy definition:
i thought that the value will be overwritten when i load a store via:Code:type : 'rest', url : 'nws/', extraParams : { cache_bypass : false }, reader : { type : 'json', root : 'data', totalProperty : 'total' } }
Code:store.load({ params : { cache_bypass : e.shiftKey } })
currently i use following workaround:
Code:store.proxy.extraParams = { cache_bypass : e.shiftKey }; store.load({ params : { cache_bypass : e.shiftKey } })
Ok. You can also use setExtraParams()
http://docs.sencha.com/extjs/4.2.1/#...-setExtraParam