Tim –thanks for the reply – only one I didn’t cover is 4. Everything else is as it should be.  Typically I’d post code too ( probably one of the rare occasions I didn’t) but I was looking for what you replied with – some high level check these first items.

 

Ceheers!

 


From: [email protected] [mailto:[email protected]] On Behalf Of Tim Hoff
Sent: Tuesday, June 06, 2006 1:40 AM
To: [email protected]
Subject: [flexcoders] Re: Cairngorm Bindings etc

 

Hi Stacey,

Here's couple of debugging thoughts. But, it's hard to tell without
seeing some of your code.

1. What have you changed recently?
2. Is the model's namespace correct in the view and command?
3. Are you using curly brackets for binding in the view? Like:
{ModelLocator.getInstance().dataArray}.
4. Are you certain that the model is getting updated by the
command? (Did you change result to lastResult?)
5. Are you updating the underlying array of an ArrayCollection or
the ArrayCollection itself? (Does the ArrayCollection need to be
refreshed because of a filter function?).
6. Perhaps, by trying to fix this problem, you've added some code in
the ModelLocator that is interfering with it's function. Maybe try
to revert to an earlier version or start a new model (basic
structure) from scratch.

Obviously, these are just guesses. If you post some code, maybe
someone will see something. I don't like blank screens either. :)

-TH

--- In [EMAIL PROTECTED]ups.com, <[EMAIL PROTECTED]> wrote:
>
> Using Carigngorm , which i love.
> I have never had a problem up until now, but i can't bind to my
fricking
> model regardless of going creating a private var to hold a model
refernece
> or going straight to ModelLocator.getInstance().dataArray;
>
> Its driving me nuts, the bindings are definitely not taking even
tho i
> tried making the Model class itself bindable, making just the
dataArray on
> the model bindable - etc(with the [Bindable] bit ). This is like
my fifth
> app with Cairngorm and first time i have had this and i don't
think i am
> missing any of the basics ( but who knows. )The model is getting
updated
> properly but the bindings themselves are not in place.
>
> One thing i am doing is I am having the command pass the Model an
object
> of a certain type and having the model check to see if the item
exists in
> its data, if it does it does the itemUpdated on the collection and
if not,
> it adds it. But no matter how i do this ( using an
arraycollection, just
> modifying hte array) it totally doesn't fire an update of any sort
that
> any item on the view captures. I am not sure if this is proper or
right or
> whatever, and this is definitely something different I am doing.
>
> I'm likely missing something basic - but anyone have any
suggestions of
> where to look - I've been looking at a blank screen with no luck.
>
> I'll take most noobified question for 500 Alex....
> Thanks in advance for any suggestions.
>

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to