Drop Down List Box from an Array?

I have an array - a lovely little 1-dimensional array of customer last names - that I want to display in a drop down list box so my user can begin to type a value in that list box and CF will bring up the matching entry.
I have tried cfloop and cfselect, but haven't had any success. Once the user clicks on a name, I want to be able to take that value and do some other processing.
  Any suggestions?

No Ajax - CF is a ***** enough as it is.
OK - I see where you started to go with your link, but lost you somewhere in Step 2.
I like the idea of a master query with sub queries off of it (Queries of Queries).  Here's what I got so far:
<cfquery 
name = "MasterMemberQuery" datasource = "cfissues">
        SELECT *  FROM Members  
        ORDER BY LastName</cfquery>
  <cfquery  name = "LastNameQry" dbtype = "query">
     SELECT MemberID, LastName  
     FROM MasterMemberQuery  
    ORDER BY LastName</cfquery>
This worked perfectly - nice cfselect to display the last names - just like before.  However, I still cannot capture the user's choice from the cfselect statement:
<cfform> 
      <cfselect name = "ChosenLastName"  
                    query = "LastNameQry"  
                    value = "MemberID"  
                    display = "LastName"  
                    size = "1">  
     </cfselect>
     <cfoutput>
               The chosen MemberID = '#LastNameQry.MemberID#'
     </cfoutput>
</cfform>
The name "ChosenLastName" is always labelled as invalid, and the cfoutput always gives the MemberID of the first entry in the LastNameQry, never the user's choice. 
I need to take the user's choice of last name, capturing the MemberID (the value attribue of the cfselect) and read the MasterMemberQuery to get just the single member's data.
And is it me or does this forum's site run at about 300 baud?????

