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