I m unable to use nested repeaters...
Please help me out..
This is my mxml file
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="vertical" xmlns:outstart="*" creationComplete="cat_id.send()"
backgroundGradientAlphas="[1.0, 1.0]"
backgroundGradientColors="[#FEFEFE, #FEFEFE]">
<mx:HTTPService id="cat_id" url="assets/Columns.xml"
resultFormat="e4x" />
<mx:HTTPService id="cat_id1" url="assets/Columns.xml"
resultFormat="e4x" />
<mx:Repeater id="myRep" dataProvider="{cat_id.lastResult.columns}">
<mx:VBox x="10" y="10" height="311" width="704">
<mx:Label htmlText="{myRep.currentItem.content.title}" width="703"
height="24"/>
<mx:Text htmlText="{myRep.currentItem.content.text}" width="703"
height="43"/>
<mx:HBox width="100%" height="227">
<mx:Repeater id="myRep2"
dataProvider="{cat_id.lastResult.columns.content.columnlist.column}">
<mx:VBox height="100%" width="172">
<mx:Label htmlText="{myRep2.currentItem.title}"/>
<mx:Text htmlText="{myRep2.currentItem.text}" height="199"
width="169"/>
</mx:VBox>
</mx:Repeater>
And my XML file is...
<?xml version="1.0" encoding="utf-8" ?>
- <item identifier="0020E0620457060B2D93030B00000CD6"
display="visible">
- <label>
- <![CDATA[
Columns
]]>
</label>
- <columns identifier="00022D33DA34060B337E03010000296A"
display="visible">
- <label>
- <![CDATA[
Three Types of Change
]]>
</label>
- <content>
- <title>
- <![CDATA[
Three Types of Change
]]>
</title>
- <text>
- <![CDATA[ Whatever the reason for organizational change may be, it
is important for managers to recognize and proactively respond to the
three types of change:
]]>
</text>
- <columnlist>
- <column>
- <title>
- <![CDATA[
Products
]]>
</title>
- <text>
- <![CDATA[
<ul><li>Technology-driven</li><li>New business</li></ul>
]]>
</text>
</column>
- <column>
- <title>
- <![CDATA[
Processes
]]>
</title>
- <text>
- <![CDATA[
<ul><li>Business operations</li><li>Behavioral</li></ul>
]]>
</text>
</column>
- <column>
- <title>
- <![CDATA[
Culture
]]>
</title>
- <text>
- <![CDATA[
<ul><li>Ideology change</li><li>New vision or mission</li></ul>
]]>
</text>
</column>
</columnlist>
</content>
</columns>
- <columns identifier="00022D33DA34060B47E203010000297C"
display="visible">
- <label>
- <![CDATA[
Supply Chain Model
]]>
</label>
- <content>
- <title>
- <![CDATA[
Supply Chain Model
]]>
</title>
- <text>
- <![CDATA[
The Supply Chain Model consists of what is known as the "four Vs":
]]>
</text>
- <columnlist>
- <column>
- <title>
- <![CDATA[
Velocity
]]>
</title>
- <text>
- <![CDATA[
Increasing customer demands in shorter time frames.
]]>
</text>
</column>
- <column>
- <title>
- <![CDATA[
Visibility
]]>
</title>
- <text>
- <![CDATA[ Knowledge by customers, distributors, manufacturers, and
suppliers of where the inventory is within the entire supply chain.
]]>
</text>
</column>
- <column>
- <title>
- <![CDATA[
Variability
]]>
</title>
- <text>
- <![CDATA[ Customers wanting to change orders right up to and/or
during shipment.
]]>
</text>
</column>
- <column>
- <title>
- <![CDATA[
Volume
]]>
</title>
- <text>
- <![CDATA[ Manufacturers and distributors seek profitable flow
throughout the distribution channel.
]]>
</text>
</column>
</columnlist>
</content>
</columns>
</item>
</mx:HBox>
</mx:VBox>
</mx:Repeater>
</mx:Application>