[flexcoders] Arrays, Pushing and DataProviders...

2005-12-12 Thread jamiebadman
I wonder if anyone can help with the following... I'm getting some weird results... Here's the basic idea: I have an array which is used as a data provider for a grid. I have a 'copy' button which calls a function that amongst other things, does this:

Re: [flexcoders] Arrays, Pushing and DataProviders...

2005-12-12 Thread Douglas Knudsen
I may be off here, but isn't ModelLocator.creditItemList.push(ModelLocator.creditItemList [dgItems.selectedIndex]); pushing a reference to your selected item on the the dataProvider? That would mean both your original selectedItem and this new 'copy' would be selected. DK On 12/12/05,