Not getting all results in Array Populated from Query

When running this it is only giving me the last value of my query in the array. Any thoughts on why this is happening? I appreciate any assistance. Thank you
<cfset result = arrayNew(1) />
           <cfset ArrayMedSchools = structNew() />
        <cfloop query="GetMedSchool" >
             <cfoutput>
              <cfset ArrayMedSchools.name = Institution />
              <cfset ArrayMedSchools.id = InstitutionID />
              <cfset arrayAppend(result,ArrayMedSChools) />
             </cfoutput>
        </cfloop>
        <cfset ArrayMedSchools = structNew()/>
        <cfdump var="#GetMedSchool#" label="Original Query">
        <cfdump var="#result#" label="resulting array">

So your query has X rows.  Does your array have the values for the last row in your query, duplicated X times?  Or does it just have one element, with the values from the last row in the query?
One thing you might want to try is resetting the structure within your query loop:
<cfset result = arrayNew(1)>
<cfset ArrayMedSchools = structNew()>
<cfloop query="GetMedSchool">
    <cfset ArrayMedSchools = structNew()>
    <cfset ArrayMedSchools.name = GetMedSchool.Institution>
    <cfset ArrayMedSchools.id = GetMedSchool.InstitutionID>
    <cfset arrayAppend(result, ArrayMedSchools)>
</cfloop>
<cfdump var="#GetMedSchool#" label="Original Query">
<cfdump var="#result#" label="resulting array">
Also note that you don't need to use <cfoutput> within your loop there.

