hello people,
i’m not sure if this is the correct place to be asking but here it goes:
i’m working on an App in Flex that connects to a WSDL. Basically, the user logs in, if the response is “True” the WSDL will throw back a User ID. That part is done.
Now, at this point the user has been ID’ed and the next step is to run a method from the WSDL called “GetInbox”… this has been my first obstacle.
So, my question is:
how do pull that data in and display it in a Data Grid? (i.e. From:, Subject:, Message:)
<mx:Script>
<![CDATA[
//import gs.TweenLite;
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.utils.ObjectUtil;
public var _userID:String;
private function ValLogin(userName:String, passWord:String):void
{
var user:String = userName;
var pass:String = passWord;
ws.ValLogin(user, pass);
}
private function ValLogin_resultHandler(event:ResultEvent):void
{
if(event.result == "false"){
resultTxt.text = "Login Fail";
}
else{
//loginBtn.enabled = false;
_userID = event.result.toString();
GetUserInbox(_userID);
resultTxt.text = event.result.ArrayOfString();
}
}
private function GetInbox(_userID:String):void
{
ws.GetUserInbox(_userID);
}
private function GetInbox_resultHandler(event:ResultEvent):void
{
resultTxt.text = event.result.toString();
}
]]>
</mx:Script>