0 Replies Latest reply on Jul 8, 2009 6:39 AM by Zolotoj

    Spark/Halo please help.

    Zolotoj Level 3

      How come this does not work:

       

      <mx:DataGridColumn
      
       headerText="Document Description" dataField="docdescript" wordWrap="true">
      
      <mx:itemRenderer>
      
      <fx:Component>
      
      <s:TextArea> 
      
      </s:TextArea>
      
      </fx:Component>
      
      </mx:itemRenderer>
      
      </mx:DataGridColumn> 
      
      
      TypeError: Error #1034: Type Coercion failed: cannot convert CustomerDetails_inlineComponent10@9d8e6d1 to mx.controls.listClasses.IListItemRenderer.at mx.controls.dataGridClasses::DataGridBase/createColumnItemRenderer()[E:\dev\beta1\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:1592]
      at mx.controls.dataGridClasses::DataGridBase/setupColumnItemRenderer()[E:\dev\beta1\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:1182]
      at mx.controls.dataGridClasses::DataGridBase/makeRow()[E:\dev\beta1\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:927]
      at mx.controls.dataGridClasses::DataGridBase/makeRows()[E:\dev\beta1\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:782]
      at mx.controls.dataGridClasses::DataGridBase/makeRowsAndColumns()[E:\dev\beta1\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:688]
      at mx.controls::DataGrid/makeRowsAndColumns()[E:\dev\beta1\frameworks\projects\framework\src\mx\controls\DataGrid.as:1772]
      at mx.controls.listClasses::ListBase/makeRowsAndColumnsWithExtraRows()[E:\dev\beta1\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:1749]
      at mx.controls.listClasses::ListBase/updateDisplayList()[E:\dev\beta1\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:4386]
      at mx.controls.dataGridClasses::DataGridBase/updateDisplayList()[E:\dev\beta1\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridBase.as:676]
      at mx.controls::DataGrid/updateDisplayList()[E:\dev\beta1\frameworks\projects\framework\src\mx\controls\DataGrid.as:1671]
      at mx.controls.listClasses::ListBase/validateDisplayList()[E:\dev\beta1\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3968]
      at mx.managers::LayoutManager/validateClient()[E:\dev\beta1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:931]
      at mx.core::UIComponent/validateNow()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:6881]
      at CustomerDetails/showCustomerDocuments()[D:\projects\sfcs\UFDPortal\src\CustomerDetails.mxml:249]
      at CustomerDetails/showCustomerInfo()[D:\projects\sfcs\UFDPortal\src\CustomerDetails.mxml:70]
      at modulecode::Classes/httpResult()[D:\projects\sfcs\UFDCommonLib\src\modulecode\Classes.as:68]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\beta1\frameworks\projects\rpc\src\mx\rpc\AbstractOperation.as:249]
      at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\beta1\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:318]
      at mx.rpc::Responder/result()[E:\dev\beta1\frameworks\projects\rpc\src\mx\rpc\Responder.as:58]
      at mx.rpc::AsyncRequest/acknowledge()[E:\dev\beta1\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:84]
      at DirectHTTPMessageResponder/completeHandler()[E:\dev\beta1\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:446]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.net::URLLoader/onComplete()
      
      
      
      

       

       

      but this does:

       

      <mx:FormItem
      
       width="100%" direction="horizontal" label="Notes"> 
      
      <s:TextArea id="notes"text="
      
      {customerdetails.notes}"change="{customerdetails.notes=notes.text}" 
      width="
      
      100%" height="50"/>
      
      </mx:FormItem>