How do I get a button to show in a list only when a survey is filled?

I am using cf9 with mySQl 5+. I have two tables:
Signups -  where people signup to take a course.
Course_eval – once the course is completed, the student fills in the course evaluation
I use an inner join on userID in both tables.
I have a page, showsignups.cfm, that lists all of the students by course. Once a student finishes the survey, a button will show up next to the student in the showsignups.cfm page where it can be clicked on to show the survey by the individual student.
My problem is instead of showing all students with or without the survey buttons, it only shows the students who have finished the survey. It should show:
Student’s name | survey button
Student’s name |
Student’s name | survey button
Student's name |
I thought using a cfloop through the students would give me the effect I want, but alas, no. Here is the code I am using for the cfquery:
<cfquery name="getsignups" datasource="#application.dsn#">
select signups.courseTitle,signups.property,signups.calendardate,signups.company,signups.firstna me,signups.lastname,signups.email,signups.phone,signups.userID,signups.signup_id,signups.r id,course_eval.userID,course_eval.id
from signups INNER JOIN course_eval ON signups.userID = course_eval.userID
where signups.rid = #rid#
</cfquery>
(Rid is the courseID)
Here is the output I am using:
<cfoutput>
<cfloop query="getsignups">
<tr>
<td>#rid# - #firstname# #lastname#  |   <a href="mailto:#email#">#email#</a></td><td>Ph: #phone#</td>
<td width="24"><a href="showsignups.cfm?signup_id=#signup_id#&go=go" class="button">Remove</a></td>
<cfif isdefined("id")>
<td width="24"><a href="../../forms/surveys.cfm?userID=#userID#" class="button">Survey</a></td>
</cfif>
</tr>
</cfloop>           
</cfoutput>
I know this is a long post, but I wanted to make sure any body who reads this understands what I am trying to accomplish. Any ideas on what I am doing wrong?

Don't use an inner join:
<cfquery name="getsignups" datasource="#application.dsn#">
select signups.courseTitle,signups.property,signups.calendardate,signups.com pany,signups.firstname,signups.lastname,signups.email,signups.phone,si gnups.userID,signups.signup_id,signups.rid,course_eval.userID,course_e val.id
from signups LEFT OUTER JOIN course_eval ON signups.userID = course_eval.userID
where signups.rid = #rid#
</cfquery>
<cfoutput>   <cfloop query="getsignups">    <tr>      <td>#rid# - #firstname# #lastname#  |   <a href="mailto:#email#">#email#</a></td><td>Ph: #phone#</td>      <td width="24"><a href="showsignups.cfm?signup_id=#signup_id#&go=go" class="button">Remove</a></td>      <cfif isdefined("id")>        <td width="24"><a href="../../forms/surveys.cfm?userID=#userID#" class="button">Survey</a></td>      </cfif>    </tr>  </cfloop>            </cfoutput>  
Use:
<cfif id neq "">
Message was edited by: Eddie Lotter (Typo)

