views:

213

answers:

0

In the main Canvas of a ViewStack I have a few combobox and a two buttons. Each is coded appropriately.

In one of my canvases the buttons and comboboxes are enabled. But, on the main canvas all are greyed-out and disabled. I have put enabled="true" on each of the elements.

I am new to Flex and have been trying to troubleshoot this for a few days now. Can anyone point me in the appropriate direction to making these buttons enabled at all times?

<mx:ViewStack width="100%" height="100%" id="myViewStack" >  
 <mx:Canvas id="cnv2" width="100%" height="100%" enabled="true" 
  creationCompleteEffect="initApp();" >  
  <mx:HBox height="200">

   <mx:ComboBox id="HCO" enabled="true" dataProvider="{HCO}" rowCount="15" 
    width="100%" close="selectedItem=ComboBox(event.target).selectedItem"/>

   <mx:ComboBox id="Qtr" enabled="true" dataProvider="{Quarter}" 
    rowCount="{Quarter.length}" width="100%" 
    close="selectedItem=ComboBox(event.target).selectedItem"/>

   <mx:ComboBox id="MSet" enabled="true" dataProvider="{MeasureSet}" 
    rowCount="{MeasureSet.length}" width="100%" 
    close="selectedItem=ComboBox(event.target).selectedItem"/> 

   <mx:Button label="Get Extraction List" enabled="true" 
    click="nwCL.Get_Extract_List(HCO.selectedItem,MSet.selectedItem,Qtr.selectedItem);"/>

   <mx:Button label="Refresh" enabled="true" click="initApp();" />

 </mx:HBox>

above is some of the code for the page I am working with. The buttons call for two different functions that will populate a datagrid below these buttons. I am not sure why they are disabled and greyed out. There is a ViewStack with 4 children (canvas) underneath it. Could this have something to do with it?

Thanks, William