Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Binding Datagrid with XML

    Hi..

    I am using Web services...in result i am getting xml content.
    Same i want to bind with Datagrid ...by using adobe flex.

    Here i am placing the code for all of you..

    <?xml version="1.0" encoding="utf-8"?>



    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

    <mx:Script>
    <![CDATA[
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    [Bindable]
    public var employeeInfo:XMLList;

    private function GetloggedInUserList_result(event:ResultEvent):void{

    employeeInfo = event.result as XMLList;
    }
    ]]>
    </mx:Script>

    <mx:WebService id="s1"
    wsdl="http://localhost:1378/Web%20Services/ResourceManager.asmx?WSDL" showBusyCursor="true" >
    <mxperation name="GetloggedInUserList"

    result="GetloggedInUserList_result(event);" >
    <mx:request >
    <securityToken>
    {token.text}
    </securityToken>
    </mx:request>
    </mxperation>
    </mx:WebService>

    <mx:Label id="token" text="1wEbz/R6H32cdmXr7E/SyEHeFHCRb2RSEa5eObEg1Dqj8ZGGSAV7mNn4HcNEKubI8m9aFCFEnzdO58m0EFgCg56CWhrkiMMtN47MXQZE2Ty29xmlV+m/KXplAb0RMuQew4y8/a5d/XGmYlHSFkaGSQvnlb9LMeuNxyT8zBAB+ePKrbh4jQlvgLN2W6QPFKuG2" />
    <mxataGrid
    id="orderGrid"
    dataProvider="{employeeInfo}"
    width="375" x="443" y="72">
    <mx:columns>

    <mxataGridColumn headerText="UserId" dataField="UserId" width="40"/>


    </mx:columns>
    </mxataGrid>

    </mx:WindowedApplication>

    Please help me out

    thanks

  • #2
    Regular Coder byuhobbes85's Avatar
    Join Date
    Oct 2006
    Location
    Ames, Iowa, USA
    Posts
    116
    Thanks
    9
    Thanked 4 Times in 4 Posts
    Please place code in code brackets so that it will not parse out smilies.
    -- </byuhobbes>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •