1 Reply Latest reply on Oct 1, 2007 11:09 PM by Gregory Lafrance

    populating a datagrid using a webservice..

    Jeff_Sinclair
      I'm trying to just populate a datagrid using a webservice but keep failing :-/

      Here's my code;
      <?xml version="1.0" encoding="utf-8"?>

      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">



      <mx:WebService id="EmpWS"

      wsdl=" http://h2196:8888/PL_SQL_WS-GetEmployee-context-root/EmpWebService.wsdl"

      useProxy="false">

      </mx:WebService>





      <mx:DataGrid x="30" y="75" id="dgEmployeeTable" width="100%" dataProvider="{EmpWS.EmpRecUser}" height="458">

      <mx:columns>

      <mx:DataGridColumn headerText="Employee ID" dataField="employeeId"/>

      <mx:DataGridColumn headerText="Commission" dataField="managerId"/>

      <mx:DataGridColumn headerText="Salary" dataField="hireDate"/>

      <mx:DataGridColumn headerText="Job" dataField="jobId"/>

      <mx:DataGridColumn headerText="Commission PCT" dataField="commissionPct"/>

      <mx:DataGridColumn headerText="Salary" dataField="salary"/>

      <mx:DataGridColumn headerText="Last Name" dataField="lastName"/>

      </mx:columns>

      </mx:DataGrid>





      </mx:Application>



      Any help would be appreciated!!!

      Thanks,
      Rob