Similar Messages

  • I can not get all my music to sync from my phone to the itunes on my laptop. It is only letting me sync the music I purchased from my phone on itunes to my laptop. Any way to be able to get all of it sync'd to my computer for a back up.

    I am trying to sync all my music from my iphone to the itunes on my laptop but it is only allowing me to sync songs i have purchased from itunes on my phone. Is there a way to get all the songs I have on my phone to syn with my lap top? I dont want to loose any of my music but litterally half of my music will not sync to the itunes on my laptop.

    How did you move the music to the external drive?  What exactly is on the drive?  The entire iTunes folder or only music?  If it is the entire iTunes folder you can do the option+start suggestion earlier.  If you copied only music and did so by dragging it there then you need to delete it again and consolidate/organize it there instead so iTunes tracks the move.  iTunes 12 for Mac: Change where your iTunes files are stored - http://support.apple.com/kb/PH19507

  • HT203390 I can not get all songs in I-tunes from my computer Windows 7 to sync to I-phone IOS  if I import on my other computer windows XP it works fine

    I can not get songs that i have down loaded to itunes on my windows 7 computer sync  to my iphone   no trouble when i use windows xp my older laptop

    It depends on what version of iTunes and ios you are using. Usually when one is newer is a newer version of the software it isn't that compatible.

  • Mail not getting all messages from server and other strange behavior

    Hello All,
    Mail has been doing some odd things for me of late (at least the last week) and I'm lost for a solution to my problem. As far as I can tell, perhaps my Prefs. have become corrupted, or at least something in relation to Mail has become corrupted. Perhaps someone has a solution to this issue before I have to back it all up and NUKE the whole **** app to get back up and running properly.
    The main issue I appear to be having is that Mail is not getting all of my Mail messages from my server. I can log into my web-mail interface provided by my domain host and can see there that there are many e-mails that don't appear to be coming down the pipe to the Mail.app client. I'm getting some e-mail's but not all....
    *Here are all the things that I've checked:*
    • The missing e-mails are not being picked up as Junk and are not in the Junk folder
    • I have done a search within Mail for the missing e-mail's and nothing turns up anywhere.
    • I have checked on the server end that I'm not maxing out my InBox or that there are any other service issues from my domain host provider.
    • I have been into Prefs and checked my account settings - most (see below) of which appear to be as normal and are fine.
    *Here are the weird things that I've noticed:*
    • When I went into the Prefs. for the account in question, I noticed that my login had changed. For example - it usually it is "[email protected]", however it had seemed to have changed to just "johndoe" - I know this wasn't me as my domain host will not allow me to access any mail unless the login is the full mail address.
    • In RULES, every rule I double click to check on seems mostly fine, apart from the fact that every "Account is:" the pull down menu just appears as blank. Usually it says "Account is: ([email protected])"
    It's there last 2 items that make me think something is corrupted - so I guess my question is, what pref or file has corrupted and how can I fix it without having to give Mail.app a digital enema?
    Any assistance would be most helpful - missing some but not all your incoming e-mail messages is quite annoying, as you can guess...!
    Thanks,
    Boz

    Hello Boz.
    This appears to be a rules issue. Mail is almost certainly downloading those messages, but they’re probably being processed by your rules in an unexpected way — given the information you’ve provided, maybe because there is something wrong with the file where the account settings are stored.
    Do you have any Mail plug-ins? In the Finder, go to each of the following folders (if they exist). What do you see there?
    /Library/InputManagers/
    /Library/Mail/Bundles/
    ~/Library/InputManagers/
    ~/Library/Mail/Bundles/
    To make accurately reporting this information easier, you may open /Applications/Utilities/Terminal, type the following command (you can just copy it here and paste it in Terminal), and press <Return>. You can then copy the output of that command from Terminal and paste it in your reply to this post:
    ls -1 /Library/InputManagers /Library/Mail/Bundles ~/Library/InputManagers ~/Library/Mail/Bundles
    <hr>
    Verify/repair the startup disk (not just permissions), as described here:
    The Repair functions of Disk Utility: what's it all about?
    After having fixed all the filesystem issues, if any, and ensuring that there’s enough space available on the startup disk (a few GB, plus the space needed to make a backup copy of the Mail folder), try this:
    1. Write down your Mail > Preferences > Accounts settings or take screen shots of them.
    2. If you have a .Mac account and .Mac synchronization of Mail data is enabled either in Mail > Preferences > General or in System Preferences > .Mac, disable it before proceeding.
    3. Quit Mail.
    4. Make a backup copy of the ~/Library/Mail folder, just in case something goes wrong while trying to solve the problem. You can do this in the Finder by dragging the Mail folder to the Desktop while holding the Option (Alt) key down, for example. This is where all your mail is locally stored.
    5. In the Finder, go to ~/Library/Preferences/. Locate com.apple.mail.plist and move it to the Desktop (to be deleted if this solves the problem). If you have a backup of your data that includes a working copy of this file, you may try restoring it from the backup to avoid steps 6-8.
    6. Open Mail. You’ll have to set up your non-.Mac accounts from scratch all over again. If given the option to import existing mailboxes or something like that, don’t. Just enter the account information and Mail will automagically rediscover the data in ~/Library/Mail/ when done.
    7. You’ll have to re-configure some of your Mail > Preferences settings. For spam-related security reasons, the first thing you should do is go to Preferences > Viewing and disable Display remote images in HTML messages if it’s enabled.
    8. As a side effect of re-creating com.apple.mail.plist, Mail might rename Outbox (which is where messages waiting to be sent are stored) to Delivered. The name of that mailbox is actually a misnomer, as it would contain messages (if any) that couldn’t be delivered for some reason. You can delete that mailbox if you wish.
    9. If the problem is fixed now and .Mac synchronization of Mail data was enabled at the beginning, enable it again, go to System Preferences > .Mac > Advanced, click Reset Sync Data, and choose the appropriate options to reset the Mail data stored on the .Mac server with the data locally stored on the computer, i.e. sync data must flow from the computer to the .Mac server.
    <hr>
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder. You can easily locate any of the folders referred to in this post by copying the folder path here, doing Go > Go to Folder in the Finder, and pasting the folder path there.

  • Not getting all my bytes from inout stream.

    hi,
    i'm writing an i-appli that interacts with a java web server. my problem is that i'm not getting all of my bytes through to the phone.
    actually i'm using an emulator right now. when i use the real phone i set content length on the server side and it all goes through. but for some reason when i set content length on the server the emulator doesn't pick up anything(using i-jade emulators) bug??.
    it should work though because when i print out the number from in.available() it matches with the number of bytes that i want to go through.
    but when i grab the int from the read it is less than what returns from available().
    here's a snippet of the i-appli code. i'm printing out TESTBYTELEN to the screen and it is less than when i set it to 'bc' from in.available. (i'm getting 3784 of 4420 bytes EVERY time)
    thanks for any help
    matt
    ========================================
    HttpConnection conn = (HttpConnection)Connector.open(IPString,Connector.READ,true);
    conn.setRequestMethod(HttpConnection.GET);
    conn.setRequestProperty("Content-Type","text/plain");
    conn.connect();
    InputStream in = conn.openInputStream();
    if (in == null)
    throw new IOException("servlet unreachable");
    bc = in.available();
    streamb = new byte[bc];
    TESTBYTELEN = in.read(streamb,0,bc);
    in.close();
    conn.close();
    =========================================

    Also, testing with available is not that good... it just tells you how many bytes can be read without blocking, not the amount of bytes that can actually be read. So the code should be more like:
    bc = MAX_BYTES_TO_BE_READ;
    streamb = new byte[bc];
    int bytesread;
    int off = 0;
    int len = bc;
    while ((bytesread = in.read(streamb,off,len) != -1) {
    off += bytesread;
    len -= bytesread;
    (to clarify, in.read returns the number of bytes that were actually read and -1 when there are no more bytes to be read)

  • IPhone 5 not getting all texts from Galaxy S6

    My girlfriend is having a problem not getting all of my texts. As far as we know, it is only happening to texts from my phone. They are showing as sent on the Galaxy S6, but do not show up, ever, on her iPhone 5. The missing messages are random. 

    Hi there
    I’m sorry to hear that there have been some issues with receiving texts. I’d be happy to look into this for you! Can you please send me a private message by Clicking Here and include the following information?
    Full name
    Cell number
    Recipient’s number
    Best time to call
    Thanks,
    Charise
     

  • How do I recover photos from my AppleTV photo stream? when I reset my iPhone, I did not get all of my photos back. How do I get these photos off of my Apple TV?

    how do I recover photos from my AppleTV photo stream? when I reset my iPhone, I did not get all of my photos back. How do I get these photos off of my Apple TV?

    Hi MrRhea,
    Welcome to the Apple Support Communities!
    It sounds like you have photos in your Photo Stream that you would like to download. The photos are not actually stored on your Apple TV, it sounds like they are being displayed from your Photo Stream. Please read over the attached article for information on your Photo Stream and how to download these photos.
    My Photo Stream FAQ - Apple Support
    Because your Mac and PC have more storage than your iOS devices, you can choose to download all of your My Photo Stream photos automatically.
    In iPhoto or Aperture preferences on your Mac, select Photos (or Photo Stream) > My Photo Stream > Automatic Import. All of your photo stream photos will import into your Events, Projects, Photos, Faces, and Places folders in iPhoto or Aperture.
    On your PC with My Photo Stream on in the Control Panel, all of your photos will import intoC:\\Users\<user name>\Pictures\iCloud Photos\My Photo Stream
    Best regards,
    Joe

  • I just got my iphone and i want to get all my apps and music from my ipod onto my iphone. the only problem is that my itunes is not recognizing my iphone in the devices. in fact there are no devices at all listed. Please help!

    I just got my iphone and i want to get all my apps and music from my ipod onto my iphone. the only problem is that my itunes is not recognizing my iphone in the devices. in fact there are no devices at all listed. Please help!

    See either:
    iPhone not recognized in iTunes for Mac
    iPhone not recognized in iTunes for Windows

  • Help:  Not getting all data from text data type

    Hi there
    I have a stored procedure that returns a couple of fields and one of the fields is of datatype TEXT. In my ResultSet, I do not get all the data back that is stored in the TEXT datatype. I have say about 600 charactors in this field, but only 30 charactors are returned. Is there a reason why this is happening and how can I fix it?
    Please help?
    Thanks

    I set that field to have a normal string of about 50 charactors. Namely: "this is a note that is about 49 charactosrs long." (exclude the quotes). And I still got 30 charactors back only.
    I set a shorter text value of 21 charactors and that returned all 21 charactors.
    The text that is usually in this field is:
    "URL=SubsidiaryNarrative.html�BABY_CARE_PRODUCTS=false�AIDS_FOR_PHYSICALLY_DISABLED=false�SPORT_SUPPLEMENTS=true�NATURAL_REMEDIES=false�COSMETICS_FRAGRANCE=false�WOMANS_HEALTH=false�ADDITIONAL_CARDS=No�EXERCISE_ROUTINE=Yes�NUMBER_OF_CHILDREN=0"
    And I got out "URL=SubsidiaryNarrative.html�B"

  • Why the 2LIS_08TRTK extractor can not get  all data

    Hello, BW Gurus.
    Why the 2LIS_08TRTK and 2LIS_08TRTLP extractors can not get all data. I had used the RSA3 and get 10 registers, when a check at the VTTK table I had 20 registers, I didnt use filters at RSA3, could you help to know what happen o correct it.

    Is it because
    <i>
    Shipment documents and their dependent objects (shipment stages as well as shipment items [deliveries in the shipment]) are only extracted into BW when the Shipment completion status has been set.
    This is necessary because the numeric values that result from the delivery documents are only established at the time. If the data were already stored earlier in BW, the shipment data would not be updated if the delivery notes were changed in BW.
    </i>
    - from oss note 573470.

  • Not getting all required samples

    Hi, I'm new to Labview and don't understand why I'm not getting all the samples I ask for. 
    I have a USB-6212-BNC module collecting data from 2 analog voltage inputs. I'm using ai0 for the analog trigger, using basically the same VI found as an example here: https://decibel.ni.com/content/docs/DOC-11764
    The problem is that I am not getting all the samples needed. As you can see in the example below I only got ~1000 samples when asking for 2000. 
    Attachments:
    Sample Issue.png ‏23 KB
    Sample Issue.vi ‏30 KB

    Hi bigdoug,
    the output of the graph is what you get from the (missing) subVI calculation.
    The DAQmxRead is configured to read 2000 samples and it surely does so as you would get a DAQmx error message instead...
    Please check your subVI or attach it here with some meaningful default data!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Not getting all emails and sync issues

    For some reason I am not getting all of my emails on my blackberry. I am using Outlook Express at home. Most emails come through but it is weird--some never get to my blackberry inbox and some replies I get from messages I send never get to my blackberry but appear in my outlook. What is the deal?
    Also, even though my bb is set to reconcile on the mailbox and handheld, I still have to delete messages in both places. How do i fix that?
    Thanks!!

    Try temporarily turning off the desktop. If the problem goes away change the settings on the desktop to leave messages on the server. Or, if it is an MS Exchange or IMAP account it is probably automatically filing messages in folders as soon as they appear.

  • Not getting all of my email

    Somehow, I'm not getting all of my email (via iCloud).  My wife forwared an email to me, I got the "ding" but no email.  She sent it to another IMAP account that I have and I got it just fine.  She repeatedly tried to send it to my .mac account and nothing is received.  Sometimes during the day, I hear the email "ding" but no mail is received.  The biggest problem is subscribing to various developer forums that require replying to an email to finish the subscription.  I'm hung up in never-never land.  I get a lot of mail from a lot of sources with no problems - just not sure if it's 100%.  Running Mac Mini 2011 with Mountain Lion 10.8.2, iCloud with .mac/.me/.icloud email account.  I don't know if this is an iCloud or mail.app problem.  Any ideas?  Thanks.
    Message was edited by: SunnComm
    Update:  I guess it isn't mail.app because I don't get these emails on my iPhone 4S either.

    Hey, Toad, thanks for the links.  Yeah, I saw the Macworld article but I didn't think these email had anything of a nature that would trigger iCloud's spam filter.  But, the Macintouch article I had not seen and it tells me a lot. 
    I guess I'll have to plot some strategy on how to handle this stuff.
    What is crazy, though, is that I get the *ding* but no mail.  I tried using the Activity window, had my wife send the the email, but the Activity window contents just fly by and the window clears.  If the Activity window had a Clear button for the user to use, it might be more helpful.  Duh!
    Anyway, thank you very much for responding.  I'll re-register with my development forums using a different name and email address.
    (I might ask my wife to send her email to her iCloud account and see if it makes it.)
    Kind Regards

  • Not getting all my mail

    I have an Imac and an Ipad WIFI and use a Time machine base station WIFI. I also have two email accounts, both on the same ISP. The Imac is not turned on most of the time and I use the Ipad for most of my daily computing. The problem is the Ipad is not getting all my mail messages from the server. Whenever I start up my IMAC, I get more messages that the Ipad received. I have done a full reset on the Ipad, but as yet can't fix the problem.
    Any ideas??

    Very long shot - which might have something to do with it. The downloads are set to 25, and I don't refresh the load button. However, that is only part of the answer I think. This morning, I sent out two email messages to a group, of which I am on the list, and one my Ipad I received only one. Alos, one of the things that happens is that my wife is the other account. And we belong to a community which has a server which bounces email to all members of the community, when we send the server an email. Quite ofen, one of us will get the mail, but not the other, and it is not consistent as to who gets the email.
    Fun isn't it???

  • Not getting all texts on 650

    i am a newbie and i apologize in advance for my ignorance.
    i am now on my second treo 650. both have had the same problem. i am not getting all my texts from other verizon friends. on their phone it says it went though, but i never receive it. on my old phone i could take out my battery and then it would come through after the phone restarted, not so on my replacement. i am just not getting them. the sound on my sms is not working all the time either.
    i am getting a little frustrated considering i pay for texts i am not getting and i never know i am not getting them until someone asks me why i didn't respond!
    thanks in advance for any help!!!
    Post relates to: Treo 650 (Verizon)

    Hi  I just bought a Treo 650 and am not being able to receive sms with taking the battery out like you....  Did you ever figure out what was wrong??
    Post relates to: Treo 650 (Verizon)

Maybe you are looking for

  • Error 3014 Ipad 2 Update from ios 4.3.5 to ios 5.0.1

    As the title says... I have been trying to update my Ipad to ios 5.0.1 and I keep getting the error (3014), althought my iTunes is updated to the last version, my windows is fully updated, my Ipad is directly connected to my PC's USB... I even tryed

  • Unable to play songs(music files missing)

    I've bought albums and single songs on iTunes a while back(almost 3-5 months ago) and what ever selection I pick to play it doesn't let me. On the left of the song I seleceted it shows an explanation point with a circle around it. When I click play o

  • Converting Outlook mails to PDF is very unreliable

    I recently bought Acrobat XI Pro in order to archive my large Outlook mailbox. Problem is, it works alright for single mails or small folders with <200 mails. If I try to select all folders I am interested in and set this up using the Selected Folder

  • IPod Touch with iPhone 2.0 software

    Quite recently, my uncle gave me his iPod touch (1st Generation) as a Christmas present because he was going to buy an iPhone 3G. I already have an iPhone, so I was wondering if the software used on it is compatible with my Touch. I don't wanna spend

  • Problems connecting to Oracle DB

    I'm trying to connect to an Oracle 7.34 database using the Oracle JDBC Oci driver. However, when I try to compile the program I get an error message saying "package oracle.jdbc.driver does not exist". I have set my CLASSPATH to include <ORACLE_HOME>\