I placed that piece of code inside my onJsonstoreBeforeLoad event in the store. If you look at my first post, I replaced:
with:Code:Ext.apply(store.getProxy().extraParams, { name: 'test' });
Code:store.getProxy().setExtraParam('name', 'test');