Similar Messages

  • How can i get a button to show an SWF on success?

    Basically what I have as an acknowledgement statement at the end of a course that then asks the user to click "I Acknowledge".  When they click, I want an SWF check mark to appear so that the user knows they have clicked it.  I've got my button and my SWF in the project, and I have set the button to "on success, show the SWF"....but this does not work.  As soon as the slide starts the swf appears.  Any suggestions?

    No.  It was set up correctly.  I launched it on our LMS and it worked properly.  For some reason it just wouldn't work right in preview.  I should have just tested it in the first place.  I've found that to be true for a number of things in Captivate. Thank you for responding!

  • I have garage band ver 10.0.2 and am trying to add effects to an audio track but i have no info button or track info under the track tab.  How do i get these things to show up on my program?

    I have garage band ver 10.0.2 and am trying to add effects to an audio track but i have no info button or track info under the track tab.  How do i get these things to show up on my program?

    In GarageBand 10.0.2 you can no longer add all kinds of effects freely; this GarageBand '11 feature has been discontinued. Pick one of the predefined patches that already has the effects you want.
    However, you can add effects from the predefined audio units.
    You'll see the predefined effects on the track, when you open the Smart Controls. To add audio units, click the button and enlarge the the smart controls pane by dragging the dividing line to the Track Area upwards.

  • How can I get a tooltip to show up on a custom button obj on a dashboard?

    I have added a ClearAll button object (to clear the filter criteria) on a dashboard that I am working on, and have added some text in the comments section of the properties. I can see the resulting tooltip when I hover over the button in the Client Side IR studio tool; however, when I upload the .bqy to the server and view the report in the web EPM version, the tooltip does not show. I can see the other tooltips for the buttons that were originally on the dashboard template I used, but I cannot see the one for the custom button I added. Does anyone have any ideas how I can get this to show up?
    Thanks in advance,
    Cindy

    I copied an existing clear filter object (I believe this is an image object, but not sure how to confirm) from the provided square tab sample template in Express Template.bqy. After your post, I took a second look at the object and remembered I had changed the name from picClearAll to ClearAll. I had changed the name because the button was continually disabled when navigating within the dashboard before I renamed it. I am assuming this is because the object picClearAll in the provided templates is associated with results filters. I do not have any results filters, so it was showing as disabled. I have filters on the query itself, and was hoping to use this same image on my button to clear the query filters (I put java scripting behind the button to do this).
    Another interesting thing about this is that when I change the name of the object back to picClearAll, and during runtime force the button to be enabled, I DO see the tooltip I am trying to get to work; however, as soon as I navigate or refresh the dashboard in some way, the button goes back to disabled.
    How can I get the button to be enabled (without having filters on my results), and still show my tooltip?
    I am using Hyperion version 11.1.1.3.0.956.
    Thank you for your help,
    Cindy

  • How do I get a button in Flash point to a https page of PagSeguro.

    How do I get a button in Flash point to a https page of PagSeguro. Programming they provide is this:
    <!-- INICIO FORMULARIO BOTAO PAGSEGURO -->
    <form target="pagseguro" action="https://pagseguro.uol.com.br/checkout/v2/cart.html?action=add" method="post">
    <!-- NÃO EDITE OS COMANDOS DAS LINHAS ABAIXO -->
    <input type="hidden" name="itemCode" value="AC0DD53E5757C9F774629F9937513499" />
    <input type="image" src="https://p.simg.uol.com.br/out/pagseguro/i/botoes/pagamentos/120x53-comprar.gif" name="submit" alt="Pague com PagSeguro - é rápido, grátis e seguro!" />
    </form>
    <!-- FINAL FORMULARIO BOTAO PAGSEGURO -->
    If I past this programation in start HTML, I see border white in my page.
    I wrote a book and this schedule is to send to a secure site for sale
    I development my site in Flash 4 and now CC6. Export in Html
    www.escalasdecores.com.br

    Excuse me for my ignorance.
    I put the schedule as show below and generates an error when I export
    Scene 1, Layer 'Actions', Frame 350, Line 119, column 11 in 1061: Calling a possibly undefined method send through a reference with static type flash.net: URLLoader.
    Which is in line urlLoader.send (urlRequest);
    I used Snippets
    This programation:
    /* Evento de clique de mouse
    Clicar na instância do símbolo especificada executa uma função na qual você pode acrescentar seu próprio código personalizado.
    Instruções:
    1. Acrescente seu código personalizado em uma nova linha depois da linha que diz "//Iniciar seu código personalizado" abaixo.
    O código será executado quando se clica na instância do símbolo.
    button_7.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
    function fl_MouseClickHandler(event:MouseEvent):void
              // Iniciar seu código personalizado
              var urlLoader:URLLoader=new URLLoader();
    var urlRequest:URLRequest=new URLRequest("https://pagseguro.uol.com.br/checkout/v2/cart.html?action=add");
    var urlVariables:URLVariables=new URLVariables();
    urlVariables.itemCode="AC0DD53E5757C9F774629F9937513499";
    urlRequest.data=urlVariables;
    urlRequest.method=URLRequestMethod.POST
    urlLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
    urlLoader.send(urlRequest);
              // Este exemplo exibe as palavras "Mouse clicado" no painel Saída.
              trace("Mouse clicado")
              // Encerrar seu código personalizado

  • How do I get back 'Don't Show Again' dialogue boxes?

    How do I get back 'Don't Show Again' dialogue boxes?
    In particular:
    I've got an interactive form with a 'Submit via Email' button. Normally, when you select this button you get two options:
    1. Send via desktop email application (e.g. outlook)
    2. Send via other email applications (e.g. hotmail)
    Previously I've selected the 'don't show again' check box which defaults to the second option.
    Now I'd like to select the first option but don't know how to get this dialogue box to come up again. How is this done?
    Rachel Viski.

    You can use "Edit => Preferences" and select the 'General' category, click on the 'Reset All Warnings' button, and click the 'OK' button to finish.

  • How do I keep the buttons from showing up all the time?

    I made several little shapes in Photoshop and imported them, then made buttons out of them. But when I simulate the menu, the buttons are always on top of the motion menu, how do I get the buttons to not show until the entire motion menu has played?

    The loop point is indeed set to 10 seconds in. But as the motion menu starts playing and the words are flying onto the screen, the button (custom key shape) is already on the screen. Is there not some kind of opacity setting where I can make the button invisible until all the words have loaded onscreen?
    And I tried some of Apple's buttons, they do the same thing. The little bracket " >" is sitting there on screen while the words "Play" and "Scene Select" are flying in from off screen. Once it reaches 10 seconds, then the " > " highlights to yellow on "Play". But I do not want that little bracket to show onscreen until the word "Play" is even there yet!

  • HT4528 A song I purchased shows up in iTunes, but will not show up on my iPhone.  When the phone is plugged into the computer, iTunes shows that it is on my iPhone, but it is not.  How do I get that song to show up on my iPhone?

    A song I purchased shows up in iTunes, but will not show up on my iPhone.  When the phone is plugged into the computer, iTunes shows that it is on my iPhone, but it is not.  How do I get that song to show up on my iPhone?

    I have the same problem and it only affects the one song, everything else syncs

  • How can i get music to not show up on my phone that i dont want there

    how can i get music to not show up on my phone that i dont want there

    If the app is G-Toolkit and you have a Gmail app on your iPhone, delete the Gmail app.  Apparently the G-Tool kit is tied to a Gmail app.  From searching the web my impression is that G-Toolkit is not spyware and is from a legitimate company that produces app for several platforms.

  • I have the newest version of the iPad and can not see it under devices in my iTunes account on my PC.  I can however see my iPod touch under devices and sync it.  How can I get my iPad to show under devices and sync as well?

    I have the newest version of the iPad and can not see it under devices in my iTunes account on my PC.  I can however see my iPod touch under devices and sync it.  How can I get my iPad to show under devices and sync as well?  I have also tried may suggestions on the apple support site and none have worked.  Any suggestions are welcome.

    You need iTunes version 11+.
    iPad not appearing in iTunes
    http://www.apple.com/support/ipad/assistant/itunes/
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/TS1591
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    http://support.apple.com/kb/TS1567
    IOS: Syncing with iTunes
    http://support.apple.com/kb/HT1386
    Apple - Support - iPad - Syncing
    http://www.apple.com/support/ipad/syncing/
     Cheers, Tom

  • I have two email accounts. How do I get a signature to show up on the second account?, I have two email accounts. How do I get a signature to show up on the second account?

    I have two email accounts on my iPad. How do I get a signature to show up on the second account?

    The signature should show up with each account. Usually the complaint is not having an option for multiple signatures or not being able to have a different signature for each account.

  • How can I get my POP account showing in the inbox it's supposed to show in?

    Hi-Until a couple of weeks ago all mail received from my IMAP and POP accounts would show up in the correct mailboxes in my Mail inbox list. (Only problem then was that sent mail would never show up in the sent mail folder--always stayed in the inbox.)
    Now a new problem has happened----unless I go directly to my charter cable account (P0P account) to retrieve any mail sent to that particular address, the mail goes unnoticed by Mail on my MAC and nothing shows up in the inbox. But--- If I do a test to myself , sending an email to the POP address from my IMAP account from my MAcMAil, my IMAP account will show the email in the inbox of the IMAP account I sent it from as if I'd mailed it to that account. How can I get my POP account showing in the Inbox? And, any suggestions for a fix to getting the "sent" mail to show in the "sent" folder would also be appreciated.
    Thanks!

    Control click in the tool bar area and customize.

  • How can I get a picture to go with my email signature when sending emails from my iPad? Only a square box shows up on my signature not the actual picture I iploaded in my settings.

    How can I get a picture to go with my email signature when sending emails from my iPad? Only a square box shows up on my signature not the actual picture I iploaded in my settings.

    Only Apple Account Security could help at this point. You can try calling Apple Support in Canada - you'll have to find one of the several ways, such as Skype, to call an 800 number from outside of the relevant country - and ask for Account Security and see if they can help. Or you can find a friend who speaks Chinese and ask them to help you talk to Apple Support in China. There are really no other options that I know of.
    Note, by the way, that these are user-to-user support forums. You aren't speaking with Apple when you post here.
    Regards.

  • How do I get .jpg extension to show in the name of my imported photos?

    How do I get .jpg extension to show in the name of my imported photos?

    Need to have Mail running. When you receive new mail, it will show up in Notifications Center UNLESS the Mail window has focus.
    The Notifications Center preferences are in System Preferences / Notifications.

  • How do I get the Questions to show in the 'View Responses' TAB, and then show up in the Summary Report?

    How do I get the Questions to show in the 'View Responses' TAB, and then show up in the Summary Report?

    There are more than one Applications folders. At the root level of your system is an Applications folder for all users, where most installations go. Every user, including you, also has a separat Applications folder.
    Check all of them.

Maybe you are looking for

  • IPod stops syncing on my MAC G5.... continued

    If anyone else is having a problem syncing their iPod with their MAC could you post here so I can make sure I'm not alone. Originally I posted a work around to get my music on my iPod and I thought that it fixed my problem completely. But after purch

  • Restoring from Time Machine AFTER install

    My hard drive crashed, so i had to buy a new one (WD scorpio blue). I replaced it, then reinstalled from the install disk (10.4.10, Tiger). That was mistake one. What I meant to do was to restore from my time machine backups on an external HD. I also

  • Nat Type help

    Hello Im currently having issues with the Home hub 2.0a with the pc game COD:Ghosts. It seems no matter what portforwarding i do my NAT type stays strict. I have even turned off both windows firewall and the hubs firewall and it has had no effect at

  • Oracle.sql.StructDescriptor.createDescriptor - java.lang.ClassCastException

    Hi, I am getting stuck with the exception. Stack trace:java.lang.ClassCastException      at oracle.sql.StructDescriptor.createDescriptor(StructDescriptor.java:158)      at oracle.sql.StructDescriptor.createDescriptor(StructDescriptor.java:129)      a

  • Error on OSB Proxy Test: Can not compute effective WSDL

    The error below was encountered when executing an OSB proxy test. Only this specific service encountered the issue. It was resolved by restarting all the servers in the domain (3 managed servers and an admin server). Any idea on the root cause? So we