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-tp19569871p19569871.html
Sent from the FlexCoders mailing list archive at Nabble.com.