Post your repeater declaration code and the code you use to update the
dataProvider.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Tina Scurlock
Sent: Tuesday, November 20, 2007 3:00 PM
To: [email protected]
Subject: [flexcoders] Repeater is not executing when changing the
dataProvider

 

I am having the same problem.  Was there ever a solution for this issue?




RE: [flexcoders] Error: Repeater is not executing.
Tracy Spratt
Tue, 27 Mar 2007 17:04:46 -0800

First you are not doing the repeater quite right.  Try this: 

<mx:Repeater dataProvider="{_main._newss}" id="newsRepeater">
<mx:Label text="{newsRepeater.currentItem.myProperty}"/>
</mx:Repeater>



The currentItem propeerty already holds a reference to the dataProvider 
item that is generating the current repeater instance.



Second, the Label needs a text value, which will be one of the
properties on your dataProvider item objects.



Tracy

________________________________ 

From: [email protected] <mailto:[email protected]>
[EMAIL PROTECTED] On
Behalf Of thierrybertossa
Sent: Tuesday, March 27, 2007 5:31 AM
To: [email protected] <mailto:[email protected]> 
Subject: [flexcoders] Error: Repeater is not executing.



I have a repeater:

<mx:Repeater dataProvider="{_main._newss}" id="newsRepeater">
<mx:Label text="{_main._newss.getItemAt(newsRepeater.currentIndex)}"/>
</mx:Repeater>

_newss, is an instance of a custom Newss Class extends ArrayCollection.

When I change _newss like this: 
_newss = new Newss();

I have an error:
Error: Repeater is not executing.

Is there a way to dynamically change repeater's Dataprovider without 
having this kind of probleme.

Thanks 
Thierry 

 

Reply via email to