Has anyone else ever had this problem?  Why won't the binded combox
show the changes?

On Mar 26, 2:04 pm, Kairi Cooper <[email protected]> wrote:
> So, what would be the proper syntax(code) for the array then?
>
>
>
> On Fri, Mar 26, 2010 at 1:37 PM, Akki <[email protected]> wrote:
> > Hi,
> > The problem is with the line:
> > vendors = new ArrayCollection(event.result as Array);
>
> > As per my understanding you must have defined something like
>
> > <mx:ComboBox dataProvider = {vendors}/>
>
> > So the data provider is bound to the one particular instance of array
> > collection named vendors. If there is any change to it, that would be
> > reflected. But if you try to reinitialize the same varibale (vendor)
> > that particular instance is not there and no question of changes being
> > reflected. So make changes to that instance only and then it would be
> > reflected.
>
> > Cheers,
> > Akhil
>
> > On Mar 26, 8:58 pm, Akshar Kaul <[email protected]> wrote:
> > > try
>
> > >  public function vndListHandler(event:
> > > ResultEvent):void
> > >            {
> > >                vendors.removeAll();
> > >                vendors = new ArrayCollection(event.result as Array);
> > >                vendors.refresh();
> > >             }
>
> > > Akshar Kaul
>
> >  > On Fri, Mar 26, 2010 at 20:16, genius818 <[email protected]>
> > wrote:
> > > > So let me know if I have this correct because I believe I am already
> > > > doing what you are suggesting, but my combobox doesn't display the new
> > > > value that has been inserted in the database and returned in the
> > > > array.  When I debug the code I can see that the new value is in the
> > > > array, but combo in the app doesn't show the new list of values in the
> > > > array.  How do I refresh the combo to show the newly added list.
>
> > > >            [Bindable]
> > > >            public var vendors:ArrayCollection = new
> > > > ArrayCollection();
>
> > > >            public function vndListHandler(event:ResultEvent):void
> > > >            {
> > > >                vendors.removeAll();
> > > >                vendors = new ArrayCollection(event.result as Array);
> > > >             }
>
> > > > On Mar 26, 12:50 am, Dinesh Reddy Rekula <[email protected]> wrote:
> > > > > Hi
>
> > > > > Enable [Bindable] property  on the array collection.
>
> > > > > For Example,
> > > > > [Bindable]
> > > > > private  var arr:ArrayCollection = new ArrayCollection();
>
> > > > > Thanks,
> > > > > Dinesh
>
> > > > > On Fri, Mar 26, 2010 at 12:19 AM, genius818 <[email protected]>
> > > > wrote:
> > > > > > I have an array collection that I am refreshing using an Remote
> > > > > > Object.  The array collection is binded to a combobox, but my
> > probelm
> > > > > > is that when I refresh the array it doesn't refresh options for the
> > > > > > combo.  Any suggestions?
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > Groups
> > > > > > "Flex India Community" group.
> > > > > > To post to this group, send email to [email protected].
> > > > > > To unsubscribe from this group, send email to
> > > > > > [email protected]<flex_india%2bunsubscr...@googlegrou­ps.com>
> > <flex_india%2bunsubscr...@googlegrou­ps.com>
> > > > <flex_india%2bunsubscr...@googlegrou­ps.com>
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/flex_india?hl=en.-Hidequoted text -
>
> > > > > - Show quoted text -
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Flex India Community" group.
> > > > To post to this group, send email to [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<flex_india%2bunsubscr...@googlegrou­ps.com>
> > <flex_india%2bunsubscr...@googlegrou­ps.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/flex_india?hl=en.-Hide quoted text -
>
> > > - Show quoted text -
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Flex India Community" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<flex_india%2bunsubscr...@googlegrou­ps.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/flex_india?hl=en.- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to