Are not the results of filtering

I create 2 filter drop downs and I can't understand why my code is not filtering the results on the page.  Help, please...

Here's the code.

< name = "cfparam form.personnel" default = "" > "

< name = "cfparam form.status" default = "" > "

< cfquery = 'q' = datasource name "#dsn #" >

SELECT *.

TABLE

WHERE 1 = 1

< cfif val (form.personnel) GT 0 >

AND sector = < cfqueryparam value = "" #form.personnel # "cfsqltype ="cf_sql_varchar">"

< / cfif >

< cfif val (form.status) GT 0 >

AND reqStatus = < cfqueryparam value = "" #form.status # "cfsqltype ="cf_sql_varchar">"

< / cfif >

< / cfquery >

< are method = "post" action = "" >

< select name = "personal" >

< option > < / option >

< / select >

< select name = "status" >

< option > < / option >

< / select >

< input type = "submit" / >

< / make >

< cfoutput query = 'q' >

#sector # | #reqstatus #.

< / cfoutput >

Why you check " """" " in the SQL query? What are your reasons to use val()? Your results are very likely not filtered as your SQL query does not work as you check in your evil variables.

Are you trying to determine that the string is not empty? In this case, you want to use len()

Tags: ColdFusion

Similar Questions

  • Separators from decimals/mile are not the same for the number and format of thousands. How can I get even. ?

    I installed the version 11 of Pastel partner and the error message "separators from decimals/thaousand for number and currency formats are not the same" how to get this right?

    Pastel partner support site through and their instructions/FAQ

  • Things are not the tail

    Things are not the tail in Design view. They are very good in Live View and when I upload to the server. Any suggestions? One minute, they were beautiful and the next day they were all wobbly.

    http://michaelgabrielmusic.com/home/home.html

    Here's what it looks like in Dreamweaver - mode Design.

    Picture 2016-08-29 17_14_19.png

    I use Dreamweaver CS6.

    Design view is a relic of Macromedia in the past when all sites use tables-based layouts.  A lot has changed since then, but Design view has not kept pace with these changes. It will be eliminated later.

    For the purposes of editing, Design mode is very convenient, but at best, this is only an approximation of what would look like your site in older browsers.  If you use Responsive Layouts, fagetaboutit!  He can't handle the advanced CSS.

    Use the Live View and Preview in browser to test your work.   The Design mode is mainly for editing content.

    The current versions of DW CC have edition Live View.  At some point, you may want to increase the Creative DW Cloud version.

    For a taste of DW CC in the future, please download the public beta version currently in the trial.  It's still a work in progress, but the Beta team requires an entry.

    Welcome to all! Beta version of Dreamweaver is now online!

    Nancy O.

  • Apex 5, call a modal page, set page elements, in values referenced title page elements are not the same (correct) than the item itself

    Hello

    Apex 5.

    IR (departments) on page 2 I want to open a modal page 3 (classic report) with the detail data (from emp) for a Masters depno via a link on depno column.
    In Page 3, I created two elements P3_DEPNO and P3_DNAME. These elements are defined in modal page 3 of page 2.
    When I do these two visible elements on page 3 I can see, the values are set correct according to the value in column (depno) link on page 2.
    However, I would like to place these element values in the page title of page 3
    Title: PGE for DepNo: & P3_DEPNO., DepName: & P3_DNAME.

    It happens that the values mentioned in the title of the page are not the same (good) as in the items himself.
    Initially, they are NULL. Only when I refresh page 2 the values change but remain the same (last called depno) as long as I'm doing a new refresh of page 2.

    I wonder how I can run to display the values of the correct point in the title of the page corresponding to the values of the correct page element (that I have hidden).

    Y at - it something more to do, or it could be a small bug?

    I've created a little demo app on
    https://Apex.Oracle.com/pls/Apex/f?p=75955:2

    WS: AMLWS001

    Demo/demo (developer is)

    Please see the report 1.

    Thank you in advance!

    André

    Hi andremi,

    andreml wrote:

    Hello

    Apex 5.

    IR (departments) on page 2 I want to open a modal page 3 (classic report) with the detail data (from emp) for a Masters depno via a link on depno column.
    In Page 3, I created two elements P3_DEPNO and P3_DNAME. These elements are defined in modal page 3 of page 2.
    When I do these two visible elements on page 3 I can see, the values are set correct according to the value in column (depno) link on page 2.
    However, I would like to place these element values in the page title of page 3
    Title: PGE for DepNo: & P3_DEPNO, DepName: & P3_DNAME.

    It happens that the values mentioned in the title of the page are not the same (good) as in the items himself.
    Initially, they are NULL. Only when I refresh page 2 the values change but remain the same (last called depno) as long as I'm doing a new refresh of page 2.

    I wonder how I can make it work to display the values of the correct point in the title of the page corresponding to the values point right page (what I have hidden).

    Y at - it something more to do, or it could be a small bug?

    Page title is rendered before the page elements, that is why is not highlighted in your title.

    I don't think directly, we can use the page as a page element value.

    Creates a copy of yours and made the change it new App id - 45390

    There, I created a static area without a model before your report area and put your article into that.

    then displayed title PGE for DepNo: & P3_DEPNO, DepName: & P3_DNAME. for the area of your report.

    Kind regards

    Jitendra

  • CC works on all my other devices except my laptop. CC files everywhere are not the synchronization in the folder of files on my computer cloud creatives.

    CC works on all my other devices except my laptop. CC files everywhere are not the synchronization in the folder of files on my computer cloud creatives. When I try to open it online, it gives me the error message which is something like "this page is temporarily unavailable. We will return soon. "and"we are working to solve the problem quickly and we're sorry for the delay. Please check back or visit our site in the status updates. "But then I go to the website of the State and either, he said all 'normally works' where it says there is an error but it was"resolved"but error sign icon still appears in the menu dropdown. What should I do to solve this problem and come back if it is old auto synchronization?

    Hello:

    Could it please check the synchronization of files is enabled in your application of creative cloud? Please go to the creative cloud > creative cloud > files and verify that the synchronization on / off is on. If your synchronization of files has been enabled, but you still cannot sync assets compared to the clouds in your local creative cloud files folder, then we need more information to understand your question. Could you please use the log collector (https://helpx.adobe.com/creative-cloud/kb/cc-log-collector.html ) and send me the zip file on your two [email protected]machines? And please, please provide the information below:

    • Adobe ID:
    • Forum post link:
    • File or folder of the specific names that are affected:
    • You use creative collaboration Cloud:
    • How many computers you use with creative cloud:
    • Type of internet connection (Ethernet/WiFi):
    • Using a proxy (Y/N):
    • Firewall (no/company/Local):

    Best regards.

    Lin

  • I have the video captured from turbo Android phone. Videos are not the normal video image size in first pro. How to fix this, or can I?

    I have the video captured from turbo Android phone. Videos are not the normal video image size in first pro. How to fix this, or can I?

    Of course, it does.  This is how he was shot.

  • How can I save cfquery text sql, not the results

    Hello

    I have the need to save a dynamically generated real sql, cfquery, not the results.

    I can see it in < cfdump var = "# < qry_name > #" > but, how can I capture the real sql

    and save it in a var for later use?

    Thank you

    Bob

    The property of the results of the tag to put this information in a variable for later use.

    I.E.

    ...
    
    
  • drop table left-right scale of the value axis are not the same scale

    http://img20.imageshack.us/img20/6264/questionk.PNG

    the scale of the axis left and right are not the same.

    How to configure?

    Thank you very much!

    Hello

    Try this
    Chart, Goto Advanced properties-> check the line sync and the axis of the bar
    This will make the two scale of identical values.

    Thank you
    Vino

  • Applications show that up to date, but they are not the current versions

    I'm doing OSX 10.8.5 deployable image.

    Office CC tells us that applications are up to date, but they are not.
    I tried to uninstall and reinstall applications, only that she either go to a previous version (the original version of CC) evem and Office CC always said that it is up-to-date.

    I also tried using CC Cleaner and reinstall with the same results.

    I also noticed that CC Cleaner does not seem to remove completely all files from adobe.  In fact, applications of ADVANCED and a few others still remained in the applications folder.

    Can you give me any advice?

    Hi bretts,.

    Please see the steps mentioned in the article: http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html.

    Kind regards

    Romit Sinha

  • Droid A855 USB cables are not the same.

    I have nearly 20 of the Verizon Droid. We used Treo pro for Sprint, but they have been undermined by the poor coverage of Sprint and a rate of 25% of failure in a year.

    When I got the Droid A855, I tried using that Treo Chargers and it worked very well. However, if I used a USB cable from the Treo to a USB charger, the screen would go crazy until the cable has been removed. I got the same results of OEM Samsung cables that would be compatible with the Droid. I had to return 10 of the Samsung cables after attempting to convince the seller that they do not work on the Motorola Droid A855.

    After reading some of the discussions on this site, I got the impression that there is a USB standard following cell phones. My experience is just the opposite. Anyone can comment on this fact?  Can I buy a cable from someone else than Motorola and operate in the USB Chargers?

    I believe that the question can be some of your instruction ect but shielding the supply itself is a more important factor. USB is not very consistent as a source of energy. The only battery charger, I bought today from verizon said he did not use a normal usb computer cable and charge the batttery. I've had questions, thinking that it was the cable, experimenting different supplies of cables and charger it is the charger port or usb, not on the cable. I also use a generic cable and one who came with an LG Dare phone and three others, seem all verizon/Motorola. All work fine as long as two or three lightwieght chargers are not used. These same circumstances are repeated with the Ipone has my son, even if we don't change cables, Chargers fair.

  • SyncToy 2.1 - synchronized records are not the same

    I use SyncToy 2.1 on a 32 - bit XP system.  I did a "sync" between a local folder and a folder on a mapped drive.  SyncToy reports no errors, but the 'properties' for each of the files are not identical.  One of the folders has 358 files (local folder), and the other has 359 files (the folder on the mapped drive).  There are also differences in the "size" and "Size on disk" in the Properties window

    Good living, XP

    Please go through the below thread that has the explanation of the creation of .dat files when using SyncToy synchronization that could be one of the reasons why you find more number of files.

    How to avoid creating files hidden as SyncToy_*.dat in synchronized folders?
    http://social.Microsoft.com/forums/en-us/SyncToy/thread/8d3256d9-173f-404A-a68f-aca78382be15

    For additional help with SyncToy, please see:

    SyncToy 2.0 - frequently asked Questions
    http://social.Microsoft.com/forums/en-us/SyncToy/thread/5c021aa1-8738-47af-854D-c38d635800ac

    Kind regards

    Shinmila H - Microsoft Support

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • My computer (including the desktop and menu/task bar) screen are not the size of the screen of my computer?

    Somehow, I adjusted the size of my desk, bar of tasks and new windows that open. The windows are currently "maximized", but do not take to the top of my computer screen size. There is a black box around all the sides of my screen (including my desktop and the taskbar). How normal view again?

    Thank you

    Hello

    If a separate monitor (not a laptop), it will be setting of physical geometry on it then you can move all the
    the screen to the right and enlarge if necessary. Also right click an empty area of the desktop - graphic properties.
    Search for geometry settings (PCs and laptops).

    If a laptop computer Right Click a white office - properties Graphics - look at the horizontal settings.

    If necessary contact your system support manufacturer and check their documents and online forums. Do the
    even with the monitor manufacturer if different from the manufacturer of the system.

    Right click on desktop - customize - display settings

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

    You can also try a system back restore to before that you did.

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html
    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • How to exclude folders while they are not the index by Windows Media Player 12, but are available in Media Center?

    Just upgraded to Windows 7 from Vista and am having a problem with Windows Media Player 12 and its indexing.  In WMP11, you could put all your pictures in your "My pictures" folder (so they appear in the Media Center) but then exclude it from indexing in WMP11, then it would not bog you try to index all things.

    This option has been removed in WMP12.  If you want images to appear in the Media Center, they must be included in your WMP12 library. (Even if Media Center does not use the WMP library to ALL display pictures - she designs per file)

    Because I have thousands of photos and videos, this is a major problem at any time an Extender is turned on, because for some reason when you start an Extender it forces a new scan of all your media.  It is in turn completely failed the system leaving the main centre of the media both all completely unnecessary extensions while CPU hits 100%.

    So I have my girlfriend trying to listen to music in the bedroom on the XBOX360 giving me eyes stink saying "This sucks." and my daughter in the TV room to complain than his scooby-doo show "keeps skipping and stopping."

    Hello danwheeler, welcome.

    There are several ways to do it, however, I offer an option to try more than one backend solution.

    For purposes of reference, take a look at this thread if the solution below does not work:
    http://social.answers.Microsoft.com/forums/en-us/w7music/thread/67ac2992-e76e-408a-90a8-0fa173885a6e

    Try this:

    1. click on START
    2. click on "Control Panel."
    3. double click on "Folder Options".
    4. Click to "Show hidden files & folders".
    5. click on 'Apply' at the bottom right
    6. close Windows Media Player and other applications (REQUIRED)

    7. click on START
    8. click on 'computer '.
    9. double-click on "disk Local (c)"
    10. double click on "users".
    11. double click your user name
    12. double-click on "AppData".
    13. double-click on "Local".
    14. double click on "Microsoft."
    15. double-click on 'Media Player '.

    16 "wmpfolders.wmdb" right click and select open with
    17. If Notepad is not in the list, click Browse and find Notepad in C:\Windows
    18. Once you select the Notepad, click Ok and notepad opens the database file

    19. If you see a folder in the list that you want to exclude, on the line of code, look for ' exclude = '0' "and replace the '0' with a '1'.
    20. If the folder you want to exclude is NOT in the list, and then add this right after the last line of

    21. click on file > save
    22. restart your computer

    The issue must be resolved. These instructions are not easy to use, so if you have any quesetions, please ask.

    Let us know if it works,

    Thank you! Ryan Thieman
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to identify and remove duplicates and files in Windows 7 and those who are not the files in Win 7

    I used a program called IntelliMover and think that it flies over the files and unnecessary files.  How can I identify and delete these files?

    If make sure you that the files are not used by some programs or windows, then, the answer is YES.
    Easier would be, just look for duplicates in the folders where the files are not required by Windows or programs.

  • Button check that several drop down menus are not the default submit

    Hi all

    I create a form that has several drop down menus and add a submit button that checks on Mouseup executes the following code. I need it so that they are not yet on the default value and they chose something different otherwise she will not submit.

    Instance field 'UserDepartment' has the value default of ' Select Department: "I added the checked for 3 of the drop down menus far, but no matter what I choose always travels and don't pop up with an alert, even if the default is selected.

    What I am doing wrong? I have read several other issues, but for me (no experience), it seems fine.

    var v = this.getField("UserDepartment").value;
    var v2 = this.getField("UserRole").value;
    var v3 = this.getField("ManagerRole").value;
    if (v == "Select Department:")
    {
        app.alert("You must select a valid department for the new starter before you can submit this form.");
    }
    else if (v2 == "Select Job Role:")
    {
        app.alert("You must select a valid department for the new starter before you can submit this form.");
    }
    else if (v3 == "Select Job Role:")
    {
        app.alert("You must select a valid department for the manager before you can submit this form.");
    }
    else
    {
        submitForm({cURL: "mailto:[email protected]", cSubmitAs: "PDF"});
    }
    
    
    
    

    To make it replace the first two lines of your code with this:

    var f = this.getField ("UserDepartment");

    If (f.valueAsString is f.defaultValue)

    If it still does not work, you will need to share the file with us for more

    Help.

    Monday, March 14, 2016 at 15:26, ryand54430413 [email protected]>

Maybe you are looking for