2008 Dec 05 1:00 PM
Hi ,
I am calling a web service in the Flex builder. I am trying to return the data from Webservice into a Datagrid.
One of my output table is an export parameter in the Web service...How do i specify which output table am returning into the grid?
My datagrid deign in mxml is here
<mx:DataGrid x="124" y="195" id="Custlist" dataProvider=""/>
Can anybody tell me the code to fill the grid from the webservice.
I have tried the following but getting error : unknown property IT_GETCUSTLIST.
dgcustlist = WS.getOperation("Z_Cust_Getdetails").result.IT_GETCUSTLIST.
Regards
Sireesha.
Hi ,
I am calling a web service in the Flex builder. I am trying to return the data from Webservice into a Datagrid.
One of my output table is an export parameter in the Web service...How do i specify which output table am returning into the grid?
My datagrid deign in mxml is here
<mx:DataGrid x="124" y="195" id="Custlist" dataProvider=""/>
Can anybody tell me the code to fill the grid from the webservice.
I have tried the following but getting error : unknown property IT_GETCUSTLIST.
dgcustlist = WS.getOperation("Z_Cust_Getdetails").result.IT_GETCUSTLIST.
Regards
Sireesha.
2008 Dec 05 2:56 PM
First thing I would do is get this walkthrough to work: https://wiki.sdn.sap.com/wiki/display/EmTech/QuickstartUsingFlexandSAPWebServices
If you can do that you should be able to morph it into whatever you need to do with Webservices, without knowing what WS you're calling it's hard to troubleshoot these things.
-d
2008 Dec 08 6:30 AM
HI Daniel,
I was going thru the same example. But in the Result function as given in the example i cannot see
the operation name(which is highlited) not coming in the context menu...
In the below example whats FlightList? I hope its a output table name called in this example. But when i tried the same way iam getting error Flightlist Cannot be found.
private function onFlightWSGotResult(event:ResultEvent):void{
flightData = event.result.FlightList;
}
In my case it is
private function onCustResult(event:ResultEvent):void{
dgcustlist = event.result.IT_GETCUSTLIST;
}
I am getting error at IT_GETCUSTLIST cannot be found...
How to assign a result set to the datagrid?
Regards
Sireesha.
Edited by: sireesha esukapalli on Dec 8, 2008 7:34 AM
2008 Dec 08 2:29 PM
The property after result should be a output Parameter of the Webservice. Make sure you check out the WSDL because case does matter in this instance. The other option is to just set a break-point right there and then look at the structure of result so you know what to put there.
-d