Oct 13, 2014, 3:45 PM
[CLOSED] BaseParams and WriteBaseParams equivalent in 2.x
Hi,
In Ext JS 4, it seems that the BaseParams is now in the Proxy as ExtraParams, which is fine.
However, a useful feature in Ext JS 3 was a differentiation between baseParams for read operations and writeBaseParams for parameters to pass during a write operation.
In my particular case I have a large number of extra parameters used for reading, whereas for writing I have very few, so I want to avoid sending the baseParams each time for an update when not needed.
I just wanted to double check I have not missed it, but it seems now if I want to maintain separate parameters for read and write for a store, I have to
- Manually remember the current extraParams to another variable, for example,
- Update the proxy's extraParams to be the ones needed for the write/update operation
- When operation completes, restore the original extraParams to carry on with reading etc.
Does that sound right to you? Or have I missed a feature somewhere?
Thanks!
In Ext JS 4, it seems that the BaseParams is now in the Proxy as ExtraParams, which is fine.
However, a useful feature in Ext JS 3 was a differentiation between baseParams for read operations and writeBaseParams for parameters to pass during a write operation.
In my particular case I have a large number of extra parameters used for reading, whereas for writing I have very few, so I want to avoid sending the baseParams each time for an update when not needed.
I just wanted to double check I have not missed it, but it seems now if I want to maintain separate parameters for read and write for a store, I have to
- Manually remember the current extraParams to another variable, for example,
- Update the proxy's extraParams to be the ones needed for the write/update operation
- When operation completes, restore the original extraParams to carry on with reading etc.
Does that sound right to you? Or have I missed a feature somewhere?
Thanks!
Last edited by Daniil; Oct 14, 2014 at 10:57 AM.
Reason: [CLOSED]