Nathan & Claudieu,
Thanks for the response. After I posted my question I started reading and thinking how to correct this and came up with the same idea Nathan suggested. I started refactoring everything and so far it is going great.



On Apr 10, 2009, at 3:46 AM, "nathanpdaniel" <ndan...@bsi-scs.com> wrote:



Wrap your head around the idea that the model controls the view. Even the "data" portions. You should bind your combo box dataprovider to the model property storing that data (from server based on combo box 1 selection). Why you don't need cairngorm for enabling? You can just set you're 2nd combo box's enabled property to {combobox1.selectedIndex &gt; -1}. An alternative using cairngorm is if your dataprovider (in the model) is null, disable combo box 2, if it has data, enable it.
Hope this helps!

> From: skusunam <skusu...@...>
> To: flexcoders@yahoogroups.com
> Sent: Thursday, April 9, 2009 7:53:48 PM
> Subject: [flexcoders] Cairngorm Question
>
>
>
>
>
> Hello Group,
>
> This is my first question on this group and I have been referring to this group for all my technical challenges with Flex (started using 1 month back). Thanks for such a nice group and support.
>
> I have a complex screen where I have 2 Combo boxes and by default Combo-2 is disabled and will be enabled only when user selects Combo-1 and Server returns any Objects for Combo-2 otherwise it will be still disabled.
>
> I have defined an Event `LoadCombo2Event' which is dispatched when user selects an entry from Combo-1 and the results will be handled in `LoadComb2Command' . I do not have access to Combo2 in this command to Enable or Disable?
>
> How do we handle this case using Cairngorm?
>
> Thanks,
> Sre
>


*****************************************************************
This message has originated from R. L. Polk & Co.'s RLPTechnologies Division, 26988 Northwestern Highway, Southfield, MI 48033. If you do not wish to receive further e-mails regarding RLPTechnologies, please forward this e-mail to do_not_s...@polk.com with the word "remove" in the subject line.

This e-mail message and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this message in error, please delete this message and notify the RLPTechnologies System Administrator at postmas...@polk.com.
*****************************************************************

Reply via email to