You also need to put [Bindable] in your ModelLocator class.
 
[Bindable]
public var ICV: ICollectionView;
 
Benoit Hediard


De : [email protected] [mailto:[EMAIL PROTECTED] De la part de Jonathan Miranda
Envoyé : vendredi 24 mars 2006 01:30
À : [email protected]
Objet : [flexcoders] Cairngorm Model binding problem

Alright, I’m attempting to move my little dashboard to Cairngorm and it’s going alright but now I’ve got a real basic problem and it’s stumping me – I know it’s something little but I’m stuck. In my ModelLocator instance I have an ICollectionView. Service gets called by event/delegates and the command responder is setting the model.ICV correctly….but my chart which uses dataProvider=”{model.ICV}” isn’t updating. Now, since I made in my chart component:

[Bindable]

public var model : ModelLocator = ModelLocator.getInstance();

<mx:LineChart id="salesChart" dataProvider="{model.ICV}"….

And in my ModelLocator file:

public var ICV: ICollectionView;

I’m assuming the problem is somewhere in the binding – do I need to broadcast an update event to the Chart….that doesn’t sound right though, anytime an ICV changes I shouldn’t have to do that right? Bah, having a headache isn’t helping….anyone got any ideas where I went wrong?

_________________________________________

Jonathan Miranda

Flexible Master of the Web

"Try not to become a man of success, but a man of value." - Albert Einstein

HealthGrades: Guiding America to Better Healthcare™

NASDAQ: HGRD

w  (720) 963-3832

c  (707) 761-0868

[EMAIL PROTECTED]

_________________________________________

The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee.  If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.



--
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