Reloading a json store with new parameters ExtJs Ext.data.JsonStore -


I am currently having trouble reloading a JSSO store with the new parameters. Here's my store:

  newsletters = new Ext.data.JsonStore ({url: '/ newsletters /', root: 'result', field: ['id', 'body' recipients'], baseparm: {Command: 'Jason', from: date to, from: by date), auto-load: true});  

dateTo and dateInitally are empty string ('') and the firebug / newsletter is checked with correct parameters.

Now do not have any of the following technical tasks:

Changing the values ​​of dates and dates Since then, by calling newsletters. RELOAD () still with page parameter string empty Calls to be.

Calling newsletters.reload

Finally I have tried:

  
  last option = newsletters . Unknown option; Ext.apply (last option. Param, {from: 'test1', from: 'test2'}); Newsletters.reload (lastOptions);  

It does not request / update newsletters again with updated parameters.

Appreciate any advice!

You can actually pass params object to load () method

< Pre> newsletters.load ({params: {from: 'test1', from: 'test2'}})

Comments