A select list combined with auto-complete?

Hello All,
I am trying to convert an access application into APEX. There is a field on the form where I can look up various car models (Campry, Corola, RAV4, Sienna, etc) via drop down menu (select list in APEX) or by directly typing “Ca” in the field and it gets auto-completed to “Camry”.
Is it possible to implement this feature in APEX? If yes, how?
Thank you,
Daniel

Hi Daniel,
Yes this is possible.
Have a look here: Ajax Autocomplete (Denes Kubicek)
There are some examples circulating, in the above thread you find Denes' example.
Regards,
Dimitri
-- http://dgielis.blogspot.com/
-- http://www.apex-evangelists.com/
-- http://www.apexblogs.info/

Similar Messages

  • Text-input component with auto-complete functionality for mobile

    Hey guys,
    I wonder if there is a text-input component with auto-complete functionality optimized for mobile development with AIR like the one that Android provides natively as you can see here http://developer.android.com/reference/android/widget/AutoCompleteTextView.html and here http://developer.android.com/resources/tutorials/views/hello-autocomplete.html.
    At least I didn't find it in the latest SDK and I think such a component is pretty standard nowadays. Or did I simply overlook it?
    Thank you guys for any advice.
    Regards,
    Thilo

    Hi relaxtraja,
    thanks for your reply!
    I knew that there are a lot of auto-complete scripts on the web. What I was hoping was, that Adobe provides an officially supported auto-complete component optimized for mobile as part of the SDK (like in the Android SDK as I pointed out), but that doesn't seem to be the case. It's sad, because it's an essential part of modern UIs in mobile applications.
    I've already created an auto-complete component by myself based on Spark components and I will end up using it. But I will have to optimize it for mobile applications beforehands. I just think something this essential should be provided by the SDK.
    However, thanks for posting!
    Regards,
    Thilo

  • Appropriate component with auto complete and list of values

    Hello,
    I am using Jdev 11.1.1.6.0 with ADF BC and ADF Faces as technology stack.
    I have a use-case and right now struggling to find the appropriate component/implementation for same. The requirement is:
    1. User should be able to type and tab out to auto complete with perfect match.
    2. Not all users are expert so they should be able search and select the items from list
    3. Minimum key press should be there. E.g. auto complete should require only one tab press to complete and go to next field
    inputComboboxListOfValues fits most of above except #3. One tab simply selects the item from list and second tab is needed to move out to next attribute. Is there a way to force one tab to auto-complete and move out to next attribute?
    Tried simple inputBox with autoSuggest behavior but it lacks in opening of search and select feature that LOV component provides. Another drawback is that you need to wait for auto suggest list to appear and select before moving out to next attribute.
    This is needed on a very highly frequent used screen, so no speed and key press compromise is expected. Most users are expert and they know the code, so just type and tab out is expected but at the same time if typo happens and code does not exist in valid list then pop-up should appear to search and select.
    Is there a way to achieve this in ADF application (this is very well implemented in Oracle Forms application)?
    Any help is highly appreciated.
    Thanks,
    Jai

    Hi Frank,
    I understand the single matching value and expecting move out in single tab for perfect match only. inputComboboxListOfValues selects the entry in one tab [even for single matching value] and user has to press another tab to go to next attribute.
    Are you suggesting that it actually moves out to next field in single tab for "single matching value"?
    Thanks,
    Jai

  • Dynamic select list crashes with php

    HI All,
    I can't seem to get a dynamic select list to work in
    dreamweaver. It completly crashes everytime I try adding it to my
    page. I found someone else in the forum who had the same problem
    but no one ever responded. I've tried several things including
    putting just the record set and dynamic select on it's own page
    with no other code on it. It still crashes DW. I also tried coding
    it myself by making a listmenu and modifying it so that the option
    value equals a PHP echo of a value. It crashed there too. Does
    anyone have a piece of code with a working dynamic select list that
    uses a record set that I could look at? That way I can see where
    I'm going wrong. All I'm trying to do is get a simple drop down
    select list of employee names so someone can choose their name to
    get commission. It's a one table, 2 fields (first & last name)
    record set.
    Using DW CS3, php & MySQL.,windows XP Pro
    Any help would be really appreciated!

    AthroughZ wrote:
    > I can't seem to get a dynamic select list to work in
    dreamweaver. It
    > completly crashes everytime I try adding it to my page.
    It looks as though you have a corrupt cache file. Follow
    troubleshooting
    step 4 in the following technote:
    http://www.adobe.com/go/tn_19105
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS4",
    "PHP Solutions" & "PHP Object-Oriented Solutions"
    http://foundationphp.com/

  • Experience with "Auto-Complete and Go-Less Prompts"

    Hi all,
    does anyone have experiences with editing instanceconfig.xml for auto-completing prompts?
    Is it buggy? Or are there any kinds of risks?
    reference: http://www.peakindicators.com/media_pi/Knowledge/oracle%20bi%2011g%20-%20applying%2011.1.1.6.2%20bp1%20-%20windows.pdf
    Please have a look at page 10, it describes how to edit the xml
    Thanks

    Hi Frank,
    I understand the single matching value and expecting move out in single tab for perfect match only. inputComboboxListOfValues selects the entry in one tab [even for single matching value] and user has to press another tab to go to next attribute.
    Are you suggesting that it actually moves out to next field in single tab for "single matching value"?
    Thanks,
    Jai

  • How to delete the existing list and prevent auto-completed web sites?

    Hi, As soon as I start to type "www" in the address bar, a list of previously visited web sites appears, as if auto-completed. They seem rather random, and not necessarily the most recent ones. I have tried resetting Safari, deleting the cache, looking these sites up in the various plist folders in the Library, using Safari in Private mode, etc. but it still happens. I find it a nuisance.
    How do I delete the existing sites, and how do I prevent more from appearing in the future?
    Thanks,
    Richard

    HI,
    Go to Safari/Preferences - AutoFill
    Click where it says: Edit
    You can Remove All or edit which url's you don't want.
    Carolyn

  • Increase value of Select List Item with a Button

    Hi all,
    I've got an apex appli which is working well.
    In one report page I use a select list with a LOV, but I want to "enhance" this functionality:
    I need a kind of button which increments the item-value of the select list by 1,
    so that the user can easily skip to the next value of the LOV without scrolling thru the select list.
    Unfortunately I dont't get it working. Has anyone an idea how to realize that?
    thanks in advance
    Frank

    Hello Frank,
    Assuming your select list item is called P1_SELECT, you can define an HTML button, next to the item, that will do the trick.
    In the Post Element Text field of P1_SELECT, you can have similar code to the following:
      <input type="button" value="Next Value" onclick="$x('P1_SELECT').selectedIndex+=1;" />Hope this helps,
    Arie.

  • Creating dependent select list menus with javascript

    Hi Everybody,
    I m creating parent and child select list menu. Value of Child menu would be dependent on the value selected in the parent menu. I have tried to implement a code from adobe labs  (http://kb2.adobe.com/cps/149/tn_14924.html) but many strange javascript errors are coming up.
    My code is given below:
    <?php require_once('../Connections/connection.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    mysql_select_db($database_connection, $connection);
    $query_sector = "SELECT * FROM sector WHERE media_code = 100 ORDER BY sector_desc ASC";
    $sector = mysql_query($query_sector, $connection) or die(mysql_error());
    $row_sector = mysql_fetch_assoc($sector);
    $totalRows_sector = mysql_num_rows($sector);
    mysql_select_db($database_connection, $connection);
    $query_rsList2 = "SELECT subsector_code, subsector_desc, sector_code FROM sub_sector ORDER BY sector_code ASC";
    $rsList2 = mysql_query($query_rsList2, $connection) or die(mysql_error());
    $row_rsList2 = mysql_fetch_assoc($rsList2);
    $totalRows_rsList2 = mysql_num_rows($rsList2);
    ?>
    <!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=utf-8" />
    <title>Untitled Document</title>
    <!-- Dynamic Dependent List box Code for *** JavaScript *** Server Model //-->
    <script >
    <!--
    var arrDynaList = new Array();
    var arrDL1 = new Array();
    arrDL1[1] = "selList1";              
    // Name of parent list box
    arrDL1[2] = "form1";                 
    // Name of form containing parent list box
    arrDL1[3] = "selList2";              
    // Name of child list box
    arrDL1[4] = "form2";                 
    // Name of form containing child list box
    arrDL1[5] = arrDynaList;
    <%
    var txtDynaListRelation, txtDynaListLabel, txtDynaListValue, oDynaListRS; txtDynaListRelation = "sector_code";
    // Name of recordset field relating to parent
    txtDynaListLabel = "subsector_desc";
    // Name of recordset field for child Item Label
    txtDynaListValue = "subsector_code";
    // Name of recordset field for child Value
    oDynaListRS = rsList2;
    // Name of child list box recordset
    var varDynaList = -1;
    var varMaxWidth = "1";
    var varCheckGroup = oDynaListRS.Fields.Item(txtDynaListRelation).Value; 
    var varCheckLength = 0;
    var varMaxLength = 0;
    while (!oDynaListRS.EOF){
    if (varCheckGroup != oDynaListRS.Fields.Item(txtDynaListRelation).Value) {
        varMaxLength = Math.max(varCheckLength, varMaxLength) varCheckLength = 0; }
        %>
        arrDynaList[<%=(varDynaList+1)%>] = "<%=(oDynaListRS.Fields.Item(txtDynaListRelation).Value)%>";
        arrDynaList[<%=(varDynaList+2)%>] = "<%=(oDynaListRS.Fields.Item(txtDynaListLabel).Value)%>";
        arrDynaList[<%=(varDynaList+3)%>] = "<%=(oDynaListRS.Fields.Item(txtDynaListValue).Value)%>";
        <%
        if (oDynaListRS.Fields.Item(txtDynaListLabel).Value.length > varMaxWidth.length) { 
        varMaxWidth = oDynaListRS.Fields.Item(txtDynaListLabel).Value; }
        varCheckLength = varCheckLength + 1; varDynaList = varDynaList + 3;
        oDynaListRS.MoveNext(); }
        varMaxLength = Math.max(varCheckLength, varMaxLength);
        %>
    //--></script>
    <!-- End of object/array definitions, beginning of generic functions -->
    <script >
    <!--
    function setDynaList(arrDL){
    var oList1 = document.forms[arrDL[2]].elements[arrDL[1]];
    var oList2 = document.forms[arrDL[4]].elements[arrDL[3]];
    var arrList = arrDL[5];
    clearDynaList(oList2);
    if (oList1.selectedIndex == -1){
    oList1.selectedIndex = 0; }
    populateDynaList(oList2, oList1[oList1.selectedIndex].value, arrList);
    return true; }
    function clearDynaList(oList){
    for (var i = oList.options.length; i >= 0; i--){
    oList.options[i] = null; }
    oList.selectedIndex = -1; }
    function populateDynaList(oList, nIndex, aArray){
    for (var i = 0; i < aArray.length; i= i + 3){
    if (aArray[i] == nIndex){
    oList.options[oList.options.length] = new Option(aArray[i + 1], aArray[i + 2]);
    if (oList.options.length == 0){
    oList.options[oList.options.length] = new Option("[none available]",0); }
    oList.selectedIndex = 0; }
    function MM_callJS(jsStr) { //v2.0
      return eval(jsStr)
    //-->
    </script>
    </head>
    <body onload="MM_callJS('setDynaList(arrDL1)')">
    <form action="#" method="get" name="form1">
    <select name="selList1" onchange="MM_callJS('setDynaList(arrDL1)')">
      <?php
    do { 
    ?>
      <option value="<?php echo $row_sector['sector_code']?>"><?php echo $row_sector['sector_desc']?></option>
      <?php
    } while ($row_sector = mysql_fetch_assoc($sector));
      $rows = mysql_num_rows($sector);
      if($rows > 0) {
          mysql_data_seek($sector, 0);
          $row_sector = mysql_fetch_assoc($sector);
    ?>
    </select>
    </form>
    <form action="#" method="get" name="form2">
    <select name="selList2"></select>
    </form>
    </body>
    </html>
    <?php
    mysql_free_result($sector);
    mysql_free_result($rsList2);
    ?>
    The javascripts errors that I m getting are :
    Syntax error  test.php, line 20 character 1
      'arrDL1' is undefined  test.php, line 74 character 3
      'arrDL1' is undefined  eval code, line 1 character 1
    Note: I have bolded the lines where error is coming up.
    If more info is needed please tell.
    Please Help,
    Thanks in Advance

    You'd probably have to put a copy of the app on apex.oracle.com for a complete diagnosis, but you could maybe just check that the Source Used attribute for teh select list is set to 'Only when current value in session state is null' and not the 'Always' option.
    Regards,
    John.

  • Large Select List fails with ORA-6502

    Creating a large select list with htmldb_item.select_list_from_query_xl causes an ORA-6502 when the resulting select list contents are larger than an arbitrary value.
    For example, if the query for the select list returns a display value of up to 50 characters and a numeric id return value of up to 10 digits, we have to arbitrarily include "where rownum < x" (where x is some arbitrary value) in the query to get results; otherwise when the page is run we get the ORA-6502.
    For regular select lists with long results we can get around the problem using htmldb_item.popup_list_from_query but to generate multiselect lists we have to use the htmldb_item.select_list_from_query_xl an include the attribute "multiple".

    Can we get that added to the API documentation? The spec simply states the function returns a CLOB, implying that it would support the max size of a CLOB supported by the database (4GB in 9iR2 as I recall).
    Granted, one should not expect a 4GB web page to be returned using the function call, but a page larger than 32KB isn't entirely unreasonable, especially since this product is geared towards intranet and departmental apps (ie corporate LAN environment).
    An alternative enhancement would be to implement multiselects via the popup list mechanism, allowing users to select multiple items as they "page" or search thru the values for that field.

  • Select list populated with ldap group membership attributes

    Is it possible to query an LDAP group and retrieve all the members of the group?
    For example, if I have an LDAP group with members' login name, I want to retrieve all login names and populate a select list so the end-user can choose a login name from the group.
    Thanks, alan.

    The problem is the second query. I would guess that the TO_CHAR(co) is not unique for each account, but is the same for the accounts. And as the second item in the select-list is the listitems values, all your listitem-entries have the same value. therefore, of you select any entry, the list will always go the the first entry again.
    Adjust your query.

  • Reducing Select list options with keyboard actions - JavaScript help

    ApExperts,
    My users want a select list with similar functionality to one in MS Access. They want to put the focus on it, then start typing and have their keystrokes 'search' the options. For example, if the select list contains the following entries:
    11111
    12345
    22222
    33333
    44444
    55555
    and they type 1 then 2 then 3, they want the element 12345 to be selected, however, an HTML select list widget selects 11111 then 22222 and finally 33333.
    I'm hoping JavaScript might be able to do this but I don't know how to code it. I've searched this forum and other web sites but have found nothing useful.
    So, is it at all possible and, if so, can you give me an idea of what triggering event to code for and what code to use?
    Thanks,
    X

    BTW, that thread continued - with more options - here:
    AJAX, Javascript or just good coding? LOV that filters as you type??
    If the select list is fixed, you don't need to pull results back from the server as the user types. Then you could try something like this:
    http://www.oreillynet.com/pub/a/javascript/2003/09/03/dannygoodman.html
    Doug
    Message was edited by:
    dccase

  • Problems with Auto Complete in v31.4.0

    Since upgrading to version 31.4.0, the auto-complete for the address field has not worked properly. The delay between address selection is much longer than in previous versions. In past versions I could usually type the first two characters and then immediately tab to the Subject line. Now I have to wait a beat or two after typing the first two character, then tab takes me to the next address field rather than the subject line. This has resulted in misaddressed messages and missing subject lines.

    hi Russ,
    i was trying to export a sequence of frames into compressor.
    since then i applied an update to FCP 10.0 and it is now working.
    thanks.
    Wasim.

  • PO drop down list populates with "Delivery Completed" POs

    All,
    I have seen the following issue: When the supplier creates an ASN manually and is requested to populate the Purchase Order field, the drop down list displays "Open" Purchase Orders as well as "Delivery Completed" ones, which is very confusing.  Do you happen to know how I can ensure that the supplier only has the choice to select from "Open" Purchase Orders when creating a new ASN?
    Thank you for your help!
    Johanna

    If a particular email address will only be associated with a single office, then one thing you can do is set the export value of the items in the combo box to the corresponding email addresses. The email address will be the value of the field when you retrive it with JavaScript.
    To submit to a particular email address, it would be best to use the mailDoc method, which is documented here: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.505.html
    This is best because it allows you to reliably customize all the the email properties like recipients, subject, body, etc.
    The code for getting the value of the comob box would look something like this:
    // Get the email address from the combo box named "combo1"
    var sTo = getField("combo1").value;
    If more than one office will have the same email address associated with it, post again and I can refer you to other posts that discuss this situation. You would have to use a similar approach if you do not want to set the export values of the items to the email addresses for some reason.
    The alternative is to use the submitForm JavaScript method, but specifying the subject and body text is less reliable and more complicated.
    If you need more help, post again.

  • Select List item with closest upcoming date

    Hello!
    I am creating a workflow for SharePoint 2010 using SharePoint Designer 2010. I do not have Visual Studio, and then ONLY tool I have is SharePoint Designer 2010.
    I have a workflow and need to create a custom variable that is the title field of a Project list item.
    The list items needs to be chosen by three criteria -
    1) It needs to be an item where the project field = ProjectX
    2) It needs to have a status that is not "Complete"
    3)  Iit needs to be the one where the Start Date is the closest to [Today]
    That is, find which task in Project X is the next one to being.
     Once again, this must be done in SharePoint Designer 2010, or with calculated columns.
    Thanks!
    Tom

    I'm thinking that we can set the default view of this list such that it filters for Start Date >= Today and then sort by Start Date. When the Workflow runs through the list, if it uses the default view, then the first returned item will be what it uses.
    I can't test that right now, but I think it's worth a try.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • Any time any of my usernames come up in the dropdown menu with auto complete, the font is to small and i can't read it.. is there anyway to make it bigger???

    the auto fill feature that firefox has, when i go to type in a username that's already been entered in, i cant read what i've previously put in at previous website visits. The drop down menu that shows what has previously been entered is way to small and i can't read what it says. even with the page zoomed. how can i make it bigger?

    Hello Ashley.
    You may be having a problem with some extension or plugin that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    On the other hand, you may have Firefox configured to display fonts like that. Check Tools > Options > Content > Fonts & Colors and see that the font size is not too small. In my experience, sizes bellow 16 will be way to small to read.

Maybe you are looking for

  • Getting parameters from text and file input tag. .  canyou help me ?

    Hello! Is there anyway of getting parameters from an text field input in a form like : <form name="signinForm" method="post" action="uploadFile.jsp" enctype="multipart/form-data" >Actually I would like to insert the parameters and make the upload of

  • PeopleSoft Connected Query in XML Publisher Report - Error

    Hello - I'm getting this weird error when trying to run an XML Publisher report off a PeopleSoft Connected Query. The Connected Query runs fine to an XML File. Any ideas? The parent/child queries in the connected query don't use any prompts. PCodeWTL

  • MTOM Base64 Decoding

    Hello Experts I am doing a SOAP -> REST scenario (PI 7.31), where I am receiving base64 encoded node "-<ns2:content><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:[email protected]"/> Need pointers on removing this node or d

  • Iphoto crashes when i export

    Iphoto crashes when I export - help

  • Jdeveloper Crashing When Opening MDB Database Connection

    Hello, I created a database connection to one of the local access mdb file using jdbc-odbc connection type. When I tried to view the tables or when I try to create a toplink connection using the same connection I created to access mdb file, my Jdevel