Results 1 to 2 of 2

Thread: Reading nested data from JSON into a store

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default Reading nested data from JSON into a store

    Hi,

    I am having a JSON data like below.

    Code:
    {
    "divisions":[
    {"name": "division1","id": "div1","subdivisions":[
        {"name": "Sub1Div1","id": "div1sub1","schemes":[
            {"name": "Scheme1","id": "scheme1"},
            {"name": "Scheme2","id": "scheme2"}]},
        {"name": "Sub2Div1","id": "div1sub2","schemes":[
            {"name": "Scheme3","id": "scheme3"}]}
    
    ]}]
    }
    I want to read this in a store. I tried to read this is in a Tree store but am able to achieve that only if all the inner data elements have the same field name.

    How can I read and use it in a store in Ext-js4? Any pointers regarding this are welcome.

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409
    Answers
    716
    Vote Rating
    504
      0  

    Default

    Please review the following for loading nested data:
    http://docs.sencha.com/ext-js/4-1/#!....reader.Reader

    Scott.

Tags for this Thread

Posting Permissions

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