24 Jul 2012 10:13 AM #1
How to change filter encoding / override json proxy?
Hi, I want to change the how the filter are encoded in a request. Extjs4 encode filters like that:
I need help because I couldn't manage to override the proxy inside Architect because it's nested inside a model.
Any help on how to do that? Is there a simpler way?
24 Jul 2012 10:28 AM #2
Are you looking for simpleGroupMode or simpleSortMode?
25 Jul 2012 4:27 AM #3
It's something like to have simpleGroupMode enabled, but instead of a direction it must send a parameter and a value for filtering.
I would like to ask the server for students with age of 10, that way:
But Extjs make the filtering like stated bellow and I don't want that:
Last edited by pablotcarreira; 25 Jul 2012 at 4:28 AM. Reason: smiles
25 Jul 2012 8:11 AM #4
This is a good feature request for the SDK team. There should be a similar configuration to send those params over the wire.
You could implement that with an override (globally as an override). And then add the new configuration to the individual proxy you want to do it. Alternatively you could override all Server proxies to send filters in your preferred manner.Aaron Conran
25 Jul 2012 10:43 AM #5
Is there a way to override a proxy from inside Architect? I could only manage to override the model or the store, but not the proxy...
25 Jul 2012 10:54 AM #6
There is not a way to create a subclass/override of your individual proxy but you can create an override that will do it for all proxies.Aaron Conran