1. #1
    Ext User
    Join Date
    Oct 2010
    Posts
    1
    Vote Rating
    0
    kaine is on a distinguished road

      0  

    Question Nested Xml with associations?

    Nested Xml with associations?


    Hello, I have been playing with Touch for a couple of days, and now I have a question.

    If you read xml data via a store, can you use the different associations to read nested data?

    For instance I have a 'person' and he has several friends, but the number of friends is unknown. I saw the 'Ext.data.associations' on the API doc, but the Json example of the 'belongstoassociation' doesn't work when I try to convert it to XML.

    PHP Code:
    <person>
        <
    id>1</id>
        <
    name>Smith</name>
        <
    friends>
            <
    friend>
                <
    id>2</id>
            </
    friend>
            <
    friend>
                <
    id>3</id>
            </
    friend>
            <
    friend>
                <
    id>...</id>
            </
    friend>
        </
    friends>
        <
    other params>...</other params>
    </
    person

  2. #2
    Ext User
    Join Date
    Oct 2010
    Posts
    15
    Vote Rating
    0
    Plastic is on a distinguished road

      0  

    Default


    it seems it's already unsolved... i got the same issue...

  3. #3
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    9
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    FYI this is resolved as of the next release. See http://www.sencha.com/forum/showthre...ations-to-work for details. The next patch release is imminent.
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  4. #4
    Sencha User swarnendude's Avatar
    Join Date
    Jul 2009
    Location
    Kolkata, India
    Posts
    117
    Vote Rating
    1
    swarnendude is on a distinguished road

      0  

    Default


    Quote Originally Posted by edspencer View Post
    FYI this is resolved as of the next release. See http://www.sencha.com/forum/showthre...ations-to-work for details. The next patch release is imminent.
    Is this issue resolved in ST 1.1? Or in ST 2 beta?
    Swarnendu
    Co-founder & Lead Architect @ Innofied

    ------------------
    I blog at http://www.swarnendude.com

Similar Threads

  1. Loading data from associations
    By omarc in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 10 Dec 2010, 6:09 PM
  2. Error in associations (0.96)
    By herkulano in forum Sencha Touch 1.x: Discussion
    Replies: 8
    Last Post: 22 Oct 2010, 11:07 AM
  3. Nested XML reader...
    By lincStar in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 31 Dec 2009, 4:06 AM
  4. Nested View Objects/Nested Xml collections
    By dwebsubmit in forum Ext 1.x: Help & Discussion
    Replies: 10
    Last Post: 11 Oct 2007, 2:30 PM

Thread Participants: 3