Boy do I feel like a dork. Excellent. Thank you. One last thing if I
were getting a value out of the database is there a way to say that
item is selected? I know how to do this in ColdFusion, but I'm
thinking that would be totally different in Flex.

SO for example in CF we do it this way.

<select name="bob" id="bob">
  <option value="#mybobid#" <cfif mybobid IS
mybobidfromdb>selected</cfif>>#mybob#</option>
</select>

In flex we do it......?


*insert blank look from jeremy*


Jeremy


--- In [email protected], "Maury Sword" <[EMAIL PROTECTED]> wrote:
>
> Jeremy,
> 
> You will need to specify a labelField or labelFunction in order for 
> the ComboBox to know what you want to display.
> 
> Maury
> 
> 
> 
> --- In [email protected], "flexjeremy" <flexjeremy@> 
> wrote:
> >
> > Hello helpful list,
> > 
> > I seem to be confusing myself. I'm using ColdFusion to get the data
> > out of our database. Simple. I got a remote object getting the data.
> > 
> > <mx:RemoteObject id="remoteService" destination="ColdFusion"
> > source="Cows3.cows" showBusyCursor="true"/>
> > 
> > Now what I want to do is firstly get the data into it. I tried this 
> by
> > doing the following. 
> > 
> > <mx:ComboBox id="ProcessorName"
> > dataProvider="{remoteService.getProcessors.lastResult}">
> > </mx:ComboBox>
> > 
> > Now I know that it needs to be in an Array. When I dump the data 
> into
> > a grid. It works fine. i.e. 
> > 
> > <mx:DataGrid 
> dataProvider="{remoteService.getProcessors.lastResult}">
> > </mx:DataGrid> 
> > 
> > All the examples on Adobe's site is shitting me. Cause they are put 
> in
> > from an Array they manually make. 
> > 
> > Help. Again.
> > 
> > Jeremy
> >
>


Reply via email to