Hybrid View
-
5 Jul 2012 10:21 PM #1
The default request parameters of TreeStore
The default request parameters of TreeStore
Ext version tested:
- Ext 4.1.1(GA)
- Chromium 18.0.1025.168 (Ubuntu 12.04)
- TreeStore - it will be two request parameters when it loading: node & id. id is superfluous, it may cause trouble to the service side.
-
6 Jul 2012 6:01 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
This is done on purpose so that the proxy can create the correct url if it's rest
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
7 Jul 2012 4:56 AM #3
It would be nice to be able to disable it by setting the nodeParam to ''.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
9 Jul 2012 4:23 AM #4
It seems this is causing my Problem, too
It seems this is causing my Problem, too
With 4.1.1., Ext.direct and TreeStore i've got the following id specific Problem
My Settings seem to be more or less ignored
nodeParam: 'parent_id',
defaultRootProperty: 'group_id'
node: {id: "57729" group_id: "1", parent_id: "0"}
sends
now
Object {parent_id = "57729", id_catalog_group_system=31, id="57729" }
or
Object {parent_id = "1", id_catalog_group_system=31, id="1" }
instead of
Object {parent_id = "1", id_catalog_group_system=31}
as in ExtJS 4.0.7Last edited by woody; 10 Jul 2012 at 1:46 AM. Reason: additional info
Bernhard Werner
-
10 Jul 2012 1:44 AM #5
As I am using Ext.direct, I do not understand why there is sent an additional param "id", since ExtJS version 4.1.1.
If it's a bugfix for Rest then it should be used only with Ext.data.Proxy.Rest only.
Does someone know where the "id" is set anyhow.
So i thought the request would now content no data.Code:beforeload: function(store, operation eOpts){ console.log(operation.params); // Object {parent_id='1', id='1'); operation.params = undefined; console.log(operation.params); // undefined; }
There was sent Object{id='1'} don't know, and can't tell where that came in again.Bernhard Werner
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJSIV-6746
in
4.1.2.


Reply With Quote