This content has been marked as final. Show 4 replies
I am just starting with e4x, but...
txt1.text = event.result.ns1::findEquipmentReturn
would return the text node of findEquipmentReturn node, and in your xml there isn't any text node.
You need to dot down to a node that has text. This should return something:
txt1.text = event.result.ns1::findEquipmentReturn.centre.description;
To get to modules, something like:
Thanks for your response Tracy.
I have tried drilling down in dot syntax with no luck.
The only results I can output are at the event.result.ns1::findEquipmentReturn level.
I get nothing when trying to access anything sub elements.
txt1.text = event.result.ns1::findEquipmentReturn.centre.description; I agree with you that this should work according to the documentation I've seen but no go.
Put the result into a variable typed XML. Then do xml.toXMLString(), to see if it is structures the way you think.
u can send httprequest this way
<mx:HTTPService id="FolderReq" url=" http://deepakt:8080/PopMailConnector/servlet/GetFolderList " method="POST" showBusyCursor="true"
useProxy="false" resultFormat="e4x" result="initList(event)" fault="mx.controls.Alert.show(event.fault.faultDetail)">
retrive data in result event by calling initList method as mentioned above
and then use this
public var XLC:XML;
public function initList(event:Event) : void
XLC = event.target.result;
u can get the result in e4x format