Re: Re: [flexcoders] [Bindable] is not getting updated..

2008-09-24 Thread Josh McDonald
I'll try and explain with pseudo code: //Creates an instance, and sets "a" to a reference to the new instance a = new FooMachine(); a.barProperty = 7; //Now "b" is a new *reference* to the same instance. Now we say a === b b = a; //outputs "7"; trace(b.barProperty); a.barProperty = 9; //outpu

Re: Re: [flexcoders] [Bindable] is not getting updated..

2008-09-24 Thread Manu Dhanda
But Josh, as I put in my previous posts, I used a local arraycollection(instead of ListCollectionView) pointing to Model, so that only my local will get changed when i 'll apply any filter to it. But, then, my local doesn't update with the changes in Model. This was my problem originally. My loca

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-23 Thread Josh McDonald
t; first ... > Because iam damn sure it will work . > > Thanks, > > with Regards, > Jitendra Jain > Software Engineer > 91-9979960798 > > - Original Message > From: Manu Dhanda <[EMAIL PROTECTED]> > To: flexcoders@yahoogroups.com > Sent: Wednes

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-23 Thread Manu Dhanda
Now, I have a workaround for this problem. But the thing is that I want to understand why BindingUtils OR [Bindable] is not working. My solution is as follows: I am using another instance method(getMyDataProvider) as a dataprovider for my list and passing "ProgramModel.getInstance().woCalSelected

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-23 Thread jitendra jain
m Sent: Wednesday, 24 September, 2008 9:22:43 AM Subject: Re: [flexcoders] [Bindable] is not getting updated.. Hi.. Josh, The way you said will work as I said earlier that ProgramModel is updated. But the problem is I want to bind model to a local variable and after that I want to do some filter

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-23 Thread Manu Dhanda
Hi.. Josh, The way you said will work as I said earlier that ProgramModel is updated. But the problem is I want to bind model to a local variable and after that I want to do some filtering on that. Filtering I don't want to apply to my model, but want to keep it to my local. Jitendra, I tried

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-23 Thread jitendra jain
:35 AM Subject: Re: [flexcoders] [Bindable] is not getting updated.. Ok, here is my concerned code snippet: ... [Bindable] public var woCalVO:WOCalVO = ProgramModel. getInstance( ).woCalSelectedD ayData; private function onInitialize( ):void{ BindingUtils. bindProperty( this,"woCalVO&quo

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-23 Thread jitendra jain
ct: Re: [flexcoders] [Bindable] is not getting updated.. Ok, here is my concerned code snippet: ... [Bindable] public var woCalVO:WOCalVO = ProgramModel. getInstance( ).woCalSelectedD ayData; private function onInitialize( ):void{ BindingUtils. bindProperty( this,"woCalVO&quo

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-23 Thread Josh McDonald
[Bindable] public var pm : ProgramModel = ProgramModel.getInstance(); >filterReset(); // doing some filtering on woCalVO.programList, but > it is > useless until i get this updated. >setFilter(); > } > > on every change. But, it doesn't. > OR Do I need to fire any Flex even

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-23 Thread Manu Dhanda
Ok, here is my concerned code snippet: ... [Bindable] public var woCalVO:WOCalVO = ProgramModel.getInstance().woCalSelectedDayData; private function onInitialize():void{ BindingUtils.bindProperty(this,"woCalVO",ProgramModel.getInstance(),"woCalSelectedDayData"); filterReset(); /

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-23 Thread Haykel BEN JEMIA
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 e

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-23 Thread Ralf Bokelberg
; Jitendra Jain > Software Engineer > 91-9979960798 > > - Original Message ---- > From: Manu Dhanda <[EMAIL PROTECTED]> > To: flexcoders@yahoogroups.com > Sent: Tuesday, 23 September, 2008 4:43:12 PM > Subject: Re: [flexcoders] [Bindable] is not getting updated.. > > &

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-23 Thread jitendra jain
iginal Message From: Manu Dhanda <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Tuesday, 23 September, 2008 4:43:12 PM Subject: Re: [flexcoders] [Bindable] is not getting updated... Do I explicitly need to dispatch any event for BindUtils.bindPrope rty(..) to happen ??

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-23 Thread Manu Dhanda
t; > > - Original Message > From: jitendra jain <[EMAIL PROTECTED]> > To: flexcoders@yahoogroups.com > Sent: Monday, 22 September, 2008 9:03:42 AM > Subject: Re: [flexcoders] [Bindable] is not getting updated.. > > > Hi, > > Instead of this use > Binding

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-22 Thread Manu Dhanda
his: >> > >> > BindingUtils.bindProperty(this, "myValue", sourceObject, "someValue"); >> > >> > Then whenever sourceObject tells the word that "someValue" has been >> > updated >> > (with events), Flex will set

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-22 Thread Haykel BEN JEMIA
> >> Hi Paul, > >> > >> if [Bindable] works just for initialization, then I think it is loosing > >> it's > >> existence altogether. > >> > >> At least I think it this way.. that [Bindable] changes with every change > >> th

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-21 Thread jitendra jain
y, 22 September, 2008 9:03:42 AM Subject: Re: [flexcoders] [Bindable] is not getting updated.. Hi, Instead of this use BindingUitls. bindProperty( this,"xyz" ,MyModel, getInstance( ).someVar) ; This statement is called in the creationComplete of the component. Cheers it will work..  

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-21 Thread jitendra jain
From: Manu Dhanda <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Monday, 22 September, 2008 8:56:09 AM Subject: Re: [flexcoders] [Bindable] is not getting updated.. Josh, Is it a right way to do the following: [Bindable] private var xyz:String = MyModel.getInstance ().someVar; N

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-21 Thread Manu Dhanda
then I think it is loosing >> it's >> existence altogether. >> >> At least I think it this way.. that [Bindable] changes with every change >> that it is bind to. And not just it's initialization. >> >> Waiting for expert comments.. >> >> Thanks, &g

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-21 Thread Josh McDonald
think it this way.. that [Bindable] changes with every change > that it is bind to. And not just it's initialization. > > Waiting for expert comments.. > > Thanks, > Manu. > > > Paul Andrews-4 wrote: > > > > - Original Message - > > From: &

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-21 Thread Manu Dhanda
ul Andrews-4 wrote: > > - Original Message - > From: "Manu Dhanda" <[EMAIL PROTECTED]> > To: > Sent: Monday, September 22, 2008 3:08 AM > Subject: [flexcoders] [Bindable] is not getting updated.. > > >> >> Hii Guyz, >> >>

Re: [flexcoders] [Bindable] is not getting updated..

2008-09-21 Thread Paul Andrews
- Original Message - From: "Manu Dhanda" <[EMAIL PROTECTED]> To: Sent: Monday, September 22, 2008 3:08 AM Subject: [flexcoders] [Bindable] is not getting updated.. > > Hii Guyz, > > Although it's very strange (even for me), but this [Bindable] tag

[flexcoders] [Bindable] is not getting updated..

2008-09-21 Thread Manu Dhanda
Hii Guyz, Although it's very strange (even for me), but this [Bindable] tag is not working for me. I am following the cairngorm structure and storing a variable in Model. Now, in one of my code file, if I 'll create a local bindable variable, that binds to model.. then it is not being updated w