Try: dataProvider="{ rpCustomFields.currentItem.CustomFieldItems
}" Tracy From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Cox All, I’ve a
little problem I’m struggling to get my head around. Basically I have an ArrayCollection containing a ‘CustomField’
object. This object contains various fields in addition to an ArrayCollection called CustomFieldItems
which contains further objects. These CustomFieldObjects
don’t exist at start, they are populated using a
webservice call. Now the
issue I have is the need to display them using a repeater like so: <mx:Form width="100%"
height="100%">
<mx:Repeater id="rpCustomFields" dataProvider="{model.allCustomFields}">
<mx:FormItem
width="100%" label="{rpCustomFields.currentItem.Name}">
<mx:ViewStack
width="100%" height="100%">
<mx:VBox
width="100%">
<mx:Repeater id="rpCustomFieldItem" dataProvider="{
model.allCustomFields.getItemAt( rpCustomFields.currentIndex
).CustomFieldItems }">
<!--<mx:CheckBox label="{ rpCustomFieldItem.currentItem.ExtraInfoPrompt }"
/>-->
</mx:Repeater>
</mx:VBox>
</mx:ViewStack>
</mx:FormItem>
</mx:Repeater> </mx:Form> Upon first
view this works fine, however subsequent views are causing the following error: Error:
Repeater is not executing. I believe this is due to the binding on: <mx:Repeater id="rpCustomFieldItem" dataProvider="{
model.allCustomFields.getItemAt( rpCustomFields.currentIndex
).CustomFieldItems }"> My question
is, how would you go about doing something like the
above? Thanks, Steve Quba's e-mail disclaimer The
information contained in this email and any attachments is intended only for
the use of the individual to whom it is addressed and may contain information
that is privileged and confidential, the disclosure of which is strictly
prohibited by law.If you have received this e-mail in error, please notify the
sender immediately and delete this e-mail. Any
views expressed in this e-mail are those of the individual sender. This email
message and any attached files have been scanned for the presence of computer
viruses. However, you are advised that you open any attachments at your own
risk. We thank you for your co-operation. Quba
New Media Ltd -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|