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
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
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
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
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
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
: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
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
[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
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(); /
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
; 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..
>
>
&
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 ??
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
his:
>> >
>> > BindingUtils.bindProperty(this, "myValue", sourceObject, "someValue");
>> >
>> > Then whenever sourceObject tells the word that "someValue" has been
>> > updated
>> > (with events), Flex will set
> >> 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
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..
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
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
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: &
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,
>>
>>
- 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
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
23 matches
Mail list logo