Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Krish_praveen
Community profile Krish_praveen Level 1
Job title here
Location here
0 BADGES
Level 1

Level 1

Learn more
Joined the community 01-12-2008 5:40:23 AM
Offline
Top badges earned by Krish_praveen
Customize the badges you want to showcase on your profile
Filing DataGrid Component with Web Services
Avatar
Level 1
Krish_praveen
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
Krish_praveen
- Adobe LiveCycle
Hi to all..I am facing the problem of binding xml content with datagrid,that i got result from web service.Here i am placing the code..import mx.rpc.events.FaultEvent;import mx.rpc.events.ResultEvent;[Bindable]public var employeeInfo:XMLList;private functionGetloggedInUserList_result(event:ResultEvent):void{employeeInfo = event.result as XMLList;} {token.text} thanks

Views

285

Likes

0

Replies

0
Re: Unable to extract Data from XML
Avatar
Level 1
Krish_praveen
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
Krish_praveen
- Adobe LiveCycle
Hi..I am sending you the sample code for Google Search..Hope you can check..and u can go ahead import com.adobe.webapis.events.*; import com.adobe.webapis.*; import com.adobe.serialization.json.*; import mx.controls.Alert; import mx.rpc.events.ResultEvent; import mx.rpc.http.HTTPService; [Bindable] private var dgResults:Array; // source for datagrid private function search():void { var service:HTTPService = new HTTPService(); service.url = 'http://ajax.googleapis.com/ajax/services/search/web'; service.request.v = '1.0'; service.request.q = searchStr.text; service.resultFormat = 'text'; service.addEventListener(ResultEvent.RESULT,onServerResponse); service.send(); } private function onServerResponse(event:ResultEvent):void { try { var json:Object = JSON.decode(event.result as String); if (json.responseData.results is Array) { dg.dataProvider = json.responseData.results; } } catch (error:Error) { Alert.show("Error on search: " + error.message); } } private function goToURL():void { navigateToURL(new URLRequest(dg.selectedItem.url)) }

Views

99

Likes

0

Replies

0