Yes, that's what I did. Warning is gone.

--- In [email protected], "Tracy Spratt" <tr...@...> wrote:
>
> No, Tim that is not correct, XML *IS* bindable. XMLList is not bindable.
> 
>  
> 
> This warning is because selectedItem is an object and Object is not
> bindable.  The fix is to cast/convert it to xml:
> 
> text="{XML(salesreps.selectedItem).ext}"
> 
>  
> 
> The warning is misleading.
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _____  
> 
> From: [email protected] [mailto:[email protected]] On
> Behalf Of Tim Hoff
> Sent: Thursday, May 28, 2009 2:35 PM
> To: [email protected]
> Subject: [flexcoders] Re: Run time Warning
> 
>  
> 
> 
> 
> 
> 
> 
> 
> Hence the warning. Like Array, XML is not bindable. You might try
> converting the XML to an XMLListCollection.
> 
> -TH
> 
> --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
> "markgoldin_2000"
> <markgoldin_2000@> wrote:
> >
> > But my XML is set to bindable.
> >
> > --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
> "Jake Churchill" jake@ wrote:
> > >
> > > Convert the XML to an arraycollection of VOs and make the entire VO
> class
> > > bindable.
> > >
> > >
> > >
> > > Jake Churchill
> > >
> > > CF Webtools
> > >
> > > 11204 Davenport, Ste. 100
> > >
> > > Omaha, NE 68154
> > >
> > > http://www.cfwebtoo <http://www.cfwebtools.com> ls.com
> > >
> > > 402-408-3733 x103
> > >
> > >
> > >
> > > From: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
> [mailto:flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com]
> On
> > > Behalf Of markgoldin_2000
> > > Sent: Thursday, May 28, 2009 8:28 AM
> > > To: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
> > > Subject: [flexcoders] Run time Warning
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > warning: unable to bind to property 'ext' on class 'XML' (class is
> not an
> > > IEventDispatcher)
> > >
> > > It's coming from:
> > > <mx:FormItem label="Ext" required="true" includeInLayout="false">
> > > <mx:TextInput id="ext" focusOut="c.formatNumbers(ext, salesreps)"
> > > width="10%"
> > > text="{salesreps.selectedItem.ext}"
> > > restrict="0-9"/>
> > > </mx:FormItem>
> > >
> > > where salesreps is a DataGrid with an XML as a dataProvider.
> > >
> > > Any idea?
> > >
> >
>


Reply via email to