PDA

View Full Version : Nested Xml with associations?



kaine
18 Oct 2010, 3:20 AM
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.


<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>

Plastic
19 Nov 2010, 10:22 AM
it seems it's already unsolved... i got the same issue...

edspencer
22 Nov 2010, 5:43 PM
FYI this is resolved as of the next release. See http://www.sencha.com/forum/showthread.php?115033-FIXED-583-nested-xml-complex-xml-cant-get-associations-to-work for details. The next patch release is imminent.

swarnendude
15 Feb 2012, 3:46 AM
FYI this is resolved as of the next release. See http://www.sencha.com/forum/showthread.php?115033-FIXED-583-nested-xml-complex-xml-cant-get-associations-to-work for details. The next patch release is imminent.

Is this issue resolved in ST 1.1? Or in ST 2 beta?