Similar Messages

  • Why won't my drop down list populate from the array?

    I am using the following array. 
    var actDesc = new Array(" ",
    "Desc1 ",
    "Desc2 ",
    "Desc3 ");
    // Array of HUD Activity Numbers.
    var actNum = new Array(null,
    "1 ",
    "2 ",
    "3 ");
    // This populates the Description Drop-down List and works just fine.
    function populateActDesc(dropdownField)
          var i;
          for (i=0; i < actDesc.length; i++)
             dropdownField.addItem(actDesc[i]);
    //This is supposed to populate the Description Number Drop-down List but doesn't work.
    function populateActNum(dropdownField)
          var i;
          for (i=0; i < actNum.length; i++)
             dropdownField.addItem(actNum[i]);
    // Populates another field based on the Description Field value chosen and works as intended.
    function getDesc(hudActivityDescription, hudActivityNumberField)
       var i;
       for (i = 0; i < actDesc.length; i++)                
          if (actDesc[i] == hudActivityDescription)        
            hudActivityNumberField.rawValue = actNum[i];        
       break;               
    I placed the following into the drop-down list object holding the actDesc array (Event: initialize; Language: javascript):
    actNoScript.populateActDesc(this);
    This works just fine.
    I placed the following into the drop-down list object holding the actNum array (Event: initialize; Language: javascript):
    actNoScript.populateActNum(this);
    This doesn't work.  Any ideas?
    Any help would be greatly appreciated.  I am using LCD 8.2 ES on Vista 32bit.
    Thanks,
    Jerald

    Hi Jerald,
    You can't assign null to the display value of a drop down control.  If you change the HUD activity number array to remove the null it should work. 
    That is;
    // Array of HUD Activity Numbers.
    var actNum = new Array("  ","1 ","2 ","3 ");
    Bruce

  • How to set a default value for a drop down list box and then apply cascading based on the default value in Infopath 2010.

    Hello Everyone
    I have two drop downs. Both are coming from look up fields from two lists. i want to set a default value(first list item) for the first drop down list box and then apply cascading based on the default value for the next drop down list box. I found one article(http://www.bizsupportonline.net/infopath2010/display-first-item-drop-down-list-box-infopath-2010.htm)
    where in i can set a default value but i can't apply cascading based on that default value. Any suggestions would be highly appreciated.
    Thanks
    Ramanjulu Naidu N

    Hey Ramanjulu,
    Take a look at the below article which I believe will answer your question.
    http://basquang.wordpress.com/2010/03/29/cascading-drop-down-list-in-sharepoint-2010-using-infopath-2010/
    Daniel Christian (MCTS)

  • DSN's Missing in the ODBC drop down list box

    Being new to JDeveloper, I have been running through the
    tutorials. I have installed Oracle lite on NT4 SP3 and have
    tested out the sample data base 'Polite' using the installed
    odbc driver through MS query ...all works fine, however in
    tutorial 3 while trying to add the Data Form using Oracle Lite
    driver, no dsn's appear on the next screen of the wizard when I
    click on the 'ODBC drop down list box'. How do I get Jdeveloper
    to bring up the DSN's. I have also tried the 'Sun JDBC-ODBC
    driver' route, yet still there is not a single DSN in the drop
    down list box.
    Thanks
    null

    Mohamed Nosseir (guest) wrote:
    : Gavin Higgo (guest) wrote:
    : : Mohamed Nosseir (guest) wrote:
    : : : Gavin Higgo (guest) wrote:
    : : : : Being new to JDeveloper, I have been running through the
    : : : : tutorials. I have installed Oracle lite on NT4 SP3 and
    have
    : : : : tested out the sample data base 'Polite' using the
    : installed
    : : : : odbc driver through MS query ...all works fine, however
    in
    : : : : tutorial 3 while trying to add the Data Form using
    Oracle
    : : Lite
    : : : : driver, no dsn's appear on the next screen of the wizard
    : : when I
    : : : : click on the 'ODBC drop down list box'. How do I get
    : : Jdeveloper
    : : : : to bring up the DSN's. I have also tried the 'Sun JDBC-
    ODBC
    : : : : driver' route, yet still there is not a single DSN in
    the
    : : drop
    : : : : down list box.
    : : : : Thanks
    : : : Would you please give us more information about your
    : : : configuration? JDeveloper version, Oracle Lite version,
    : : Windows
    : : : NT locale setting? Is it US version of Windows NT or local
    : : : version?
    : : : Thanks.
    : : I am using Jdeveloper beta 2 (downloaded from the Oracle web
    : : site) against Oracle lite 3.0.6.2.4 on Windows NT 4 sp 3.
    : : Is this all the info you require?
    : I also want to know if your Windows NT is a US English version
    or
    : a localized version?
    : Thanks,
    It is a Windows NT US English version
    Thanks
    null

  • Drop-Down List Box on Form Is Cleared at Each Step in a Workflow Process

    Hello users,
    I am posting this in the Workflow Designer, Workflow Server and Form Designer forums so that it gets a little more exposure, so I apologize if you receive this more than once.
    I have a Form Designer 5.0 form attached to a Workflow Server 6.1 process. On the form, I have a drop-down list box being populated from a text box by the OnDataLoad event on the form ONLY when the process is first initiated. The text box is populated by the OnAssign event of the first step in the process map. When the task initiator submits the form to the second step in the process and the user opens the form, the drop-down list box is no longer populated - it has been cleared. There is no code anywhere in either the form or in the process map that clears this field.
    Can anyone tell me why this is happening? Is it a bug?
    Thanks.

    Unless you hard coded the list box on design time, it will lose all data when the form is routed.
    Only solution to this is:
    create a text box and store your list box choice list to the text box before submitting your form and import the list box choice list back from the text box on form ready.
    Hope this helps.

  • Is it possible to allow use to type entry into a drop down list box ?

    Hi ,
    Is it possible to provide  type in the value option ( provide option to user like he can select a value from the extracted data in a drop down list object and also he can enter a value manually ) to a drop down list box on an interactive form ?
    Nanda

    Hello Nanda,
    In the Adobe LiveCycle Designer you can specify several list items for objects of type 'Drop-down List' and it is also possible to allow custom entries (checkbox: "Allow Custom Text Entry").
    Regards,
    Philipp

  • Reg: Drop-Down list Box not  displaying values

    Hi Experts,
                     i am publishing a module pool program in the internet using SICF Transaction . In the internet my drop down list box is not displaying the default value  but in my sap it works fine .
    What may be the problem?
    Regards,
    Vikram

    Hello Thorsten Domsalla ,
                      My Problem is in my sap module pool program there is a drop down list box which disaplays  default values its working fine in sap gui but when i access through internet (SICF) Transaction the Drop down list box not listing out default values .
    i am using Integrated ITS Version 7.0 and Support package 08.
    Regards,
    Vikram

  • How to get the selected value/key of a drop down list box in webdynpro Java

    Dear SDN Members,
    I have added some static data into a drop down list box by key UI element using the procedure specified in value help tutorial.
    Now i want to display the value selected in a dropdown list box on view whenever i select an item in a dropdown list box.
    Can any one put here the code part relating to this.
    Your help will be awarded.
    Thanks in advance,
    Regards,
    Sireesha.B

    Hi Sireesha,
        You want to display value based on the key selected in dropdown list. If you want to do like that
    1) Create a context attribute for ex: key_value
    2)In the properties of the attribute select the calculated as true.
    3)It will create getter and setter methods for your attribute.
    4)Go to implementation add the following code in getter method of your attribute
    String attributeName = IPrivateCreate.IContextElement.KEY;
    //KEY is your dropdown key attribute not the value attribute.
    IWDAttributeInfo attributeInfo = element.node().getNodeInfo().getAttribute(attributeName);
    ISimpleTypeModifiable simpleType = attributeInfo.getModifiableSimpleType();
    IModifiableSimpleValueSet valueset = simpleType.getSVServices().getModifiableSimpleValueSet();
    Object key = element.getAttributeAsText(attributeName);
    return valueset.getText(key);
    Regards
    Suresh

  • How to use value in a drop-down list box as "With these Values" parameter?

    Hello, new user.
    I have a drop-down list box on Page 1, upon which the user can choose a study number. The List Box is named "P1_STUDY_NBR".
    Then I have a list, one entry of which goes to my master-detail form, which is Page 6. I would like it to go to the study number that the user choose on Page 1.
    In my target on the create/edit list entry, I put in "Page in this Application", "Page 6", then in Set these items, I put in
    P6_STUDY_NBR
    My question is what to use in With these values, where I want the contents of the P1_STUDY_NBR. I tried:
    &P1_STUDY_NBR
    and that does not work. If I put in one of the study numbers, like 336-00, then it does work, but I want it to pass the study number the user chooses in the list box. How do I refer to the contents of P1_STUDY_NBR?
    -Mary

    Yes, that does work, thanks. I'm now getting the default value I was putting in yesterday rather than an error message, so there must be something loading it, but I'll hunt around for what process might be doing that, or try re-creating the master-detail form again.

  • How to increase the width of the drop down list box in SSRS multi value parameter

    Hi,
    I am using SSRS 2012. I have a parameter, which accepts multi value.
    The width of the drop down list box is very small, and the user need to scroll to the right to view the complete view of the content in the list box. But, if I don't use multi value then the length is good.  Kindly suggest how to I increase the width
    of the list box when it set to multi value parameter.
    Thanks in advance,
    Mahalengam Arumugam

    Hi Mahalengam,
    After testing the issue in my local environment, I can reproduce it. When the values for a single parameter are too long, the drop-down list of the parameter will automatically enlarge to an appropriate size. While the values for a multiple parameter are
    too long, we need to scroll to the right to view the complete view of the content in the list box in SSRS 2008. But in SSRS 2008R2 and SSRS 2012, we can directly drag the black control at the bottom of the list box to control the size.
    The following screenshot is for your reference:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support
    Hi Katherine,
    Thanks for your reply. I understood we need to drag the list box to a maximum size to view the contents.
    But, this seems an additional task, i know this is a limitation in the current version of SSRS and hope it will be resolved in the next versions.
    Thanks for your efforts,
    Mahalengam Arumugam

  • ABAP WebDynPro tutorials for Roadmaps and drop-down list box

    Hi Experts,
        I need some tutorials on Roadmaps and drop-down list box in ABAP WebDynPro which will show me step by step process how to create application using this. 'help.sdn' pages do show the procedures for implementing those ui elements.
    And also the previous threads refer to some expired documents.
    Thanks in advance.....
    Plz help....
    Edited by: Akashdeep Basu on Aug 9, 2008 9:30 AM

    Hi
    [SAP BLOG on ABAP-WEBDYNPRO|https://www.sdn.sap.com/irj/sdn/nw-development?rid=/webcontent/uuid/512040e1-0901-0010-769c-c238c6ca35d9]
    [Step-By-Step Approach|http://help.sap.com/saphelp_nw04s/helpdata/en/79/002c2a0d43e645a39a89dd662b5f68/content.htm]
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a282c952-0801-0010-1eb5-87953e036712
    Regards
    Pavan

  • Drop-down list box and Mouse wheel.

    When a xft form doesn't fit in the web browser (using webaccess) because it's bigger, the drop-down list box control has a distinct behavior than other controls like select control in html or listbox in VB.
    When I click in the field to drop the list and scroll down the mouse wheel, the position of the control remains static while the form in the background scrolls down, so the drop-down list box is at the top of the other controls of the form. In most of the forms I've used, the "normal" behavior, if I can say it this way, is to scroll down the list. It doesn't disturb me at all, but some users have complained this behavior. Is there a patch for this control?
    I've using form designer 5.0 with AWS version 6.2.121.0
    Any help is appreciated,

    No patch that I am aware of. It could be related to a memory issue within the browser container. I have seen this behavour many times over when dealing with larger forms.

  • Suppress entries in the drop down list box for fields Priority and Category

    Hello,
    For the transaction type 'Service Process' , I want to suppress certain values in the drop down list box for the fields Priority and Category based on certain conditions.I couldn't find a suitable badi for this scenario.
    Is there a solution so that I can control the values displayed in the drop down list box ?
    Thanks,
    Sriram
    Edited by: Sriram Sundar Rajan on Mar 17, 2008 12:15 PM

    Hello,
    For the transaction type 'Service Process' , I want to suppress certain values in the drop down list box for the fields Priority and Category based on certain conditions.I couldn't find a suitable badi for this scenario.
    Is there a solution so that I can control the values displayed in the drop down list box ?
    Thanks,
    Sriram
    Edited by: Sriram Sundar Rajan on Mar 17, 2008 12:15 PM

  • Adding Drop Down List values from table fields

    Hi all,
    Recently we have switched from Microsoft's Infopath to Adobe's LiveCycle Designer.  In InfoPath i was able to allow a user to enter data in a table and then use that data as values for a drop downlist, which could in turn be used in another table.  Infopath made it relatively easy to do this, but I assume it requires scripting in LiveCycle.  Here is an example that make make it easier to to explain:
    Let's say we have a form with a table that has a colomn where the user can enter a value in a table let's say "Computer Name":
    Computer Name | IP | Vendor | Serial Number|
    PC 1
    ---------------------| 192.168.2.34| HP | US4839494
    PC 2
    PC 3
    PC 4
    Further down the form there is a nother table with a drop down list.  I want the values of the drop down list to be what ever values were entered for "Computer Name" in the previous table.  So in this case the table would look like this:
    Computer Name | Acquisition Date| End of Life Date
    <Drop DownList>|  07/21/2010 | 07/21/2014
    The drop downlist values would be "PC1, PC2, PC3, PC4"  or whatever values were entered in the previous table.  Essentially, I am trying to avoid from having users type in "Computer Name" data every time the "Computer Name" needs to be entered.  It would be so much easier to enter all "Computer Name" values and then use those values as part of a drop down list to avoid excessive typing.
    I hope this makes sense, it is fairly easy to do in InfoPath and I am sure there is a way to do this in LiveCycle.
    Let me know if my explanation is not clear enough.
    Thanks!

    Thanks for the feedback, but it doesn't seem to quite accomplish what I am trying to do. I've tried using global binding as you specified, but the outcome is not exactly what I want.  Perhaps this drawing can help depict what I am trying to do:
    http://imageshack.us/photo/my-images/153/dropdownlist.png/
    On the picture I manually defined the values for the drop down list.  Again, I want these values to be taken from "Computer Name" in the table above.
    Thanks!

  • Its urgent please help me( Drop Down list box)

    Hi i am writing th eBDC for VA32 t-code in that screen it is having the dropdown box for the line items i want to select the drop down list in that screen through BDC how we can do this?
    Thanks in advance

    yes but when we are transfering that value it is not accepting
    0     Assigned by the System (Internal)
    1              Delivery date too late
    2     Poor quality
    3              Too expensive
    4     Competitor better
    5     Guarantee
    10            Unreasonable request
    11     Cust.to receive replacement
    50     Transaction is being checked
    the thing is in the drop downbox these text values are coming
    but how can i?

Maybe you are looking for

  • EBusiness Suite User "Auto-provisioning" and  "Self-Request" Problem

    I have two types of OIM User, Staff and Contingent Staff (Role = Full-Time) Contingent (Role = Contractor / Role = Consultant) Resource Object: eBusiness Suite User Here's my RO configuration: Auto Pre-populate: true Allow Multiple: true Self Request

  • IPod will not load videos or purchases.

    I received my black 30gb video iPod for Christmas. When I opened the box everything seemed to work fine. The click wheel seemed a little laggy but I just dismissed it as a design flaw. Having been without a working iPod for almost 6 months I was eage

  • Function to return an aggregate

    I have the following function create or replace function get_sum_costs3 (v_ID_COUNTER in number) return number Return sum escalated costs based on filters filename: create_display_functions.sql -- -- History -- 06/04/06 SDR Created is v_escalated_cos

  • New firmware and downstream rate

    I have upgraded my DSL line to 512kb and needed to confirm a few things. What should my downstream and upstream rate be approximately ? Also why does my ISP i need to get in a technician to reset the router from internally because my downstream rate

  • Simple struts example but it doesn't work

    Hello everybody, I'm new in struts technology and I wanted try a simple struts example, but it didn't work. Here are listings of code: *** struts-config .xml (is located in WEB-INF/) : <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts-con