"...I have associated result handlers with both the services..." Are you sure you have done that correctly? Have you put a trace or breakpoint in each handler to veritfy the data is being returned?
As an aside, you can use a single service instance, and use AsyncToken to match a result up with its call. It is very handy to be able to debug all data service calls with a single breakpoint. Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Friday, September 19, 2008 8:57 AM To: [email protected] Subject: Re: [flexcoders] How to call 2 services in a single event handler Your dispatch code looks ok to me at first glance. Have you checked to make sure both requests are making out to the server and coming back OK? -Josh On Fri, Sep 19, 2008 at 8:27 PM, Tapan Ghia <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: Hey. I am trying to call 2 services from a single function. Both the services send the request to the server and i am getting the response. I have associated result handlers with both the services. And in these result handlers i am trying to populate two different forms. While doing so, inspite of getting both the responses, the second form does not get populated with the response for the first time, while the first form gets populated with the response. Whenever the second form is clicked for the second time it gets populated. I want both the forms to be loaded with the response when the event is generated. Can someone please tell if i am doing something wrong. This is my code: public function handleTreeClick(event:MouseEvent):void { var nodeType:String = [EMAIL PROTECTED]; if(nodeType == "") { var isOpen:Boolean = assetTree.isItemOpen(event.currentTarget.selectedItem); assetTree.expandItem(event.currentTarget.selectedItem,!isOpen,true); } if(nodeType == "ppt") { var params:Object = {}; params["id"[EMAIL PROTECTED]; params["action"]="getAsset"; assetList.send(params); } if(nodeType != "" && nodeType != "folder") { var paramsForDetails:Object = new Object(); paramsForDetails["action"] = "edit"; paramsForDetails["resType"] = "xml"; paramsForDetails["assetsId"] = [EMAIL PROTECTED]; paramsForDetails["entityId"] = [EMAIL PROTECTED]; selectedAssetType = [EMAIL PROTECTED]; assetDetailsService.send(paramsForDetails); } } Thanks in advance.. -- View this message in context: http://www.nabble.com/How-to-call-2-services-in-a-single-event-handler-t p19569871p19569871.html <http://www.nabble.com/How-to-call-2-services-in-a-single-event-handler- tp19569871p19569871.html> Sent from the FlexCoders mailing list archive at Nabble.com. ------------------------------------ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 <https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf -1e62079f6847> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo <http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo> ! Groups Links (Yahoo! ID required) mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." http://flex.joshmcdonald.info/ <http://flex.joshmcdonald.info/> :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

