# Flex 3/AS3 question

**URL:** <https://forum.kirupa.com/t/flex-3-as3-question/268687>\
**Category:** flash\
**Created:** [August 17, 2008, 7:59am UTC](https://forum.kirupa.com/t/flex-3-as3-question/268687 "2008-08-17T07:59:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![monkeyhead](https://avatars.discourse-cdn.com/v4/letter/m/74df32/32.png) [@monkeyhead](https://forum.kirupa.com/u/monkeyhead)\
**Post date:** [August 17, 2008, 7:59am UTC](https://forum.kirupa.com/t/flex-3-as3-question/268687/1 "2008-08-17T07:59:20Z")

</div>

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:)

```auto

<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>

```
