--- In flexcoders@yahoogroups.com, "Stephen" <sd_br...@...> wrote:
>
> This is a Flex 4 problem.
> 
> I have dynamically filled a drop down box using PHP Data/Services and wish to 
> set the initial display to the current Engineer. What I have is the value of 
> the EngineerId.
> 
> I have tried to access the values of the dropdown with no louk either, I feel 
> like I'm getting no where, any help is much appreciated.
> 
> CREATE VIEW view_engineer
> AS SELECT
>    EngineerId,
>    EngineerFullName
> FROM tblEngineer;
> 
> <mx:FormItem label="Name:">
>    <s:DropDownList width="200"
>       id="dropDownList"
>       creationComplete="dropDownList_creationCompleteHandler(event)"
>       labelField="EngineerFullName">
>       <s:AsyncListView id="alvEngineer"
>          list="{getAllDisp_engineer_fullnameResult.lastResult}"/>
>    </s:DropDownList>
> </mx:FormItem>
>

You'll need to look through the ArrayCollection and get either the index or the 
actual item with that id so that you can set the selected item/index.

Reply via email to