Can an autosuggest cfinput be controlled/filtered by a select menu?

I'm working on a search service where there are going to be at least 3 types of searches, each of which can be made easier by using an autosuggest.  Is it possible to change the binding/returned values for the autosuggest based on what the user has selected in a select menu?

Yes, its fairly straightforward to pass more values to the CFC doing the autosuggest:
<cfform>
Art:
<select name="addThis" id="addThis">
<option>Yes</option>
<option>Test</option>
</select>
<cfinput type="text"
        name="artname"
        autosuggest="cfc:art.lookupArt({cfautosuggestvalue}, {addThis})">
</cfform>
This will pass the value of addThis to the lookupArt function in art.cfc

Similar Messages

  • Onblur doesn't fire on autosuggest cfinput

    Hello,
    I have a problem with the autosuggest cfinput. I am using
    Coldfusion 8 and Fusebox 5. Here is the sample of my code.
    <cfinput name="item_number" maxlength="20" type="text"
    maxResultsDisplayed="20"
    autosuggest="cfc:Inventory.model.lookupRoom.lookup({cfautosuggestvalue})"
    value=#getInventory.Item_Number# showAutosuggestLoadingIcon="no"
    onBlur="javascript:loadData();" >
    function loadData(){
    document.frmInventoryData.isLoadData.value = '1';
    target='_self';
    document.frmInventoryData.submit();
    The event does not fire after the autosuggest has been
    selected. When the form is submitted, “item_number” has
    the value that the user entered, but not the value that the user
    selected from the autosuggest. I have tried all the available
    events of cfinput like onChange, onMouseOut.., but it still
    doesn’t work. Please help. Thanks for your time.

    If you would like to.
    SelectOneChoice component:<af:selectOneChoice label="Падеж" id="soc2"
                                        value="#{backingBeanScope.Page1ManagedBean.padeg}"
                                        autoSubmit="true">
                      <af:selectItem label="Именительный" id="si3" value="0"/>
                      <af:selectItem label="Родительный" value="2" id="si4"/>
                      <af:selectItem label="Винительный" value="3" id="si5"/>
                      <af:selectItem label="Дательный" value="4" id="si6"/>
                      <af:selectItem label="Творительный" value="5" id="si7"/>
                      <af:selectItem label="Предложный" value="6" id="si8"/>
                    </af:selectOneChoice>Related outputText:<af:panelLabelAndMessage label="Предпросмотр:" id="plam13"
                                             rendered="true">
                      <af:outputText value="[ANY_MAN(#{bindings.LookupEmpIdE.inputValue}#{backingBeanScope.Page1ManagedBean.padeg != 0 ? ',padeg=' : ''}#{backingBeanScope.Page1ManagedBean.padeg != 0 ? backingBeanScope.Page1ManagedBean.padeg : ''})]" id="ot10"
                                     partialTriggers="soc2 pc1:resId2"/>
                    </af:panelLabelAndMessage>Backing bean variable:private int padeg = 0;
    public int getPadeg() {
          return padeg;
      public void setPadeg(int padeg) {
          this.padeg = padeg;
      }

  • Coldfusion 8: Onblur doesn't fire on autosuggest cfinput

    Hello,
    I have a problem using the autosuggest cfinput. Here is the
    sample of my code.
    <cfinput name="item_number" maxlength="20" type="text"
    maxResultsDisplayed="20"
    autosuggest="cfc:Inventory.model.lookupRoom.lookup({cfautosuggestvalue})"
    value=#getInventory.Item_Number# showAutosuggestLoadingIcon="no"
    onBlur="javascript:loadData();" >
    function loadData(){
    document.frmInventoryData.isLoadData.value = '1';
    target='_self';
    document.frmInventoryData.submit();
    The event Onblur does not fire after the autosuggest has been
    selected. When the form is submitted, “item_number” has
    the value that the user entered, but not the value that the user
    selected from the autosuggest. I have tried all the available
    events of cfinput like onChange, onMouseOut.., but it still
    doesn’t work. Please help. Thanks for your time.
    Vi

    I am not sure whether SELinux is officially supported with ColdFusion or not. In permissive mode you shouldn't have these problems.
    If it is enabled the following is required:
    setsebool -P httpd_can_network_connect 1
    This is necessary for mod_jk to talk to ColdFusion.  It fixed the error you describe in my case. You might make sure that ColdFusion is running of course. Be patient - setsebool takes about a minute to run,
    Also:
    /opt/coldfusion10/config/wsconfig/1/mod_jk.so must be httpd_modules_t
    mod_jk.log must be httpd_log_t.   /var/log/httpd is a good place for it.
    Use chcon -t to make these changes
    Plus other contexts set as standard for Apache (httpd_sys_content_t, etc). I hope this helps.

  • Can Captivate 7's playback controls control Flash swf files?

    Hi folks,
    I have created a swf file using Adobe Flash and I have imported it as an animation slide in Captivate 7. I have turned on the playback controls to just have the play button and the progress bar. When I export the presentation, the playback controls do not work. The scrubber moves as the presentation is playing, but I can't pause the presentation. When I stop the scrubber or even move it left or right, it does not affect the presentation and it just keeps playing. Am I doing something wrong? I don't want to have to create a custom nav bar in Flash as it would just be easier to use Captivate's playback bar.

    I don't think it can be expained quickly as it can be very complicated. But...
    Select New Project/Widget in Flash and choose static widget. You need to be very adept in AS3 to actually get them to work.

  • Can I use ARD to control my mac with Back to my Mac service?

    Can I use ARD to control my mac with Back to my Mac service?
    The with Back to my Mac service on you see your mac in the Shared column, hit Share Screen & your good - on ARD I don't see my remote Mac listed anywhere in that program.
    Thanks

    ARD, to the best of my knowledge, does not work via Back To My Mac. Certainly it's not an direct or obvious feature, though I can't say that there might not be a workaround I've not heard of.

  • I can not install the Icloud control panel on a new windows 7 pc wtih outlook 2010. I get "you can't sign in because of a server error" .

    I can not install the icloud control panel on a neww windows 7 pc with outlook 2010. When i try I get "you can't inssign in because of a server error"
    I have :
    turned of the windows fire wall and antivirus protection
    stop and started the bonjour service
    done the "netsh winsock reset"
    updated all the drivers
    I can login to icloud.com with no problem and view my calendar.
    Apple chat also provide me with a test id and password to try to install the icloud panel, I got the same error message???
    Anyone have a fix?
    Thanks,

    To solve this problem you can:
    Windows 7
    1) Click on Start
    2) Type cmd and press enter
    you will see a new window
    3) type "netsh winsock reset"
    4) restart the machine
    should work.
    If still does not work you must disable the firewall and antivirus
    Para solucionar este problema debes hacer lo siguiente:
    en Windows 7
    1) click en Inicio
    2) escribe CMD y pulsa enter
    te va a aparecer una nueva ventana
    3) escribe "netsh winsock reset"
    4) reinicia la maquina
    deberia de funcionar.
    Si aun no funciona debes de deshabilitar el firewall y el antivirus

  • I can disable one of my MacBook's two CPUs using the CPUPalette application.  How can I do it under control of a script?

    I can disable one of my MacBook's two processors using the CPUPalette application.  How can I do it under control of a script?
    I want to do this because the MacBook is overheating.  I will soon get it repaired, but in the meantime, disabling CPU 2 is effective at preventing overheating.  Sadly CPUPalette is not scriptable, and it won't remember its setting after the computer is restarted.
    Would it be worth learning about the relevant Darwin API (supposing there is one) and writing a small command-line program for the job?  I am an experienced developer of software using Standard C.
    Comments appreciated.
    Dave

    i wonder if there is a key that is stuck cause whenever i try to turn it on again after the 60 minute lockout, it says that the password was incorrect and i am locked out for another 60 minutes

  • How can I create variant of control query?

    Dear Expert,
    I am using BEx Broadcaster to bradcast query as a report.
    In tab Filter Navigation, I enter the control query, but the variant always gives me "(No Selection Possible)".
    How can I create variant of control query?
    I try to create variant via variable entry page when I excute my query.
    The variable show in table "RSRPARAMETRIZA" but not show in BEx Braodcaster.
    Thank you,
    Zilla

    Hello,
    Please run this control query on the portal and then save variant you require. If you want this variant to be available
    to all users make sure that the user specific flag is unchecked while saving the variant.
    Regards,
    Michael

  • PC went south. Geeks brought it back. PS elements and premier 11 can't start. Error msg sez configuration incorrect needs to be reinstalled. When I load the disk I get a blank screen. Try to uninstall and can't find apps i control panel. How can I get the

    PC went south. Geeks brought it back. PS elements and premier 11 can't start. Error msg sez configuration incorrect needs to be reinstalled. When I load the disk I get a blank screen. Try to uninstall and can't find apps i control panel. How can I get the apps back?

    adobeamatuer
    Thanks for the reply.
    Although the security of Windows XP SP3 32 bit is compromised by Microsoft no longer supporting XP, if Windows XP was restored as claimed, you should still be able to install/uninstall Premiere Elements versions of it that you did before the Microsoft support removal.
    I think a revisit to the Geeks would be in order. It may be that they could not restore Windows XP because of the Microsoft non support. I would take along the Premiere Elements installation disks so that you do not leave there without actually seeing Premiere Elements (or a non Adobe program) running on your restored Windows XP. What was the other software that you tried to use that did not work?
    Please update us on your progress when you get a chance.
    Best wishes
    Thanks.
    ATR
    Add On...spelling correct 12 03 2014.

  • Can I shut off the control box that pops up from the bottom

    Can I shut off the control box that pops up from the bottom?

    you can disabel it from being activated form the lock screen and within apps. got to Settings> Control Center to find those controls. There is no way to disable Control Center from the activation while on the home screen

  • Can we assign 1 credit control for multiple company codes

    hi,
    sap gurus,
    good afternoon to all
    can we assign 1 credit control area for multiple company codes.
    if yes can any body explain the pro's and cons of the assignment.
    if no can any body explain the why?
    its urgent plz.......
    regards,
    balaji.t
    09990019711

    Yes Balaji,
    We can assign.
    Here the risk categiry and terms of one credit control area will be applicable to all company code.
    Credit Control Area
    Definition
    An organizational unit that represents the area where customer credit is awarded and monitored.
    This organizational unit can either be a single or several company codes, if credit control is
    performed across several company codes. One credit control area contains credit control
    information for each customer.
    Use
    Credit and risk management takes place in the credit control area. According to your corporate
    requirements, you can implement credit management that is centralized, decentralized, or
    somewhere in between.
    For example, if your credit management is centralized, you can define one credit control
    area for all of your company codes.
    If, on the other hand, your credit policy requires decentralized credit management, you
    can define credit control areas for each company code or each group of company codes.
    Credit limits and credit exposure are managed at both credit control area and customer level.
    You set up credit control areas and other data related to credit management in Customizing for
    Financial Accounting. For more information, see the Implementation Guide under Enterprise
    Structure   Definition or   Assignment   Financial Accounting and then Maintain credit control
    area. You assign customers to specific credit control areas and specify the appropriate credit
    limits in the customer master record.
    Thanks,
    Raja

  • Can We Two Different Credit Control Area to 1 company code using cross comp

    Can We Two Different Credit Control Area to 1 company code using cross company code assignment.Tried but giving error at the time of bill release.Experts Can you help?

    Hi,
    It is not possible to have more than one credit  control are for a single company code.

  • Can we assign 2 credit control area for one company codes

    hi,
    sap gurus,
    can we assign 2 credit control areas to one company codes ?
    yes we can.
    but
    what is the impact of that
    can any one analyse.
    regards,
    balaji.t
    09990019711

    Hi,
    we can have multiple credit control areas based on req-
    eg: client wants to restrict customer based on divisoin wise.
    then we will maintain credit control area based on sales area
    there 3 division in a comp: AA -BB - CC
    thens sales areas will be:
    1000-10 -AA
    1000-10-BB
    1000-10-CC ( assuming therez one sales org-1000 & dc 10)
    now create 3 cr control areas- OB45
    Assign sales area to cr Control area - OVFL
    Assign permitted credit control areas to comp code - IMG- FA- AR&AP- Credit Management- Credit control account - Assign permitted credit control areas to comp code.
    Now you can assign this Cr CA- by sales area wise in CMR & maintain the credit limits for each Cr CA.
    So when ever your needs wants to do it by division or sales area wise you can do this.
    Thanks,
    Raja

  • Can I download the instrument Control and Data Aquisition Device Driver CD for 7.1?

    Greetings,
    Can I download the instrument Control and Data Aquisition Device Driver CD for 7.1?
    I'm trying to find out if I can download
    the instrument Control and Data Aquisition Device Driver CD for 7.1. Instead of downloading all the upgrades?
    Is there a link to the image file for this CD?
    TIA

    Sam,
    Unfortunately, the Device Driver CD is not available for download. However, your Technical Sales Representative should be able to send it to you (Contact Information).
    Spencer S.

  • In a dashboard-can an existing rpt be pre filtered by another rprt ?

    Hi all,
    New to BI.
    So here's what I want to do.
    In a dashboard, can an existing report be pre filtered by another report that its linked form?
    Here's an example of something similar to what I'm trying to achieve:
    - I have an existing dashboard report that gives a user a list of values, lets say year, and prompts user to choose one.
    - The report then asks for which department for that year.
    - Depending on what year and department they choose it produces a chart for all stats collected for each month of that year for that department.
    All simple so far and it works.
    The "issue" now is there are regions that departments fall into.
    So no we want to pre filter the reports with a region selection so that the user only sees the departments for the region selected.
    Now we have quite a few reports and the above is 1 of many and I suppose we could go back retrofit region into all reports.
    But my question is, could we create a filter that we run and present on the dashboard before any of the existing reports?
    i.e. using above example again:
    - New dashboard item that asks for region. Region is set.
    - The existing report gives a user a list of values, lets say year, and prompts user to choose one.
    - The report then asks for which department for that year - but this time only shows departments belonging to the region as selected above.
    - Depending on what year and department they choose it produces a chart for all stats collected for each month of that year for that department.
    Anyone got any tips if this can be done, and guidance on where to start and how to go about it?

    Hi, yes I do have the constrain checkbox checked and its good in that allows users to limit the results from the drop list.
    But I was looking more for a way to allow a users to choose a region from a drop down list in a new front end report/chart and then all following existing dashboard reports run pre filtered by that region. (hope this makes sense - so hard to put these queries to words sometimes...)

