Search code examples
javascriptextjsextjs3

Extjs JsonStore baseParams are mixed up when calling load on Internet Explorer(any)


I'm using Extjs 3.4. When some details are loaded, I'm trying to set some params to a different store and load it; something like this:

countingTypeStore.setBaseParam(pdcId, parseInt(record.data.id));
countingTypeStore.setBaseParam(managementUnitId, managementUnitId);
countingTypeStore.load();

The remote method needs the parameters in this order and everything is fine with Firefox and Chrome but in IE the base params are mixed up (first is sent the second and viceversa). What should I do? Is there another way to dynamically set the store params?


Solution

  • here is another way countingTypeStore.load({params:{pdcId: calculatedId}});