0 Replies Latest reply on Mar 26, 2012 12:45 PM by majester8425

    Need help coneverting data provider for inline <fx:Component renderer for a datagrid

    majester8425

      I want to use an existing inline item renderer and point the hard coded data provider to an arraycollection, which comes from a database.

       

      At firt glance this looks easy, just change

       

      <fx:Declarations>
        <fx:Component id="inlineEditor">
         <mx:ComboBox >
          <mx:dataProvider>
           <fx:String></fx:String>
           <fx:String>AIG</fx:String>
           <fx:String>BHN</fx:String>
           <fx:String>FH</fx:String>
           <fx:String>LM</fx:String>
           <fx:String>SD</fx:String>
          </mx:dataProvider>
         </mx:ComboBox>
        </fx:Component> 
       </fx:Declarations>
      
      

      TO

      <fx:Declarations>
        <fx:Component id="inlineEditor">
         <mx:ComboBox 
          dataProvider="{outerDocument.wripAttachTypeAc}"
          labelField="WRIP_ATTACHED_FILE_TYPE_DESC">
         </mx:ComboBox>
        </fx:Component> 
       </fx:Declarations>
      
      

       

      BUT that does not work the data grid produces the object.object value as theres no association to the labelField . Can anyone see what I am doing wrong. The datagrid entry is

       

      <mx:DataGridColumn dataField="Permit File"

                width="150"

                editorDataField="selectedItem"

                itemEditor="{inlineEditor}"/>