here is a little test to illustrate what I am trying to do (except it
doesn't work.) I was hoping that updating the dataProvider would add
another item to the repeater...
<mx:Script>
<![CDATA[
public var myArray:Array = ['test1','test2','test3'];
public function addItem():void{
myArray.push('test4');
}
]]>
</mx:Script>
<mx:VBox>
<mx:Repeater id="rp" dataProvider="{myArray}" >
<mx:TextInput id="myRepeat" />
</mx:Repeater>
<mx:Button label="click me" click="addItem();" />
</mx:VBox>
On Mar 24, 2007, at 5:16 PM, Kevin wrote:
I have a repeater (adding TextInput fields) that is bound to an
ArrayCollection on my model. I was hoping that essentially I could
add a row by just pushing a value into my ArrayCollection on the
model. However, this isn't working. I assume I need to also
"refresh" the repeater, but can't seem to figure out the best way to
do that.
Thanks, Kevin