CFIF to choose which application to use.

I need help getting syntax on a question.  I have a ListBox with the 3 values, True (1), False (0) and Approval (NULL) needs, but I can't seem to get the DRAW to show. The SQL column has this as a bit value so a case adjustment does not work.

What I need to do this is if a need for approval is selected in the cboApproved box, use the "qRecordsNull" query for results, otherwise use the "qRecords" query.

Here is the code I have and that works for the true and the false.  Any help would be greatly appreciated.

< cfset vApproved = 0 >
< isDefined ("form.cboApproved") cfif >
< cfif form.cboApproved eq "" > "".
< cfset vApproved = 0 >
< cfelse >
< cfset vApproved = #form.cboApproved # >
< / cfif >
< cfelse >
< cfset vApproved = 0 >
< / cfif > [/ code]

< td >
< select name = "cboApproved" class = "smallFont" >
<!-< option value = "All" > all < / option >->
< option value = "1".
< isDefined ("vApproved") cfif >
< cfif vApproved eq 1 >
selected
< / cfif >
< / cfif >
> true < / option >
< option value = '0 '.
< isDefined ("vApproved") cfif >
< cfif vApproved eq 0 >
selected
< / cfif >
< / cfif >
> false < / option >
< option value = "" > need approval < / option > "."
< / select >
< table >

Basically what looks like this:

< isDefined ("form.cboApproved") cfif >
< cfif #form.cboApproved # eq "Needs approval" >
< name cfquery = "qRecordsNull."
< cfelse >
< name cfquery = "qRecords."
< / cfif >

1. replace the following code:




 

 



with this one:



 

2. replace the following code:



 

 

with this one:


   
   
   


     
   
       

Tags: ColdFusion

