4 Replies Latest reply on Dec 11, 2009 6:56 AM by TechComp

    Flashbuilder 4 Beta 2 / Data binding problems




      i´m trying the first time FB 4 beta and i have a problem with the data services.


      I have cerated a cfc on coldfusion 8 returning data from an SQL-Server. The service is imported well and also the test works an returns the right data.


      But when i bind this service to any Control like a data grid, i get an error by compiling:


      Error 1180 datagrid_creationCompleteHandler not defined


      The code:


      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768" xmlns:st_gruppeservice="services.st_gruppeservice.*">
         import mx.controls.Alert;
        <s:CallResponder id="getAllST_GRUPPEResult"/>
        <st_gruppeservice:ST_GRUPPEService id="sT_GRUPPEService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
      <mx:DataGrid x="82" y="145" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{getAllST_GRUPPEResult.lastResult}">
         <mx:DataGridColumn headerText="NAME" dataField="NAME"/>
         <mx:DataGridColumn headerText="INFO" dataField="INFO"/>


      I think, i have build the project the same way as in adobe labs described. And also, the test works so the service is configured right.


      Any Idea?