Make sure ProgramModel is also BindableThanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798 



----- Original Message ----
From: jitendra jain <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, 24 September, 2008 9:17:14 AM
Subject: Re: [flexcoders] [Bindable] is not getting updated..


Instead of ProgramModel. getInstance( ), use ProgramModel. getInstance Thanks,

with Regards,
Jitendra Jain
Software Engineer
91-9979960798 



----- Original Message ----
From: Manu Dhanda <manuraj..dhanda@ gmail.com>
To: [EMAIL PROTECTED] ups.com
Sent: Wednesday, 24 September, 2008 7:52:35 AM
Subject: Re: [flexcoders] [Bindable] is not getting updated..



Ok, here is my concerned code snippet:

<mx:Canvas ...>
...
....

[Bindable] public var woCalVO:WOCalVO =
ProgramModel. getInstance( ).woCalSelectedD ayData;

private function onInitialize( ):void{

BindingUtils. bindProperty( this,"woCalVO" ,ProgramModel. getInstance( 
),"woCalSelected DayData") ;

filterReset( ); // doing some filtering on woCalVO.programList , but it is
useless until i get this updated.
setFilter();
}

<mx:List id="lfList" dataProvider= "{woCalVO. programList} />

...
....
<mx:Canvas/>

Now, by assumptions, "woCalVO" should be updated to "woCalSelectedDayDa ta"
on every change. But, it doesn't.
OR Do I need to fire any Flex event like Data_CHANGE or something to make it
work. And now, what should be the ideal way to make it work?

Thanks everyone being 'n bearing me for soo long..

-Manu.

Haykel BEN JEMIA wrote:
> 
> someVar must be bindable and dispatch an event.If you have a setter and
> getter for the property, or it's a public property, just use the
> [Bindable]
> metatag.
> Otherwise, if you only have a getter, you have to use the
> [Bindable(event= "event
> name")] syntax with the getter and dispatch the given event every time the
> property is changed.
> 
> 
> 
> On Tue, Sep 23, 2008 at 1:13 PM, Manu Dhanda
> <manuraj.dhanda@ gmail.com>wrote:
> 
>>
>> Do I explicitly need to dispatch any event for BindUtils.bindPrope rty(..)
>> to
>> happen ??
>>
>> Cuz, I am not getting my "xyz" var changed with the change in someVar.
>>
>> Note: I am putting this line of code
>> (BindingUtils. bindProperty( this,"xyz" ,MyModel. getInstance, "someVar" ) in
>> creationComplete( ).
>>
>> Thanks,
>> Manu.
>>
> 
> 

-- 
View this message in context: http://www.nabble. com/-Bindable- 
-is-not-getting- updated.. -tp19600797p1964 0742.html
Sent from the FlexCoders mailing list archive at Nabble.com.


________________________________
Download prohibited? No problem. CHAT from any browser, without download.  


      Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

Reply via email to