Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Fetching Webservice data into DataGrid in Flex 3

Former Member
0 Likes
614

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.

3 REPLIES 3
Read only

former_member10945
Contributor
0 Likes
592

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

Read only

0 Likes
592

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

Read only

0 Likes
592

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