Bound CFSelect not working (with or without search box)

Hello,
I'm on WS2008 (64-bit) with IIS and CF9.0.1 (32 bit) and can't seem to get a bound CFSelect to work at all. CFGrid and other AJAX contriols work great. The code (shown below) appears to run without errors but the option tags are never generated.The binding CFC method returns a query with the data I want (I can see it on a dump) but is dropped by CF somehow.
Ideally I want to use this approach on several complex forms but need to get something working first. Removing the lookup doesn't help either. I'm pulling this Oracle data via the 10G Client's ODBC driver.
I've been working on CF forever (4-9) and never was stumped like this. Otherwise CF 9 On this server is running without a hitch.
Long term I'm trying to move away from our Flash/Actionscript equivilants and move toward AJAX. But I'm stuck. Please help!
Thanks
Tim
Index.cfm
<cfparam name="form.lookup" type="string" default="A">
<cfform preservedata="Yes">
    Search: <input type="text" name="lookup" id="lookup"><br />
    <cfselect name="Emp" bind="cfc:application.getEmpList({lookup})" value="EMPL_NBR" display="EMPL_NM">
        <option value="00000000">--- No Employees ---</option>
    </cfselect>
</cfform><br>
<!--- Just for Testing --->
<cfinvoke component="Application" method="getemplist" returnVariable="qRead">
<cfinvokeargument name="likename" value="#form.lookup#">
</cfinvoke>
<cfdump var="#qRead#" output="browser">
Application.cfc
<cffunction name="getEmpList" access="remote" returntype="query" output="yes">
    <cfargument name="LikeName" type="string" required="yes"> 
    <cfquery name="Emps" datasource="#application.dsn#" maxrows=50>
        Select EMPL_NBR, EMPL_NM from MNDOT_EMPLOYEE
        Where EMPL_STAT_CD = 'A'  <cfif isdefined("LikeName")> and upper(Empl_Nm) like '%#ucase(likename)#%'</cfif>
        Order By Empl_NM</cfquery>
    <cfreturn emps>
</cffunction>
Message was edited by: CFTim1965
Message was edited by: CFTim1965

Turns out that bound (used for the CF AJAX tags) CFCs are processed by the Application.cfc event methods like CFMs are and will have any HTML tags added in. When my method returned the query it had all my template code at the top (and some on the bottom). I used the code (in the Application.cfc) below to only write the HTML when the CFM pages are processed. Hope this helps! There a lot of misleading half truths out the about this issue.
<cffunction name="onRequestStart">
    <cfargument name="targetpage" type="string" required="true">
    <cfset var isCFM  =  (lcase(ListLast(arguments.targetPage, '.')) eq 'cfm') />
    <cfif isCFM>
        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml">
        <body>
        <cfset AppHeader() /><!---  Create the Template Header --->
    </cfif>
</cffunction>

