I'm using a comboBox as an itemEditor in an ADG.  I am having a couple
issues.

1.  I would like to populate the comboBox with dynamic data but anytime I
put in an value for the dataprovider which calls a bindable variable it
tells me it can't find the variable.

2.  I tried to set the dataprovider from actionscript when I get the info
saying something like

    pickStat.dataProvider = whatever

Problem is that I can't reference the combobox itemeditor from actionscript
either.  It has the id field specified and named pickStat.

The only think I can think is happening is that I can't reference any of the
itemEditor stuff until it is actually displayed because it is not there
otherwise.  Could this be my problem, and if so what do I do to work around
this?

Code of itemRender and itemEditor is below


 <mx:itemRenderer>
                                <mx:Component>

<mx:Text selectable="false" width="100%" 

text="{data.statsField}"/>
                                </mx:Component>

</mx:itemRenderer>
                

<mx:itemEditor>
                                    <mx:Component
className="theComboBoxTwo">
                                   

<mx:VBox backgroundColor="white">

<mx:Script>
                                         <![CDATA[

import mx.collections.ArrayCollection;

]]>
                                     </mx:Script>

                                      <mx:ComboBox id="pickStat"
dataProvider="{new ArrayCollection([{label: 'less than'}, {label: 'is not
less than'}, {label: 'less than or equal to'},

{label: 'greater than'}, {label: 'is not greater than'}])}" /> 

                                        </mx:VBox>

</mx:Component>                 

</mx:itemEditor>
-- 
[EMAIL PROTECTED]
785-832-9154



Reply via email to