Hi there,

We are using CF with Flex but are not using the Flex Data Service.  I'm very 
much a newb 
and I'm having trouble finding any information on how to populate controles 
from a 
database without using Flex Data Service.  Any help would be greatly 
appreciated.

First I have a page...  JobSearch.mxml that contains a combo box that I want to 
populate 
with the job_id and job_title from a MSSQL database.

In Flex in the RDS DataView I used the "Create CFC" Wizard which generated 
"job.cfc" and 
"jobGateway.cfc".  It also generated "job.as".

The CF Function that selects the data appears to be defaulted and called "load" 
and the .as 
function is called simply "job".

So, that all looks great.  But I can't find any information on what I need to 
have on my 
JobSearch.mxml to actually get this data into the comboBox.  

I did:

<mx:Script>
                <![CDATA[
                                
                        [Bindable]
                        public var jobData:job = null;

                ]]>
        </mx:Script>

And then: 
<mx:ComboBox text="{jobData.job_title}"></mx:ComboBox>

But I'm being told "Type was not found or was not a complie-time constant: job"

I guess I'm missing something, or doing something way wrong... I just don't 
know enough 
of Flex at this point to know what it is.

Thanks!

April

Reply via email to