Maybe you are looking for

  • HD constantly needs repair

    If I were to run VERIFY DISK every day on my MacBook I would get the same results: files differ by one file and folders differ by one folder...requiring a REPAIR DISK. This is getting old...how can I determine which file is the culprit here? I obviou

  • Security code for nokia arte 8800

    whats the standard nokia arte 8800 security code im on orange but the phone was orginally on o2 ive tried 12345, 1234, 0000, 00000, ?

  • Using Xcode 4 with Open Directory Users

    We have a lab of iMacs (10.7.2) with Xcode 4.2 that are bound to an OD server (10.6.8). At the moment only a local admin user can build and run an iOS project in Xcode. I already changed the Primary Group for the OD users to Group ID: 204 (_developer

  • Faxing from pc hp7520 photosmart software

    I have an HP Photosmart 7520 all in one.  It will not fax from the pc software.  It will fax fine if i do it manually on the touch screen of the printer.  What am I doing wrong?  It seems simple enough when I am using the software to fill in the blan

  • Import design object into integration repository

    HI. We are going to import "XI3_0_SAP_BASIS_6.40_SP09_01.tpz" into integration reposiotry. So, we move this file into "G:\usr\sap\DEV\SYS\global\xi\repository_server\import" and start integration reposiotry. Then, I clicked tool -> import design obje