Similar Messages

  • Adobe creative cloud eea 1.5 is not working with our asus Eee box , celeron j1900 2.00 ghz, 4gb of ram, 64bit. can settings be changed in adobe?

    adobe creative cloud eea 1.5 is not working with our asus Eee box , celeron j1900 2.00 ghz, 4gb of ram, 64bit. can settings be changed in adobe?

    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • cfselect not working with flash form

    I have searched the forum and google to find a solution -
    I've tried what's been suggested (ie - mappings of /CFIDE, adding
    /CFIDE to the site root, etc.) nothing has worked. This is only
    happening in my production boxes (two identical setups, running in
    parallel) -
    The form loads, but any options I define inside
    <cfselect> will not show.. here's the basic code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    <body>
    <cfform name="theForm" format="Flash" width="300"
    height="200" accessible="yes">
    <cfselect label="Type: " name="feedbackType" width="200"
    enabled="yes" required="yes">
    <option value="">Select</option>
    <option value="WEB">Our Website</option>
    <option value="ACCOUNT">Your Account</option>
    <option value="COMPLAINT">A Complaint</option>
    <option value="GENERAL">General Comment</option>
    <option value="OTHER">Other</option>
    </cfselect>
    </cfform>
    </body>
    </html>
    Same code works on my localhost (development box) - so I'm
    sure it's some setting I'm missing or messed up in the production
    servers. I have checked the IIS settings as well as the mappings in
    CF admin, both have /CFIDE defined. I've even added a mapping to
    the /CFIDE within the site root.
    I'm currently running CFMX 7.0.2 on Server 2003 with IIS 6
    Please help!!

    More info...
    When I call the page locally...
    http://flush/testFlash.cfm
    the form works perfectly.
    but when I call the page using the domain...
    http://www.mydomain.com/testFlash.cfm
    the <cfselect> will not work.

  • Keyboard: audio and Brightness control keys not working with or without fn

    The Keys for controling Audio and Brightness (F1-F5) do not work.
    Also combined with pressing the "fn" key the keys do not work.
    So i only control audio with the remote control or the slider in the menubar.
    Making a reboot with deleting pram didn't help.
    I'm running the up to date version of leopard on a macbook pro (core2duo).
    I also searched in the forum for this problem.
    I oten read about "sytem control"-"keyboard and mouse"-"keyboard" and the F1, F2, etc. to use as...
    but switching this button on or off doesn't change anything.

    problem solved:
    the couse was the software update 1.1 for macbook pro, because there i had the problem like in this thread: http://discussions.apple.com/thread.jspa?messageID=6142512&#6142512
    and did the solution like that, but there i maybe made some mistakes with renaming and copying, so i rinstalled the update and renamed it a copied to plugins, and now all works as it should.
    thanks for help

  • Logical AND not working in the forum search box

    Logical AND of search terms does not seem to be working in the MSDN forum search box. Example: I go to the Project Customization and Program forum and type the word
    subproject
    in the search box. I get a lot of hits. So now I try to reduce the number of hits by typing
    subproject AND read
    Surprisingly, I now get MORE hits than before.   The same thing happens if I enter
    subproject & read
    Do the MSDN forums not support the standard logical AND combinations of search terms?  If they do support these combinations, what is the syntax?
    Jim
    ...Jim Black

    Cheers, you're welcome.
    There's a thread going in the Suggestions forum with plenty more requests for updates to the search tool. You may want to add your voice there too:
    http://social.technet.microsoft.com/Forums/en-US/9cf8ad4b-5111-4f84-9809-99cd8f1b7152/make-the-forum-search-tool-useful?forum=suggest
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Autocomplete is not working for Sharepoint 2013 search box.

    I added the below code in cewp in sharepoint 2010 and autocomplete worked fine.
    http://sharesilver.wordpress.com/2011/11/26/auto-suggestioncomplete-in-sharepoint-search-text-box-with-jquery-like-in-google-part-1/#comment-605
    when i added this code in sharepoint 2013 by changing the searchbox class name in the code. it is not working. why ??
    Sharepoint 2010 searchbox class name ="ms-sbplain"
    what is Sharepoint 2013 searchbox class name ?? i added "ms-textLarge" as class name but it didn't work.
    Thanks in advance.
    M.M

    Hi M.M,
    The class for SharePoint 2013 Search box input element is as follow, please check if it is what you want.
    class="ms-textLarge ms-srch-sbLarge-fullWidth ms-srch-sb-prompt ms-helperText"
    The project code you are using is updated in codeplex, and the query suggestions (similar to this autocomplete) is an OOB feature in SharePoint 2013 enterprise verison, you can take a look. 
    http://spautosuggestion.codeplex.com/
    http://technet.microsoft.com/en-us/library/jj721441.aspx
    Thanks
    Daniel Yang
    TechNet Community Support

  • I installed a new bigger hard drive and now spotlight does not work with outlook to search for emails

    My old hard drive was full so I went to an apple authorized provider to install a new bigger hard drive. They also moved the data and applications from my old drive to the new one. They did not use time capsule because their way was faster. After the installation I did have to reenter the product code key for Office 2011 for the Mac. However, now I find that I cannot do email spotlight searches in Outlook. When I put in the search - it comes up with no results. This is true no matter what the search. Any ideas of how to point spotlight to look in the email folders so I can do searches again. This is a feature I use daily - so I am concerned that I have lost this feature. Also, I am noticing that alot of the settings did not carry over to the new hard drive. Any help is greatly appreciated!

    I would recommend starting over and migrate using your Time Capsule backup however DO NOT do it wirelessly, connect using an Ethernet Connection. If you upgraded to Lion from Snow Leopard then follow the instructions in this video, the kid is annoying but he knows what he's doing. Clean Install Of Snow Leopard video. Once you have installed and updated Snow Leopard then update using the 10.6.8 Update Combo, then log into the Mac App Store and re-install Lion and all it's updates. My guess this is an afternoons work.

  • Outlook 2013 - wrap text group policy applied, not working with or without digital signature

    Hello,
    I'm adding group policies to apply on our new installations of Windows 8.1 with Office 2013. One of the settings being applied is enforcing plain text emails and wrapping text at a certain number of characters. Policies are being added using the Outlook
    2013 admx.
    When I check the options inside Outlook 2013 the group policy did apply successfully (File, Options, Mail, scroll down to Message Format) The option to "Automatically wrap text at character:" is set to 132 and not adjustable as it should be.
    In the group policy I have it set to wrap at 132 characters, but when I go to a client machine and send a digitally signed email, it wraps at the default 76 characters. This makes for very annoying short blocky emails and multi-line hyperlinks.
    If I do not digitally sign the email then the text doesn't wrap at all! (until it meets the end of the window). So under no circumstances is it wrapping at 132 where it's supposed to.
    Thanks,
    -Nick 

    Hi,
    What is your account type in Outlook? Exchange or others?
    Please also let me know the email format that you are sending, Plain Text, HTML or Rich Text Format.
    You can try sending the same emails in Outlook Safe Mode:
    Press Win + R and type “outlook.exe /safe” in the blank box, then press Enter.
    If there’s no problem in Safe Mode, disable the suspicious add-ins to verify which add-ins caused this issue.
    Thanks,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • CISCO Box not working with Infrared Remove Control Repeater

    There was an Infrared Remote Control Repeater set-up in my newly purchased house.  It works for my LG DVD player, but does not work with my CISCO CHS435HDB box.  Are there any work around for this?  Should I change to a different box?

    If you are using a repeater, make sure the piece that is relaying the IR signal is pointing directly the font of the Cisco box and nothing is plugged into the IR input port in the back of the box.
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

  • Dear sir I bought my iPhone 4 from Apple store in Charlotte N/C about 2years ago without contract. Now I tried to upgrade it to iOS 7.0.4.but after that my phone not work with last sim card. And invalid sim appeared.so I bought it without contract but it

    Dear sir
    I bought my iPhone 4 from Apple store in Charlotte N/C about 2years ago without contract.
    Now I tried to upgrade it to iOS 7.0.4.but after that my phone not work with last sim card.
    And invalid sim appeared.so I bought it without contract but it seems to be lock in my country
    Please tell me whats the matter?
    My phone serial no  86034HTCA4T
    Modem firmware  04.12.09
    Thanks

    Without contract is not the same as unlocked. The update to iOS 7 relocked
    the iPhone to the wireless carrier to which it was originally locked. You must
    contact that wireless carrier to see if they offer unlocking and if you qualify.
    If you used jailbreak or other hack to unlock the iPhone initially, the method
    used may prevent a legitimate unlock from succeeding and may render your
    iPhone unuseable.

  • Safari not working with Yosemite- incompatible with google search too

    Ever since I upgraded my macbook pro, Safari has been slow.  In the past 2 days, it's more than slow - it's impossible.  I am able to get to pages I have bookmarked or get to links in email documents - but every time I try to do a search using the search bar in Safari, it hangs.  Sometimes I get a list of possible websites (after a few minutes) but if I click on any of those, Safari just hangs there and won't go.  I even had to use Chrome in order to generate this question in the discussion groups. Does anyone have any suggestions other than using an alternate browser.   Is it possible that google and Safari on Yosemite are incompatible? I did try using the "Develop" menubar option and chose DuckDuckgo as the search tool and it worked a bit better.
    This is now the 2nd big issue I've had with Yosemite -- it totally would not work with my Adobe Photoshop Elements program -- I spent hours on the Adobe forums and discovered that 100s of others were also having issues.  It turned out to be a problem with Yosemite and the trackpad.  Adobe finally came up with a temporary plugin that allows Elements (and other Adobe programs) to run.
    Suggesions on Safari other than ditching it and using Chrome?

    Try a Safari reset.
    Safari/Preferences/Advanced - enable the Develop menu, then go there and Empty Caches. Quit/reopen Safari and test. Then try Safari/History/Show History and delete all history items.  Quit/reopen Safari and test. You can also try try Safari/Clear History and Web Site Data. The down side is it clears all cookies.Doing this may cause some sites to no longer recognize your computer as one that has visited the web site.

  • The volume keys on my Logitech K760 wireless keyboard do not work with my 2.3 GHz, Intel Core i5 Mac mini which runs Mac OS X 10.7.4. Anyone know how to correct this without having to re-code firmware?

    My first post to the Apple Support Community so it looks like all I wanted to know is covered in the title. The research I have done led me to solutions that I am not comfortable trying for fear of irreparably damaging my keyboard and/or Mac mini. Does anyone have a simpler solution? Please? Hellooooo?
    Just in case the title is too long to show, I have re-pasted here:
    The volume keys on my Logitech K760 wireless keyboard do not work with my 2.3 GHz, Intel Core i5 Mac mini which runs Mac OS X 10.7.4. Anyone know how to correct this without having to re-code firmware?

    BDAqua wrote:
    Hello & welcome to the Forums!
    I think Spark cured this for another person and the same problem...
    http://www.shadowlab.org/Software/spark.php
    http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=ukelele
    http://doublecommand.sourceforge.net/
    Thank you for the response. Unfortunately, I could not figure out how to work the above applications. I thought that i had managed to assign the appropriate function keys in Spark to their volume counterparts, but it had no effect. Below is a screen shot. Do you see anything amiss?

  • Yahoo music search bar not working with Firefox 5

    Yahoo music search bar not working with Firefox 5.

    go to Help Menu -> select "Restart with Add-ons Disabled"
    Firefox will close then it will open up with just basic Firefox. Now do this:
    -> Update ALL your Firefox Plug-ins https://www.mozilla.com/en-US/plugincheck/
    -> go to View Menu -> Zoom -> click "Reset"
    -> go to View Menu -> Page Style -> select "Basic Page Style"
    -> go to View Menu -> Toolbars -> unselect "Yahoo! Music Search Bar"
    -> go Tools Menu -> Clear Recent History -> ''Time range to clear: '''select EVERYTHING''''' -> click Details (small arrow) button -> place Checkmarks on ALL Options -> click "Clear Now"
    -> go to Tools Menu -> Options -> General -> ''When Firefox starts : '''select "Show My Home Page"''''' -> Type the address of the website which you want to be your HomePage e.g. http:www.google.com -> click OK
    -> go to Tools Menu -> Options -> Privacy -> History section -> ''Firefox will: '''select "Use custom settings for history"''''' -> PLACE CHECKMARKS on:
    1) Remember my Browsing History
    2) Remember Download History
    3) Remember Search History
    4) Accept Cookies from sites -> select "Exceptions..." button -> Click "Remove All Sites" at the bottom of "Exception - Cookies" window
    4a) Accept Third-party Cookies -> under "Keep Until" select "They Expire"
    -> REMOVE CHECKMARK from Last Option (CLEAR HISTORY WHEN FIREFOX CLOSES)
    -> click the Favicon (small drop down menu icon) on Firefox SearchBar (its position is on the Right side of the Address Bar) -> click "Manage Search Engines" -> select "Yahoo! Music Search Bar" and other unwanted search engines and click Remove -> click OK
    -> go to Tools Menu -> Add-ons -> Extensions section -> REMOVE "Yahoo! Music Search Bar extension" (add-on) and other Unwanted/Suspicious Extensions (Add-ons) -> Restart Firefox
    You can enable your Known & Trustworthy Add-ons later. Check and tell if its working.

  • Macbook pro is not working with Canon pixma iP1500, but has previously.  The printer works with an old PC without trouble.  "printer is offline" message when this printer is plugged into macbook.  Any clues to get it to work?

    Macbook pro is not working with Canon pixma iP1500 but has previously.  Printer works with an old PC but macbook shows "printer is offline".  Any clues?

    Hello Betty7,
    Please let me take a moment to say "Welcome" to the HP Forums.
    I hope you enjoy your experience!
    I see that you are having an issue with getting the printer reinstalled. 
    I suggest that we start off by running the HP Print and Scan Doctor.  If the Doctor fails, please let me know where it fails as well as any error codes it may generate.
    Thank you for your time.
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • ITunes 12.1.1 does NOT work with Windows - Fix??

    Hi everyone,
    I had issue after issue with the latest iTunes update (12.1.1) not working on my windows 7. It simply would not lunch when clicking on the shortcut to open.
    After a fair bit of searching I found this alternative version which seemed to do the trick and now it works:
    iTunes 12.1.1.4 for Windows (64-bit - for older video cards) - iTunes64Setup.exe(2015-02-18)

    The "for older video cards" installer - which, like most prior "64 bit" versions of iTunes, is actually a 32 bit application with a 64 bit installer - may be a useful fallback if the full 64 bit version does not install or run correctly.  Although 12.1.1.4 is a major improvement over 12.1.0.71, there are clearly still some lurking incompatibilities with some 64 bit Windows systems/components.  It is, however, a little misleading to say that "iTunes 12.1.1 does NOT work with Windows" - in many cases it works fine without switching to the alternative version.  I have the full 64-bit version of 12.1.1.4 running on three systems - two Windows 7 and one Windows 8.1 - no issues with either installation or operation on any of them.

Maybe you are looking for

  • Where can I download the application "Address Book" for OS 10.3.9

    Some how or another my address book got dumped off my desktop and now I cannot get it back. It will open using my email account but that does not show the mailing address on other info. I tried using backup which had been uploaded to my idisk to "res

  • How do you tell what driver your macbook is?

    im trying to hook my macbook pro up to my roomates computer, but i have to know what driver it is, how do i find out?

  • Back to School Promo Questions

    Hi I will be getting a Macbook during the back to school event, but I am wandering if anyone knows what date it might start this year, and if you can buy through that site during that time or have to go to the Apple store?

  • How do you restore a previous backup?

    I can't figure this out for the life of me. I've found them in the Edit, Preferences, Sync menu but there's no option to roll back to a previous saved state. Anyone know how to do that?!?

  • Installing Oracle Database 10g R2 on Red hat linux 4

    by following the guide of installation problem in the Following step Configuring the Oracle Users Enviroment Open the Oracle user shell startup file in any text editor problem is how to open and path of this file then Enter or edit the following line