When the combobox is rendered all the values displayed look like [object Object].

I wasn't sure where to post this so please forgive me.
I am trying to populate a combobox with a series of values
returned from a Coldfusion method that retrives a resault froma
database. Basically all the data from a table of staff.
<cffunction name="getUsers" access="remote"
returntype="array">
<cfquery name="q" datasource="#datasource#">
SELECT *
FROM STAFF_CHARTS_STAFF_TEMP
</cfquery>
<cfset aRecordset= querytoarray(q)>
<cfset flash.result=aRecordset>
<cfreturn flash.result>
</cffunction>
<cffunction name="querytoarray" returntype="array"
output="No">
<cfargument name="q" required="Yes" type="query">
<cfset var aTmp = arraynew(1)>
<cfif q.recordcount>
<cfloop query="q">
<cfset stTmp = structNew()>
<cfloop list="#lcase(q.columnlist)#" index="col">
<cfset stTmp[col] = q[col][currentRow]>
</cfloop>
<cfset arrayAppend(aTmp,stTmp)>
</cfloop>
<cfelse>
<cfset stTmp = structNew()>
<cfloop list="#lcase(q.columnlist)#" index="col">
<cfset stTmp[col] = "">
</cfloop>
<cfset arrayAppend(aTmp,stTmp)>
</cfif>
<cfreturn aTmp>
</cffunction>
The result from a call of CF method getUsers is set as the
data provider to ComboBox with id = "cb"
<mx:RemoteObject
id="myService"
destination="ColdFusion"
source="staff_ratings.staff_Ratings-debug.staff"
showBusyCursor="true">
<mx:method name="getUsers" result="handleResult(event)"
fault="Alert.show(event.fault.message)"/>
</mx:RemoteObject>
<mx:Script>
<![CDATA[
import mx.rpc.events.ResultEvent;
import mx.controls.Alert;
[Bindable]
public var sResult:Array;
public function handleResult(event:ResultEvent):void{
sResult=event.result as Array;
cb.dataProvider=sResult;
]]>
</mx:Script>
However when the combobox is rendered all the values
displayed look like [object Object].
I think the problem is that the result is a array of arrays
so I need to find away to ectract a particular colun of data into
the combobox
How do I fix this?

This is what I did for a single field.
If you were wanting the to have muliple fields in the
dropdown, I would concatenate them in the query.
something like
select fname + ' ' + lname + ' ' + anotherfield as tech from
dbo.table
<cffunction name="getTech" output="no" access="remote"
returntype="query">
<cfset var qTech="">
<cfquery name="qTech" datasource="datasource">
select tech
from dbo.table
group by tech
order by tech
</cfquery>
<cfreturn qTech>
</cffunction>
<mx:RemoteObject
id="dataManager"
showBusyCursor="true"
destination="ColdFusion"
source="cust.components.cfgenerated.Records">
<mx:method name="getMasterQuery"
result="getMasterQuery_result(event)" fault="server_fault(event)"
/>
<mx:method name="deleteItem"
result="deleteItem_result(event)" fault="server_fault(event)" />
</mx:RemoteObject>
<mx:ComboBox id="TECH"
dataProvider="{dataManager.getTech.lastResult}" labelField="tech"
/>

Similar Messages

  • Exporting PDF document to Excel.  When I export a PDF document to Excel containing lists of  people the Excel page shows all the names on  one line several inches deep instead of on separate lines which makes editing impossible.  What am I doing wrong?

    Exporting PDF document to Excel.  When I export a PDF document to Excel containing lists of  people the Excel page shows all the names on  one line several inches deep instead of on separate lines which makes editing impossible.  What am I doing wrong?

    Murray is right. Padding (and margins) is added to the width. However, when using percentages, you should never use figures that add up to exactly 100%.
    Browsers need to convert the percentages to pixels. Because pixels must be whole numbers, some percentages are rounded up, which results in the final element dropping down below its neighbours. With percentages, it's much safer to use values that add up to 98% (99% often works, but 98% is safer).

  • Paramerterized Interactive Reports - when running or clicking on a specific page how can I stop the report from rendering BEFORE the user enters parameters.

    I wasn't able to display in pic in this post 
    But it would look something like this
    Order type  -ALL- (select list)                GO (button)
    When I come into this page - the report renders ALL the data because the SQL is as follows
      AND ol.unit_selling_price <> 0
               AND(ordertype.transaction_type_id = :P1_TEXT OR :P1_TEXT IS NULL)
                ORDER BY   3
    Its setup this way because I want all records returned if the user makes no selections BUT CLICKS the "GO" or "SEARCH" button.
    I just don't all records rendered upon initial screen entry and without user having selection options....I.E initiate via a button.
    Thanks

    Hi,
    Here is what you can do with out any hidden items.
    on report condition select request = e1
    and enter  GO
    Now when you hit the Go button which actually submits the page to perform the search right?
    Now create a branch and redirect to same page and in REQUEST enter: GO  (But make sure you are selecting when GO button clicked and make it first branch if you have any unconditional branches)
    So the report will be seen by the user only when he hits the GO button from that screen.
    Simple enough right?
    Thanks,
    Ramesh P.

  • Is there a way to adjust the settings on launchpad so that when I swipe into it all the open apps/pages are fully separated (like in exposé) so that I can fully view all of them simultaneously?

    Hi Apple community,
    This is my first go at this so be kind,
    My question concerns launchpad. Coming from Snow Leopard I had been using spaces. I like to keep certain bundles of programs on separate desktops, for example all word processing related tasks in one place. I have set up the equivalent on Yosemite.
    My problem is concerns the loss of exposé. Now I know when you swipe into launch pad you get a very similar effect but the issue I am having concerns the "zoom out" effect when you swipe into launchpad. With exposé all open apps/pages etc would be fully exposed - in my case several (sometimes as many as 9 word documents). What I am running into is when I do this in / into launch pad the "pile" of docs is exposed but they are still overlapping so I can't get a good look at which is which and visually identify where I want to navigate to.
    My question is this; Is there a way to adjust the settings on launchpad so that when I swipe into it all the open apps/pages are fully separated (like in exposé) so that I can fully view all of them simultaneously? If so, instructions on how to do so would be greatly appreciated. Any alternative suggestions to doing this outside of launchpad are also welcome. If there is an exposé app for example, I would be quite willing to go that route.
    My main concern is being able to quickly (ie a touchpad gesture) expand all the open pages so I can bounce between them.
    Much thanks from a loyal Apple friend.

    Hey Eric,
    Thanks for taking the time. Unfortunately no that does not solve it. Same as swipe it will get me there and it will show separate programs spaced out. The issue I am having is that all my open word files are bunched up in a pile on top of each other. I can see the edges of each one but I want them to be separated from each other enough that I can visually identify what file is what.
    Again, thanks for trying, it is appreciated.

  • I dowloaded ios5 for my iphone4, and when i finished the backup i lost all the music and all the videos i bought from the iTunes store. How can i get it back?

    I dowloaded ios5 for my iphone4, and when i finished the backup i lost all the music and all the videos i bought from the iTunes store. How can i get it back?

    Backup do not contaiuns music or apps, you will either need to resync them from your itunes computer, or you can go to purchase history in itunes or app store app and go to purchase history and redownload them.

  • HT201272 You seems not to understand what I mean and what I'm having like problem. I still have my payment recut  from October of this year when I bought 9 songs in the iTunes Store from my iPhone 4S. The problem is from all the 9 songs, 7 are still avail

    You seems not to understand what I mean and what I'm having like problem. I still have my payment receipt  from October of this year when I bought 9 songs in the iTunes Store from my iPhone 4S. The problem is from all the 9 songs I've paid for, only 7 are still available from this list on my iPhone. There is no possibility to download the other 2 without paying for them. I've spoke to the lady from Mississippi on the phone 2 days ago from about 2 hours calling from Belgium but unfortunately she couldn't help me. It's the 3rd time I complain about this. How many time shall I pay for the same songs?? If you can access my music list and my past receipts payment you will be able to find out what I mean. I went back on iTunes I've found the the songs I already downloaded in October that should be on my playlist but if I click on them it will charge me again 0,99 cents. It's been 3 years I've been using the same apple ID with my iPhones. I just wand to get my songs back without having to pay them twice or 3 times

    1. iTunes won't offer cloud downloads for songs that it "thinks" are in your library, even if it "knows" the files are missing. If you've exhaustively searched for the missing files and there is no prospect of repair by restoring to them to their original locations, or connecting to new ones, then delete that tracks that display both the missing exclamation mark and are of media kind Purchased/Protected AAC audio file. Don't hide from iTunes in the cloud when asked, close iTunes, then reopen. You can download from the cloud links or iTunes Store > Quicklinks > Purchased > Music > Not on this computer > All songs > Download all.
    2. Why? Not sure, perhaps 3rd party tools or accidental key presses combined with previously hidden warning messages when trying to organize the library. There is a hint that using the feature to downsample media as it is synced to a device may also be involved, though I've not replicated it. Whatever the reason a backup would protect your media.
    tt2

  • How can I instruct SqlMetal to exclude the 'storage' attribute of all the columns on a mapping file when converting a .dbml file to a mapping file?

    Hi,
    I'm trying to use LINQ to SQL with a top down approch using my own POCO classes. I'm using a XML file for the external mapping but in order to avoid typing a long file by hand I found that I could use the O/R designer to create the .dbml and from there I
    could use SqlMetal.exe to generate the map file from the .dbml. The only thing is that, by default, SqlMetal generates a map file which includes the 'storage' attribute for all the columns of the database. For example:
    <
    Column
    Name="Ticker"
    Member="Ticker"
    Storage="_Ticker"
    DbType="NChar(20)
    NOT NULL"
    CanBeNull="false"
    />
    However, in my code I only use automatic properties (Ticker, in this example) and not properties with the corresponding private field. Basically, I don't have any field "_Ticker" in my class. I found out that this the reason why I'm getting the error
    "Bad Storage property: '_Ticker' on member 'TTS.Domain.Asset.Ticker" when trying to add an entity to the database. However, ff I delete the all the 'storage' attributes from my mapping file everything works fine.
    Is there a way so I could use SqlMetal to generate a map file from a .dbml file but in which it never includes the 'storage' attribute?
    Thanks.
    Best,
    Miguel T.
    This is reason why I'm getting the error.

    Hi Serguey,
    I was expecting that answer but I still had some hope that it could be possible! I checked those 2 links before sending my question.
    Currently, I'm deleting the storage attributes everytime that I generate a mapping file. The issue is that I will have to do this eveytime that I need to add data in my O/R designer which happens quite frequently since I'm working with iterations in my project.
    It's not very practical but it's still better than write the additional data by hand.
    I don't know how I could create my own mapping validation in order to exclude the 'storage' attributes everytime that I generate a mapping file from a .dbml file with SqlMetal but I will check that option too.
    Thanks for your helps.
    Best,
    Miguel.

  • I changed my Apple ID on iTunes and on the iPhone 4. When I try to "Update All" the old Apple ID (I no longer have access to the email address) shows up. How do I update those apps?

    I changed my Apple ID on iTunes and on the iPhone 4. When I try to "Update All" the old Apple ID shows up (I no longer have access to that email address). How do I update those apps?

    Apps are DRM protected and tied to the account used to originally obtain them. They cannot be transferred to another iTunes account nor updated using another iTunes account. Only the account used to obtain them can be used to update them. You can contact iTunes support, explain the situation & ask that they add these apps to the download queue of your new account:
    http://www.apple.com/support/itunes/contact.html

  • I copied message to SMS field and sent. After that the message still exist all the time in the SMS field. When I open the application I must always first delete the "saved"  ones before I write the new one. What to do to finally/definitely delete the save

    I copied message to SMS field and sent. After that the message still exist all the time in the SMS field. When I open the application I must always first delete the “saved”  ones before I write the new one. What to do to finally/definitely delete the save message?

    sorry it's ios6

  • I saved an Excel file yesterday afternoon, and when I opened it today, all the formatting was lost.

    I saved an Excel file yesterday afternoon, and when I opened it today, all the formatting was lost.

    See:
    *[[/questions/894442]] OWA 2010/Firefox 8 and ASHX Attachments
    *[[/questions/895024]]

  • I have Thunderbird 24.5.0. When I double click the desktop item to open it up, it opens immediately, but when I'm in the main page with all the folders on the

    I have Thunderbird 24.5.0. When I double click the desktop item to open it up, it opens immediately, but when I'm in the main page with all the folders on the left & the corresponding email details on the right of that same page, it seems to have problems. Before, when I would highlight a certain box / folder (whether it would b “inbox”, “sent” folder, “trash” folder, or whatever, it takes a good 5 min (minimum) to open that certain folder so I can see the emails of that folder.
    Can u help me determine what is causing this? Just 3 days ago, it was fine.
    Thank you

    What is your anti-virus software?

  • I upgrade ios 4 to ios 5.It is completed but when i try to restore all the apps back up before,at last it's written the apps cannot be found(all the apps).

    i upgrade ios 4 to ios 5.It is completed but when i try to restore all the apps back up before,at last it's written the apps cannot be found(all the apps).

    The backup that itunes performs does no include any itunes content ( apps/music/vids/etc).
    You should have transferred any purchases to your computer.
    If you failed to do this, then you will have to redownload:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • How do you make it so that the ipod will play all the different artists featured in an album when you click that album to play?

    How do you make it so that the ipod will play all the different artists featured in an album when you click that album to play? At the moment, each artist in the album is being separated and I can't play them together. For example, to play the Halo 2 Soundtrack, Hoobastank, Breaking Benjamin, Nile Rodgers, etc. are some of the artists featured. However, in the Albums category, they are each separate choices. I want to play them all together, but can't. Is there a way to do that?

    It sounds like the album metadata is incorrect, or differs from song to song in iTunes.  Albums with various artists will play properly assuming all the songs are tagged with the same identical album name, as well as the track number.  For the Halo 2 Soundtrack, metadata should look like this:
    Song: <Song Title>
    Artist: <Song Artist>
    Album: Halo 2, Vol. 1 (Original Soundtrack)
    Genre: Soundtrack
    I had a similar problem with my imported Cowboy Bebop albums and the mixture of artists/album names.  Once I adjusted the metadata, all of them play in the correct order just by selecting the Album from the available list or in Coverflow.

  • I am trying to get a good copy of my home video on DVD using IDVD.  On editing the video all the viewing screens show the video perfectly in HD.  When I burn the video to DVD all the end results are buzzy with squiggly lines.  Any fix?  Thanks?

    I am trying to get a good copy of my home video on DVD using IDVD.  On editing the video all the viewing screens show the video perfectly in HD.  When I burn the video to DVD all the end results are buzzy with squiggly lines.  Any fix?  Thanks?

    Hi
    There are several layers to this Q
    A. There are no HD in DVD - DVD is as standard only SD-Video what ever tools used to produce it !
    iDVD or DVD-Studio Pro or Roxio Toast™ - will only make SD-Video on DVD
    B. DVD can be better or worse
    • Using "Share to iDVD" is no good way - Better is Share to Media Browser and as Large (NOT HD as result will be worse)
    • Using iMovie'08 or 09 or 11 - are not tools to chose if highes quality is of importance - iMovie up to HD6 or FinalCut any version is far better as they send over all lines to iDVD and not only every second one.
    • Using Right encoder quality depending on movie and Manu duration is very important
    • Use of high quality brand of DVD - is important - I use Verbatim DVD-R
    • Type of DVD - DVD-R plays on more DVD-Players (even old ones)
    • Burn speed - I set it down to x4 - resulting in less burn errors - plays on more players
    • I secure a minimum of 25Gb free space on Start-Up Mac OS hard disk as iDVD and Mac OS needs this and it can not be taked from other hard disks - has to be here.
    • What You feed iDVD does matter
    Video codecs
    Audio file formats
    Photo file formats
    Yours Bengt W

  • When I try to add video to iMovie on iPod Touch, none of the videos show up to be added. I've restarted the iPod twice, closed all the apps and then reopened iMovie. Please help!

    When I try to add video to iMovie on iPod Touch, none of the videos on the Touch show up to be added. I've restarted the iPod twice, closed all the apps and then reopened iMovie. Please help!

    Now You lost me (without using a computer?) - Most probably due to that I've not got an iPod Touch but mine is seven Years old - so it most probably work in a totally different way.
    Sorry
    Yours Bengt W

Maybe you are looking for

  • Output text in table form

    Hi all, I have a short little applescript that does some math and then outputs a mix of the results and plain text in tabular form, and copies it into a Word document. (I'm a complete novice at AS, this is maybe my third script). At present, the scri

  • Netscape Error: Connection reset by peer

              I am running a JSP application on weblogic and when I view in Netscape 4.08 on           W2K I am getting an error saying Netscape Error:Connection reset by peer. Anyone           else see same error. Any fixes?           

  • Modify Sales Employee in AR Invoice

    Dear experts, I have to modified the Sales Employee in some AR Invoice but in some cases this is impossible, because SAP B1 give me an errore (this enty already exsists). What is the problem? Thanks. Paolo Orlando

  • RoboHelp 8 crashes on project close after modifying htt files outside RoboHelp

    Recently I have made some changes to the .htt (master page/template) files that are used with our RoboHelp projects. It was easier to make those changes outside of RoboHelp, so I made them in a simple text editor program, making sure that RoboHelp wa

  • My calendar is set at "read only" on my iPhone how do i get access

    My calendar is set at "read only" on my iPhone how do i get access