ExtJs – parameterized store

December 30th, 2011

For some reason they removed from 4.0 method setBaseParam to modify Ajax URL and did not suggest clear way to parameterize reader’s URL.

Nevertheless, Ext.data.Request accepts params element in the config what does what we need and can be passed through th store.load method:

store.load({params:{object_id:1488}});

will result ?object_id=1488 to be added.

1 2 3 4 5 6 7 8 9 10 11 12 13   »