Sorry, can't help you if you aren't using Flex code

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rss181919
Sent: Wednesday, August 27, 2008 6:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: help binding to combo box selectedItem

 

NtpClass is just a Number type property of NtpVO class. 
NtpClass is declared as bindable in the NtpVO class definition. 
NtpIn is an instance of NtpVO cast as Object.

I am using flashdevelop and i don't get any warnings.

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> What is NtpClass? Is it bindable? Are you getting any warnings?
> 
> 
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>

[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of rss181919
> Sent: Tuesday, August 26, 2008 5:59 PM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] help binding to combo box selectedItem
> 
> 
> 
> i have a custom combo box and i seem to be having trouble binding 
and 
> object variable to the selectedItem reference. I have a panel that 
> contains the combo box. In the panel constructor I have the 
following:
> 
> BindingUtils.bindProperty(NtpIn, 'NtpClass', 
> ClsCbxObj.selectedItem, 'ClsId');
> 
> In my change event on the combo box I reference the following:
> Alert.show(ClsCbxObj.selectedItem.ClsId);
> Alert.show(NtpIn.NtpClass);//NtpOut.NtpClass = 
> ClsCbxObj.selectedItem.ClsId;
> 
> Line 1 results the correct ClsId. Line 2 reflects the original 
setting 
> initialized during construction. So I know the value is changing 
but 
> there is no binding dispatch event going out. I am assuming I just 
> need to set one of the properties somewhere to be bindable but 
which 
> one.
>

 

Reply via email to