Similar Questions

  • which application to use to edit PDFS?

    Which application to use to edit PDFs

    Plans and prices. Adobe Acrobat DC

  • What is Manager required URI, download of CC before?  Choose which application? on W7

    What is Manager required URI, download of CC before?  Choose which application? on W7


    Please see:

    http://helpx.Adobe.com/creative-cloud/KB/AAM-updating-CC-desktop-app.html

    Follow the instructions for Solution-1.

    Kind regards

    Ashutosh

  • A program to choose which audio device uses

    I saw the same question asked and asked and on many different forums with many different responses, most of which don't really know what was the real problem.

    Is there a way to get the Application use Audio Device 1 and get B asks to use Audio Device 2?

    Before people will tell me how to tell what Audio device to use Windows Media Player or VLC, I KNOW!  It does not help a bit.

    I want to be able to do if the two Application A AND B of the application don't have the ability to select which sound device they use.

    I am running Win 7 64 bit. I have a 5.1 speakers connected to my onboard sound and I have my TV connected to the HDMI connector on my graphics card.

    What I want to achieve is to have the sound of the game I play to get out of my speakers, and the sound for the film I'm streaming come on my TV.
     
    I have not yet found an option in IE, Firefox, every night (64 bit Firefox) or Chrome that allows me to use what audio device they use. Not one that would be important they use other applications like Flash Player or Silverlight to stream the video, or which have an option to choose which audio device they use, although oddly enough I found an option to select what mic was used on a single program...

    The programmers of these two Star Wars: The Old Republic and The Secret World, (the two games I play right now) have neglected to include the ability to choose which Audio device they use in the games options.

    I came across a post suggesting IndieVolume, I thought "Great, the answer to my prayers!", I downloaded the trial version to see if it would work. Installed, open it, looked at GUI, set up... Nothing has changed, did not work.

    There must be a way to do it built-in to Windows or that you would not get the option to select which audio device WMP can use.

    I would have liked to be able to do this easily in Windows 7, because after all was not Windows 7 supposed to be all about doing things you want to do with your PC, so much easier to do? I wish more programmers to understand that it is really necessary for the choice of the audio playback device in their games.

    Until these times there at - it anyone out there that can suggest a program or something that will help reach my goal? Or a way to do within Windows?

    IE and Silverlight are the two Microsoft but they don't give you the option.

    There must be programming in Windows to do can you supposed to have a reading of default communication as a standard device. Surely, that works on the same principle, with various programs that will be run, get recognized by windows as a program of communication and see their directed audio output in an appropriate manner.

    Is there a way to access which programs windows recognizes as a communications program and adding to the list manually?

    Force windows to think that request is a communication program and get the result of requests, the value 1 of Audio device which is defined as the "default communication device".

    Leave the Application B crossing 2 Audio device which is defined as the "Default Device".

  • When I try to download Illustrator, I get a dialog box asking me which application to use to open the link.  I thought a download of software was just a .exe file - I have no idea how to proceed.

    I was hoping to use Illustrator today, so I bought it.  But I'm stuck at the stage of download with a dialog box saying that I have to choose an application to open this type of link (it mentions .aam)

    Sewn,

    If you use creative cloud, first install the Adobe Creative Cloud Desktop application:

    Download Adobe Creative apps for the Cloud

    and then use the Adobe Creative Cloud Desktop application to install applications:

    Using creative cloud | Download, install, update or uninstall applications

    If you purchased creative suite software, check out these links:

    Suites and programs CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 , CS4 Web Standard | CS3

    Each page contains a link like this to help with the instructions:

    "After you download the installation files, instructions to extract the files and install your product."

    If this method doesn't work well for you, you can download directly from this site:

    CS 3, 4, 5, 6:

    http://prodesigntools.com/Adobe-CS6-direct-download-links.html

    http://prodesigntools.com/Adobe-CS5-5-direct-download-links.html

    http://prodesigntools.com/all-Adobe-CS5-direct-download-links.html

    http://prodesigntools.com/download-Adobe-CS4-and-CS3-free-trials-here.html

    Guinot

  • Choose which carrier to use my iPhone WE bought in Belgium (Europe)?

    Hello

    I'm about to buy an iPhone 7 (or iPhone 7 more) in the United States.

    Can I use this phone in Europe?

    What carrier or provider choose to have a phone "unlocked"?

    Does this affect my warranty? Is it correct that there are no services offered in Europe if the phone is purchased in the United States?

    Thank you very much!

    I would get the verizon one... my advice is based only on my own experiences I have and I have taken to europe and the Middle East and just changed the sim cards and it worked... but I'm sure someone here will give you specific information

  • Discover which applications that uses the network

    Hello!

    I recently discovered that my computer sends tons of data thrown my internet connection every 20 minutes by analyzing the network graph in the Task Manager.

    Is there any application Windows witch allows me to find what applications uses the network. For example, the process and the use of the network?

    You can try this site:

    http://TechNet.Microsoft.com/en-us/Sysinternals/bb795532.aspx

    There are some tools that might help you.

  • Should which application I use to design business cards by Adobe?

    I'm currently designing the business card in photoshop CC but when I jum + my design so I know it is not perfact. It wouldn't be good for printing. But what application would be perfact.s.PNG

    Illustrator or InDesign are the best choices for business cards.

    Photoshop is for image editing, and although it can work with text, it is not the best choice for typographic control, nor the most intuitive to make layouts.

  • How will I know which applications use my webcam

    I get an error code that says that I can't start my webcam (works on another computer) bran new. Camera Says Error is used by another program. check the Task Manager doesn't show anything. I don't use yahoo or msn messengers.

    Is it possible to see which applications are using a piece of hardware? Because its kind just a goose wild chase looking for applications that can use it.
    Thank you

    Hello

    Check the implementation to see if the camera programs are there.

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/kb/929135
    How to check and change Vista startup programs
    http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.html

    Autoruns - free - see what programs are configured so that it starts automatically when
    your system boots and you connect. Autoruns also shows you the complete list of the registry
    and where applications can configure Auto-start for the files settings.
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx

    ==========================================================

    Among other things, messengers and Skype and others can access the camera and
    Some people may not release properly.

    Click right tab taskbar - TaskManager - Applications and processes tab allows you to see
    what might be running. Check the Notification area near the clock in the bottom right
    to see if something is loaded it.

    Process Explorer can provide a little more information.

    Process Explorer - free - find out which files, key of registry and other objects processes have opened.
    What DLLs they have loaded and more. This exceptionally effective utility will show you even who has
    each process.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspx

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • How Firefox decides which device to use (when run by mutt mailto links)?

    In Edit > Preferences, Applications, content type "mailto", I chose "Use mutt." When I click on mailto: links, mutt opens in a gnome-terminal. I want the terminal either through the alternatives system using x-terminal-emulator. How Firefox chooses which device to use here?

    You can set via favorite Applications (GNOME > system > personal > preferred Applications > system)

  • -Pop-up menu (allows you to choose what program you use to open the file) when you insert sim or cd does not appear

    When a disk or sim card or data storage device is connected to the computer there should be a menu pop up that allows you to choose which program to use to open the file. This is no longer the case. Any ideas how to restore it?

    Hi John,.

    1 are you referring to AutoPlay settings in Windows XP?

    2. did you of recent changes on the system?

    If you are referring to AutoPlay settings in Windows XP, you can see the following article in Windows XP to enable the feature.

    The Autorun feature or the AutoPlay feature does not work when you insert a CD-ROM into the CD drive

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756 (http://support.microsoft.com/kb/322756/) how to back up and restore the registry in Windows

    You can also consult the following article:

    How to change or choose the program that starts when you double-click a file in Windows XP

  • How can I stop Firefox opening iTunes or ask me which application I want to use for the links from the itms/itmss?

    When I opened iTunes App Store link, Firefox wants to automatically open iTunes. In Options > Applications, I found the itms and itmss content types, which causes this behavior. I can change "always ask them", but when I do, I get a automatic every time I open the link asking me to choose between "iTunes" or "Choosing an Application." To avoid future pop ups, I check "Remember my choice for itmss links" but only after selecting iTunes or another application. There should be a third option there for 'doing nothing '. Is it possible to tell Firefox to ignore completely the content of the itms/itmss?

    COR - el said

    Is there some prefs the protocol handler if you are looking for the topic: config page?

    • Network.protocol - handler.

    You just solved my problem - there is no Network.protocol - handler.external. itms or itmss prefs, so I added the Boolean values:

    Network.protocol - handler.external.itms
    Network.protocol - handler.external.itmss

    Set to false and voila! No iTunes, don't ask me what program to use.

  • When I try to download my InDesign product, I ask for an application to open a link? which Application should I choose?

    Which Application should I choose when downloading in the Design?

    Install the application of office cc, https://creative.adobe.com/products/creative-cloud and use it to install your subscriptions and trials.

  • whenever I type in the google box to search for each letter i firefox type which application I would like to use to open this file, this is so embarrassing, how to stop this?

    whenever I type in the google box to search for each letter i firefox type which application I would like to use to open this file, this is so embarrassing, how to stop this?

    You are welcome

    Can you tell us which extension caused your problem?

  • Am on wifi and impossible to activate the backup in my new phone 6s.  Applications downloaded from my previous phone 5s which I still use.

    Using wifi, but a problem to activate the backup on my new 6s phone. Applications have been downloaded since my previous phone 5s which I still use. However I mistskenly deleted to the 6s phone backup.

    Hello

    Your iphone 5s uses ios 9.2

    Use the same apple ID on the new iphone email address.

    See you soon

    See you soon

    Brian

Maybe you are looking for