Populate ComboBox from database - NOT using Flex Data Services

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

Using php or asp is not an option, as we are a Cold Fusion
House.
I was looking at an article on Ben Forta's blog (
http://www.forta.com/blog/index.cfm?mode=e&entry=1786)
and following his example I did this... only it doesn't work:
I'm very very new to Flash and we are using ColdFusion but
are not using Flex Data Services. I've been trying to figure out
how to populate a combobox from a database and I'm just not having
any luck.
My project is called "PreTraffic". I have my main file as
"JobSearch.mxml" and a folder under the root named "cfc" with a
file called "job.cfc".
job.cfc contains the following code:
<cfcomponent>
<!--- Get jobs --->
<cffunction name="GetJob" access="remote"
returntype="query" output="false">
<cfset var job="">
<cfset var results="">
<cfquery datasource="discsdev" name="job">
SELECT job_id, job_title
FROM job
WHERE status = 'O'
ORDER BY job_title
</cfquery>
<cfquery dbtype="query" name="results">
SELECT job_title AS label, job_id AS data
FROM job
ORDER BY label
</cfquery>
<cfreturn results>
</cffunction>
</cfcomponent>
And JobSearch.mxml has the following code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns="*"
layout="absolute"
backgroundGradientColors="[#ffffff, #d0d0d0]"
creationComplete="InitApp()">
<mx:Style source="style.css" />
<mx:Script>
<![CDATA[
public function InitApp():void {
jobSvc.GetJob();
]]>
</mx:Script>
<!-- ColdFusion CFC (via AMF) -->
<mx:RemoteObject id="jobSvc" destination="PreTraffic"
showBusyCursor="true" />
<mx:VBox label="Job History" width="100%" height="100%"
x="10" y="92">
<mx:Label text="Search jobs by"/>
<mx:Form label="Task" width="100%">
<mx:FormItem label="Job Name:">
<mx:ComboBox id="jobNameCB"
dataProvider="{jobSvc.GetJob.results}"></mx:ComboBox>
</mx:FormItem>
</mx:Form>
<mx:HBox>
<mx:Button label="Search"/>
<mx:Button label="Clear"/>
</mx:HBox>
</mx:VBox>
</mx:Application>
My Compiler thingy points to:
-services
"/Volumes/flexwwwroot/WEB-INF/flex/job-services-config.xml" -locale
en_US
and job-services-config.xml contains the following code:
<destination id="PreTraffic">
<channels>
<channel ref="my-cfamf"/>
</channels>
<properties>
<source>flex.pretraffic.cfc.job</source>
<lowercase-keys>true</lowercase-keys>
</properties>
</destination>
Well, when I run the app... the combobox is not populated...
Can anyone help with what I've done wrong?
Thanks!
April

Similar Messages

  • Extracting Data from SAP ERP using BODI/Data Services 4.0

    HI,
    I am trying to extract data from SAP ERP via SAP extractors using BODI/Data Services 4.0.
    I do not have my own ERP system so I am renting remote access from one of the many available on the internet.
    I am able to connect BODI to the ERP system and import the extractors metadata.
    The problem I am experiencing is that when I run job to extract the data I get the following error:
    Vendor-supplied function module <Z_AW_RFC_READ_EXTRACTOR> not found. Ensure that you can execute the function module in SAP via transaction /nSE37.
    How do I create the function? Or is the function a SAP standard function?
    SAP ERP system being used is: ECC6 EHP4
    User has SAP FULL and DEVELOPER authorizations.
    Any assistance would be appreciated.

    You might have better luck in the (somewhat misnamed) [Data Integration and Data Quality Management|Data Services and Data Quality; forum:
    This forum is dedicated to topics related to SAP BusinessObjects Data Services (Data Integrator, Data Quality Management, Text Data Processing), SAP BusinessObjects Information Steward (Metadata Management, Data Insight), SAP BusinessObjects Rapid Marts and SAP BusinessObjects Data Federator.
    (emphasis added)
    Regards,
    Sean

  • Advice on Learning how to use Flex Data Services

    Hi. I've been using flex for a while and I'm now at the stage
    where I'd like to be able to develop AIR apps. I wanted to do
    something simple to start with...eg. have an AIR app on a few
    friends desktops that lets users tick a box if they can make it to
    a poker game. Do I need to learn another language like PHP to do
    this or can it be done using just Flex? Other than the live docs
    and dev guide that come with flex are there other
    documentation/online info that can be recommended.
    Thanks!

    the LCDS sql assembler might be a good fit for you. it allows
    you to do sql crud from flex. there's not server side coding, just
    xml config.
    http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/help.html?content=dms_st andard_assemblers_2.html#334899

  • When you double click the circle buttom, and the little bar pops up from what you have been using... is it using data while being in there? is it a good idea to minimize evertthing out of there often so its not using more data ? or does it not matter?

    when you double click the circle buttom, and the little bar pops up from what you have been using... is it using data while being in there? is it a good idea to minimize evertthing out of there often so its not using more data ? or does it not matter?
    thanks!

    Not sure if it uses data, but that allows you to multitask.  To save battery life you should close out of all the apps.

  • Populate combobox2 From database WHERE combobox1.text = something

    I want to populate combobox2 from database WHERE combobox1.text = something. Here is the code I have and also I am using datable so I want to keep it that way
    private void cbCompany_SelectedIndexChanged(object sender, EventArgs e)
                this.cmpLocationTableAdapter.FillLocbyCmp(this.shahiemsDataSet.cmpLocation, cbCompany.SelectedText.ToString());
                cbLocation.DataSource = shahiemsDataSet.cmpLocation;

    The result is a blank combobox2(cbLocation).
    Hello,
    Did you mean that the combobox2 bound to the datatable cbLocation, but it didn't contain any item, right?
    If so, it seems that the method FillLocbyCmp didn't fill any data to that datatable, to troubleshoot this case, we need to check the following tips.
    1. Whether the database for that dataAdapter contains any data, and whether you connected to the right database.
    2. Whether that database could get any result filtering by that text value.
    3. Whether that method could get that datatable filt succeccfully.
    Since we could not get code about that FillLocbyCmp method, if possible, you could share them with us.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Flex Data Services does not see remote methods in extended ColdFusion component.

    I have created a remote service base component as a AModelService.cfc file. I extend that file to make my ModelService.cfc. When I configure the ColdFusion data service and point to ModelService.cfc and click next, I don't see any remote methods (there are none explicitly defined in the component) in the Service Operations window.
    If I go back and point to AModelServide.cfc, the parent component, and hit next, I see all the remote methods that are defined in the parent component. So, either I am doing something wrong, or Data Services does not look at methods up the cfc prototype chain, which from an OOP standpoint means that instead of say creating one restful base class and being nice and DRY you can't. I.e. not OOP for data services. Is this a bug, or what?
    Anybody get data services to work with extended service components?
    Mark

    Thanks for the reply. Yes, I did compile all the Java and it
    works OK with a simple Java program. It just will not work in a
    Flex application.
    The java classes are:
    RRA:
    package blah.myPackage;
    import java.util.List;
    import java.util.Collection;
    import flex.data.DataSyncException;
    import flex.data.assemblers.AbstractAssembler;
    class RRA extends AbstractAssembler
    public Collection fill( List fillParameters )
    RRS service = new RRS();
    return service.getSome();
    RRS:
    package blah.myPackage;
    import java.util.ArrayList;
    import java.util.List;
    import java.sql.*;
    import flex.EORS.*;
    class RRS
    public List getSome()
    ArrayList list = new ArrayList();
    String str = "bob";
    RR rr = new RR(str);
    list.add(rr);
    return list;
    RR:
    package blah.myPackage;
    class RR
    private String name;
    public RR() { }
    public RR(String name)
    this.name = name;
    public String getName()
    return this.name;
    public void setName(String name)
    this.name = name;
    I started with something that retrieved data from a database
    but watered it down just to try and get some kind of communication
    between Flex and Java.

  • I just got iTunes Match and I would like to know if downloading my songs from the cloud uses cellular data?

    I just got iTunes Match and would like to know if downloading my songs from the cloud uses cellular data if I am not able to use wifi?

    Hi,
    Yes, it will use cellular data. If you know that you are going to out of wifi range, you can predownload some music whilst you have a wifi connection.
    Jim

  • Why would I need to use LiveCycle Data Services in a Flex app?

    I cannot figure out what additional functionality is provided by using LiveCycle Data Services in my Flex apps.  I cannot get a clear understanding of how using LiveCycle Data Services would benefit my applications.  Does someone out there use LiveCycle Data Services?  If so, what do you do with it in Flex?
    Thanks!

    - data push for publish/subscribe implementations
    User has to do nothing to get updated information. You push it to their machine when new data is available, like Yahoo finance updated quotes.
    - data paging
    You don't want to display one million rows in your datagrid at once. Get a batch of data, if the user scrolls down, get the next batch, etc.
    - server side clustering
    One server does not get overloaded. High traffic sites have their large number of concurrent connections managed more efficiently.
    - JMS services
    JMS is a powerful technology for messaging throughout an application, and LCDS makes it much easier.
    - RTMP tunneling
    Allows the use of the RTMP protocol in LiveCycle Data Services applications. Makes it easier to traverse firewalls and proxies appropriately that currently prevent direct RTMP client connections to the server.
    If this post answered your question or helped, please mark it as such.

  • How to download a video that was purchased online to a dvd or other so i do not use my data watching video

    how to download a video that was purchased online to a dvd or other so i do not use my data watching video
    i have a mac book pro
    the video is a sewing video from craftsy

    Hi,
    Is the album still available in Itunes store? Can you redownload it fro previous purchases?
    http://support.apple.com/kb/HT2519.
    If it is available, delete file from library and redownload.
    Jim

  • I bought new i phone 5 3 days back, after that asked for new update which is 6.1.4, after updating my iphone i am not able to use cellular data services. I called up data provider, they says its the problem with new software update. There is no option add

    I bought new i phone 5 3 days back, after that asked for new update which is 6.1.4, after updating my iphone i am not able to use cellular data services. I called up data provider, they says its the problem with new software update. There is no option add APN. Now when i switch to safari its showing you are not subscribed for cellular data. But I am able to use data on other phone.
    Will you please help me in this regard?
    Another issue, since i bought my new iphone there is dust inside back main camera.
    Your advises are highly appreciated.

    Hey Shaiju isac,
    I'd take a look at the following article, it'll guide you though steps to you troubleshoot cellular data issues on your iPhone:
    iPhone: Troubleshooting a cellular data connection
    http://support.apple.com/kb/ts3780
    Cheers,
    David

  • How to select data from a table using a date field in the where condition?

    How to select data from a table using a date field in the where condition?
    For eg:
    data itab like equk occurs 0 with header line.
    select * from equk into table itab where werks = 'C001'
                                                      and bdatu = '31129999'.
    thanks.

    Hi Ramesh,
    Specify the date format as YYYYMMDD in where condition.
    Dates are internally stored in SAP as YYYYMMDD only.
    Change your date format in WHERE condition as follows.
    data itab like equk occurs 0 with header line.
    select * from equk into table itab where werks = 'C001'
    and bdatu = <b>'99991231'.</b>
    I doubt check your data base table EQUK on this date for the existince of data.
    Otherwise, just change the conidition on BDATU like below to see all entries prior to this date.
    data itab like equk occurs 0 with header line.
    select * from equk into table itab where werks = 'C001'
    and <b> bdatu <= '99991231'.</b>
    Thanks,
    Vinay
    Thanks,
    Vinay

  • I am trying to print a color photo on my MacBook Pro from iPhoto (not using Photoshop) using Epson 2200 printer, and everything I do in the Color Matching and Print Settings results in a photo with a pink cast to it. What am I doing wrong?

    I am trying to print a color photo on my MacBook Pro from iPhoto (not using Photoshop) using Epson 2200 printer, and everything I do in the Color Matching and Print Settings results in a photo with a pink cast to it. What am I doing wrong?

    Have you checked the ink cartridges and made sure the nozzles are clear? Are you able to print from outside of iPhoto with the correct color?
    Try the following: make temporary copy of the library and do the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home()/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
         User/Home()/Library/Caches/com.apple.iPhoto folder. 
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    OT

  • Upgrade project : from SAP R/3 4.6C to ECC 6.0 by using SAP Data Services

    Hi All,
    My client is upgrading from SAP R/3 4.6C to ECC 6.0
    We are planning to use SAP Data Services(Data Integrator) in the upgrade plan from SAP R/3 4.6C to ECC 6.0 for Data Migration.
    we have no idea whether we can use this SAP Data Services(Data Integrator) in SAP upgrade data migration.
    The bottom line is we have to make use this Data Services (Data Integrator) product in our upgrade plan for Data Migration.
    Please tell us if anybody already used it such kind of scenario in a data migration project with Data Services(Data Integrator).
    If we can use Data Service(Data Integrator) what are the pros and cons in using this Data Services(Data Integrator).
    Thank You,
    Ashok

    My opinion is you would want to utilize SAP tools to port the data - our SAP BASIS administrator is out this week but we can provide exact tool names when he returns.  ELM (External List Management), IDOC are some of the tools.
    You could use DS/DI to export, cleanse, deduplicate the records prior to importing with SAP tools if that is your end goal.
    We also offer a data quality tool that extends DS/DI to cleanse/deduplicate name/address records as they are entered into the system.  It also comes with batch tools to cleanse/dedup the entire systems name/address information.  See Data Quality Management for SAP for further details.

  • Why do I have to connect my ipad(4th gen) to my laptop to download apps? I downloaded some yesterday, but now they just say waiting. If I connect to ITunes, I can get them through that. I am not using cellular data, just through wifi.

    Why do I have to connect my ipad(4th gen) to my laptop to download apps? I downloaded some yesterday, but now they just say waiting. If I connect to ITunes, I can get them through that. I am not using cellular data, just through wifi.
    Any ideas greatly appreciated, it will save me a journey to the apple store

    I have now solved it. I signed out of my iTunes account and then held down both the power buttons until the apple appeared. When I signed back in it started downloading.

  • My iPhone 5 does not allow me to send or recieve any texts from anyone not using iMessage - I've already checked my settings and everything is where it should be. Any other possible ideas?

    My iPhone 5 does not allow me to send or recieve any texts from anyone not using iMessage - I've already checked my settings and everything is where it should be. Any other possible ideas?

    Contact your carrier to make sure there's nothing wrong with your account.
    Also, it may be worth going into Settings>General>Reset and choosing Reset Network Settings. You'll lose saved wifi passwords but you won't see any other changes. That may resolve the issue.
    ~Lyssa

Maybe you are looking for

  • How do I add an undetected Intel 82559 NIC to my Sparc Solaris 9 install?

    All, I bought a combo LSI SCSI and Intel NIC card for my Ultra 5. I'm running Solaris 9 9/04. The card was added after the os was installed. The OS is currently using the hme0 adapter detected on the system but I need to multi-home this system. first

  • How do I export a jpeg from iMovie 11?

    I must admit, I am new to Mac and am happy to have converted, so be gentle on me.   I have read a number of the archived post, haven't found any recent posts, but I am unable to "reveal in finder".   I have attempted both methods, from event as well

  • Bottom and righ of frame cut off in IE but not in Chrome?

    Hello,  this is just happing on my computer and I do not know how to fix.  When I run one of my captvate projects in Internet explorere 9,10 or 11 the bottom and right side of the frame is cut off.  I have the shell set to 1024x768 and I also set it

  • I'm trying to purchase ingame from itune but payment decline

    Hi

  • Game won't load

    I've been playing WarBirds with no troubles. But two days ago the game stopped loading up. (won't launch) I've tried re-installing the game, Running it as administrator, Changing to different compatibility modes. Everything I could think of to try. P