PDA

View Full Version : Treestore: problem with nested root



kathy_s
5 Jan 2012, 12:16 AM
Is it possible to have a nested root in the reader of the Treestore's proxy?

If I set the root to 'result.rows', I get the following error in function 'functionFactory':

obj.result is undefined
return Function.prototype....tor.apply(Function.prototype, args);

I can't change the server side (it's an egl service and egl also wraps the response in 'result' and there are more fields in 'result' besides 'rows').
Does anybody know how I can solve this?

Thanks.

mitchellsimoens
5 Jan 2012, 9:57 AM
Does using the root config of the reader work?

kathy_s
5 Jan 2012, 1:24 PM
No, the following doesn't work:


reader: {
type: 'json',
root: 'result.rows'
}

kathy_s
6 Jan 2012, 3:23 AM
I' m still no closer to a solution.
Anybody has a tip for solving this issue?

power651113
8 Nov 2013, 8:06 PM
I' m still no closer to a solution.
Anybody has a tip for solving this issue?

Do you have solution. I sm having the same issue. Please help me out.