3 Replies Latest reply on Nov 30, 2010 3:01 AM by Claudiu Ursica

    Retrieving Value from a Drop Down List

    linrsvp

      Hi,

      I have the following code :

       

       

          <s:DropDownList x="160" y="26" id="projectList" prompt="Select A Project" width="155"
                          dropShadowVisible="true" labelField="@name"
                          dataProvider="{wsObj.getProjects.lastResult}" creationComplete="wsObj.getProjects.send()"/>

       

      wsObj  is my webservice object and this webservice function returns an array of all the projects from my database. The array is of the form array('id'=>integer,'name'=>'Name of Project').

       

      When i click a button, I want to get the id field for the selected value. How do i get it ?