Results 1 to 5 of 5

Thread: Treestore: problem with nested root

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    24
    Vote Rating
    1
      1  

    Default Treestore: problem with nested root

    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.

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,307
    Answers
    3992
    Vote Rating
    1477
      0  

    Default

    Does using the root config of the reader work?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Dec 2011
    Posts
    24
    Vote Rating
    1
      0  

    Default

    No, the following doesn't work:

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

  4. #4
    Sencha User
    Join Date
    Dec 2011
    Posts
    24
    Vote Rating
    1
      0  

    Default

    I' m still no closer to a solution.
    Anybody has a tip for solving this issue?

  5. #5
    Sencha User
    Join Date
    Sep 2013
    Posts
    5
    Vote Rating
    1
      1  

    Default

    Quote Originally Posted by kathy_s View Post
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •