How to Build an Auto-Expanding Select list

Hi everyone,
I want to know if it's possible How to Build an Auto-Expanding Select list ?
I saw some discussions which tell us to use Jquery to acheive this. Is it the only solution ?
I want a solution that it is easy to implement.
Thanks in advance. Bye.

Hi,
Not sure what you've seen before, but anywhoo:
In my select list, i set element attributes of :
style="min-width: 130px"Just because some of the smaller values were getting truncated.
Then I add this onload javascript code:
$('#P10_AUTO_EXPANDING').change(function(){
  $(this).width($('option:selected', this).text().length*10)
})It's not perfect for getting the right size (i.e. i think it increases exponentially, but you can play around with the multiplier)
Which you can see: http://apex.oracle.com/pls/apex/f?p=45448:10:
Edited by: trent on Dec 15, 2011 10:35 AM
Probably best to add this line of code:
$(this).width($('option:selected', this).text().length*10)
into a dynamic action for a change event of the item, of which the true action is to execute javascript code.

Similar Messages

  • How to enter values in the selected list  by pressing f4

    Hi Gurus,
    I have a problem can any one help me in solving this?
    When we go to any table thorugh se11 or se16 to display all the records based on the selective fields like pernr, company code, benefit plan in a Z-table
    Here when I want to display records of selected benefit plans by using the field bplan. here when I go to that bplan field and press f4 then gives me a list of benefit plans, from that list I have to select proper benefitplan for selected records of that plan
    1. Question:
       I have two new plans , can any suggest me how to add in the f4 list of that field. Is it done through any program?
    Another issue,
      I have a report program, when I execute it gives me selected list fields like pernr, date, and some more fields. if you select some fields with the help of f4 , we can choose correct value,
    2 Question,
             I have two new parameters to be added in the f4 list of the fields in the Needed very urgent?
    Thanks
    Ravi

    Hi
    You can create a search for that field with more than one fields and yu can add the search help for that field
    see the doc
    1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).
    2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.
    3)An elementary search help defines the standard flow of an input help.
    4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.
    5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.
    6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.
    CREATION:
    Go to SE11  Tcode
    select search help
    give the 'z' search help name and create
    select the selection method ur table name eg : 'mara'
    dialog module 'display value immediately'.
    add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.
    where left position when displaying and spos = search position
    and then save and activate ..
    See the links:
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
    https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=2176485
    https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=3601619
    pls go through this for search help creation
    http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
    Search Help Exits:
    Re: dynamic values for search help
    Re: Dynamic search  help
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm
    http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_exit.htm
    https://forums.sdn.sap.com/click.jspa?searchID=4390517&messageID=1712818
    You can add F4 values for that field using the following
    See the following ex:
    TYPES: BEGIN OF TY_MBLNR,
    MBLNR LIKE MKPF-MBLNR,
    END OF TY_MBLNR.
    DATA: IT_MBLNR TYPE STANDARD TABLE OF TY_MBLNR WITH HEADER LINE.
    data: it_ret like ddshretval occurs 0 with header line.
    At selection-screen on value-request for s_mat-low.
    Select MBLNR from mkpf into table it_mblnr.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    DDIC_STRUCTURE = ' '
    RETFIELD = 'MBLNR'
    PVALKEY = ' '
    DYNPPROG = ' '
    DYNPNR = ' '
    DYNPROFIELD = ' '
    STEPL = 0
    WINDOW_TITLE =
    VALUE = ' '
    VALUE_ORG = 'S'
    MULTIPLE_CHOICE = ' '
    DISPLAY = ' '
    CALLBACK_PROGRAM = ' '
    CALLBACK_FORM = ' '
    MARK_TAB =
    IMPORTING
    USER_RESET =
    TABLES
    VALUE_TAB = IT_MBLNR
    FIELD_TAB =
    RETURN_TAB = IT_RET
    DYNPFLD_MAPPING =
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF SY-SUBRC = 0.
    read table it_ret index 1.
    move it_ret-fieldval to S_mat-low.
    ENDIF.
    Go through the test program.
    REPORT Ztest_HELP .
    TABLES : MARA.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS : P_MATNR(10) TYPE C.
    SELECTION-SCREEN END OF BLOCK B1.
    DATA : BEGIN OF ITAB OCCURS 0,
    MATNR TYPE MATNR,
    END OF ITAB.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.
    SELECT MATNR
    FROM MARA
    INTO TABLE ITAB
    UP TO 10 ROWS.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    RETFIELD = 'MATERIAL NUMBER'
    DYNPPROG = SY-REPID
    DYNPNR = SY-DYNNR
    DYNPROFIELD = 'P_MATNR'
    VALUE_ORG = 'S'
    TABLES
    VALUE_TAB = ITAB
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3. 
    Regards
    Anji

  • How to get the value from select list to text box

    Hi,
    I have a select list i want to retrieve the value from select list to text box.
    How can i do that???
    Regards,
    Sakthi.

    Hi Sakthi,
    Yo can use the Java script for that..
    Dynamically the value will come into text box.
    Use the below script.
    <script type="text/javascript">
    function disFormItems()
    var lReturn = $v(here your select list name)
    alert(lReturn);
    document.getElementById(here your text box name).value =lReturn; }
    </script>Cheers,
    Shan

  • How can I get two column selection list in my html form

    I required to have two column selection list in my jsp page to show name and description of a product. How can i achieve this functionality or is there any other alternative to do so.

    If i understand correctly: you can't actually create two columns in a list because it can only hold one value. The only way to achieve what you want is by concatenating the two values you want to display and put this as the value of the listbox.

  • How to fix the length of select list box?

    Halo, i am doing the research. I need to find out what is the method to fix the length of select list box. This is b'cos i can set the length of select list due to different length of record(s)/data(s).
    Another question to select list box. What is the maximum length of the select list box?? Can i enter the character with 255 lenght??
    Thank you very much..... a prompt reply will be appreciate!!

    Thanks for ur reply! actually that answer that you gave is right, but i also need to know what is the maximum lenght of character in the select list box?? any idea to that??
    Meanwhile, i also need to know how can i make the character display in select list box dynamically?? that means i can change the font style or font size??
    Anyway, thanks for ur answer.
    bscs.

  • How to set width of a select list?

    Hi,
    another newbie question from me :-)
    When I create a select list the default width is 30, no matter what I set this value to the width of the select list stays the same, it gets as wide as the widest element in the list. This messes the design of the page. I f I have three select lists in a column I want them to have the same width. How do I accomplish that?
    /Magnus

    Edit the item and in the HTML Form Elements Attributes field type the following:
    style="width:120px";adjust the 120 to whatever width you like
    Shunt

  • Auto find Select List

    I'm using a Select List (with submit) in my application and it's a long list, the available select list search by the first letter (if I pressed two letters it would search for words begins with the second letter)....
    Can we find or create a Select List with more than one letter search facility.
    Regards
    Saad

    This does work in IE7, but you have to type quickly!!
    If you have a list of:
    Andrew
    India
    Martin
    Michael
    Richard
    And type 'M', pause, 'I' you will jump first to Martin and then to India.
    Type 'M','I' and you will jump first to Martin and then to Michael
    There does not seem to be a limit on how many letters you can type - just don't pause.
    Hope this helps,
    Martin

  • How to write a PL/SQL select list with submit page?

    Let's we need some select list that are related with each other. I wrote such a code.
    declare
    gn_start_id number := 0;
    glabel1 VARCHAR2(100) := 'Group ';
    glabel2 VARCHAR2(100) := 'Property';
    begin
    htmldb_application.g_f01(1) := 100;
    htp.p('<BR>');
    htp.p
    ( glabel1 || ' : ' ||
         htmldb_item.select_list_from_query
         p_idx => 1,
         p_value => '--Select a value--',
         p_query => 'SELECT m.vproperty, m.NMAP_PK_ID
              FROM table m
              WHERE m.ngroupid = ' || to_char(gn_start_id),
         p_show_null => 'NO',
         p_null_value => 0)
    htp.p('<BR>');
    htp.p
    ( glabel2 || ' : ' ||
         htmldb_item.select_list_from_query
         p_idx => 2,
         p_value => '--Select a value--',
         p_query => 'SELECT m.vproperty, m.NMAP_PK_ID
              FROM table m
              WHERE m.ngroupid = ' || to_char(htmldb_application.g_f01(1)),
         p_show_null => 'NO',
         p_null_value => 0)
    end;
    However, I am not able to submit page automaticly, when user select a value from the select list?
    How can I do this? Thankz

    I found such a solution.. thanks
    htp.p('</TD><TD>');
    htp.formselectopen(cname => 'v_status', cattributes => 'class="ddl" onChange="javascript:update_status(this.value)"');
    FOR rec IN cur_status LOOP
    IF rec.status_id = v_status THEN
    htp.formselectoption(cvalue => rec.status_name, cattributes => 'value="' ||
    rec.status_id || '"', cselected => 'TRUE');
    ELSE
    htp.formselectoption(cvalue => rec.status_name, cattributes => 'value="' ||
    rec.status_id || '"');
    END IF;
    END LOOP;
    htp.formselectclose;

  • How to build an ObjectName pattern to list all objs of type=ServerConnector

    Hi,
    I would like to list all the MX objects of type=ServerConnector. How to build the pattern?
    The example below doesn't work (with pattern: resin:type=ServerConnector").
    It works when I want to list all objects and use pattern ("resin:*") or when I choose a specific ("resin:type=ServerConnector,name=b");
    Thanks for any advice,
    Ala
    {code}
    Object Name pattern = new ObjectName("resin:type=ServerConnector");
    MBeanServer mBeanServer = Jmx.getGlobalMBeanServer();
    Set poolNames = mBeanServer.queryNames(pattern, null);
    {code}
    And here all listed MX objects:
    resin:type=SessionManager,Host=default,WebApp=/
    resin:type=ServerConnector,name=i
    resin:type=ServerConnector,name=h
    resin:type=ServerConnector,name=b
    resin:type=Resin
    resin:type=ServerConnector,name=j
    resin:type=ProxyCache
    resin:type=Host,name=default
    resin:type=ServerConnector,name=c
    resin:type=ServerConnector,name=e
    resin:type=Port,name=192.68.1.50-6802
    resin:type=ServerConnector,name=g
    resin:type=ServerConnector,name=a
    resin:type=ThreadPool
    resin:type=WebApp,Host=default,name=/
    resin:type=WebApp,Host=default,name=/mya
    resin:type=ConnectionPool,Host=default,WebApp=/mya,name=jdbc/mya
    resin:type=ServerConnector,name=f
    resin:type=Cluster,name=cluster1
    resin:type=ServerConnector,name=d
    resin:type=SessionManager,Host=default,WebApp=/mya
    resin:type=Server

    You need to add a comma and asterisk to your pattern:
    Object Name pattern = new ObjectName("resin:type=ServerConnector,*");The pattern you are using will only match a single MBean with that exact name. There has to be an asterisk in the string in order for it to match like-named MBeans which have key/value pairs other than those in the string.
    For more on this, search in this javadoc for the string "property pattern":
    http://java.sun.com/j2se/1.5.0/docs/api/javax/management/ObjectName.html

  • How to display a value from Select List by default

    I have a Select List on a form and I need to on page load show an entry from the SL depending on the user Id of the user logged on.  For example, if the SL had 3 entries: 'Div1', 'Div2', and 'Div3', depending on the division the user belongs to (I can determine that from his user Id using a SQL), say, I need to display 'Div2' to the user in the SL instead of the usual NULL or '---- Select Div ----'.  'Div1' and 'Div 3' entries will still be part of the SL, but for user's convenience I need to display their division.
    Any ideas?
    Thanks,

    Hi Ajay,
    you need to specify your apex version, database version and so on to make our help specific.
    Anyhow you can create a page process- for example one at On Load before header.
    For example;
    [code]
    declare
      v_division varchar2(32);
    begin
      --select default division
       select my_division
       into v_division
      from my_division
      where my_division=:APP_USER;
    :P_DIVISION:=v_division;
    end;
    [/code]
    Then in the default of your select list, specify P_DIVISION as the default. Using one of several methods
    Understanding Page-Level Items
    Kofi

  • Anyone know how to copy an auto-complete dropdown list?

    I'm on a website where a dropdown list exists for items I've typed in the past. I want to keep the list in a text file but I have no way of copying it. Anyone know how to copy such a list?

    You can also use the SQLite Manager extension to create a CSV list of names.
    * SQLite Manager: https://addons.mozilla.org/firefox/addon/sqlite-manager/
    # Open Profile Directory -> formhistory.sqlite -> Go
    # Open Tables > moz_formhistory
    # Hit the Execute SQL tab
    # Use a Select like this: (moz_formhistory.firstUsed and moz_formhistory.lastUsed are available)
    <pre><nowiki>SELECT moz_formhistory.id,datetime(moz_formhistory.firstUsed/1000000,'unixepoch'),fieldname,value
    FROM moz_formhistory
    WHERE moz_formhistory.id</nowiki></pre>
    * Click Run SQL to generate a results list
    * Click the Action button to Save the results to a CSV file

  • How to make columns in the select list dynamic

    Hi
    I need to make columns in the select query dynamic.I have three tables.Table 1 contains master information lets say name of group(A group consists of members of various skill sets) and its period(A group is of specific period lets say for 18 months).Table 2 contains different skill sets corresponding to a group i.e there is one to many relationship between table 1 and table 2.Table 3 contains months information of skill sets.For example if skill set 1 is required for 5 months then there will be 5 rows(for each month) in table 3 corresponding to a skill set i.e there is again one to many relationship between table 2 and table 3.Tabale 3 will also contain man month value for perticular month.I need to show all the periods of a group and its sum of man month value for all skill sets.
    If group1 is of 6 months (starts nov2006 and ends Apr2007) and has 5 skill sets then there will be one entry in table 1 and 5 entry in table 2(For skill set).For each entry in table 2 there will be 6 entry in table 3(for each month).I need to write a query which would display
    Group name   nov2006   dec2006   jan2007   feb2007  mar2007 apr2007
    Gr1             10          15      21      17         18         22--These are sum of man month of all skill set for a particular groupIf Gr 2 is of 9 months then it would disply all the information in respective months.i.e for group 2 nine months information and group 1 six months information
    Pls help
    Thanks in advance
    Sas

    Hi,
    From your requirement, we understand that you want to make Rows in table 3 as Columns.
    Please search pivot in this Forum.
    Regards
    K.Rajkumar

  • How uninstall a printer from the selection list

    Dear All,
    I have installed a software called VipRiser, a PDF printer software but it did not work like I thought and so I deleted it again.
    But there are still 3 "virtual printers" in the system:
    Any idear how I can get rid of this.
    The softwar has no uninstall function.
    In the web I found this:
    emove /usr/libexec/cups/backend/vipriser (you need be an admin)
    remove /usr/share/cups/model/vipriser.ppd and /usr/share/cups/model/vipriser.icns (as an admin)
    but I do not understand this unix?-commands
    Can anyone help?

    *DELETE*
    Manually search your HD for all files w/the name VipRiser. 

  • How to build an auto- range measurement?

    I use a DAQ card PCI MIO 16E4 . I want to build an autorange measurement. My input signal is from nA to mA. I am a LabVIEW user, pelase  help me.

    hanh and Sean:
    I have been thinking about this and it does not appear trivial. A nA to mA span is 6 orders of magnitude. WIth a single 1K resistor (value arbitrarily picked) this current range will generate 1uV to 1V. Not an ideal situation at the lower end for good resolution. Using a 10K is still 10uV to 10V, again 10uV is just a few bits of full scale max input. I think a better approach could be to switch various ranges of resistors (i.e. 1Mohm, 100Kohm, 10Kohm, 1Kohm) in circuit (via digital outputs driving a circuit to drive DIP reed relays) to bump the voltage up to get good resolution for whatever the current is. 'Autorange' could be applied by setting DAQ input level programmitically (do not know if this can be done with this card) at highest sensitivity, looking if overrange, and if so then switch to next lower value resistor. Repeat as needed until in a good usable voltage range.
    Of course you need precision resistors whose actual value is known for optimal accuracy. And can the circuit supplying the current provide the voltage burden (voltage drop across resistor)? Will sense resistor load down circuit, etc....
    If it were me, and the application constraints and accuracy demanded it, I would rather buy a higher end Fluke, Agilent, or Keithly meter with a GPIB interface.
    Or, would a PCI-4070 suffice?
    I am not trying to shoot down the use of the MIO 16E4, but without further details like accuracy, is it AC or DC, measurement thoughput, etc, I am pointing to some potential issues you may come across.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • How to create Dynamic Selection List containg file names of a directory?

    Hi,
    I need a Selection List with a Dynamic List of Values containing all file names of a particular directory (can change through the time).
    Basically, I need an Iterator over all file names in a directory, which could be used for Selection List in a JSF form.
    This iterator has nothing to do with a database, but should get the names directly from the file system (java.io.File).
    Can anybody tell me how to create such an iterator/selection list?
    I am working with JDeveloper 10.1.3.2, JSF and Business Services.
    Thank you,
    Igor

    Create a class like this:
    package list;
    import java.io.File;
    public class fileList {
        public fileList() {
        public String[] listFiles(){
        File dir = new File("c:/temp");
        String[] files = dir.list();
        for (int i = 0; i < files.length; i++)  {
                System.out.println(files);
    return files;
    Right click to create a data control from it.
    Then you can drag the return value of the listFiles method to a page and drop as a table for example.
    Also note that the Content Repository data control in 10.1.3.2 has the file system as a possible data source.

Maybe you are looking for

  • When upgrading from 3GS to 4, will my text history transfer?

    i want to get an Iphone4 but I need to know if my text history will transfer to the new phone when i sync it.

  • Opening applcations and windows, open behind first application

    Whenever i open an applicaton or new window in a browser, the application opens up behind another application. E.g. Itunes is open, i open firefox and it is stuck behind Itunes, i then have to drag Itunes to the other side of the screen to access Fir

  • Facing problem in deleting RAC node.

    Dear All, Please guide me, I am in a critical situation due to my own mistake, during node deletion process, I forgot to to mention CRS=true during $ ./runInstaller -updateNodeList ORACLE_HOME=$ORA_CRS_HOME CLUSTER_NODES="" -local CRS=true and uninst

  • Auto Play

    I understand that Apple policy is that for web content (audio and movies) autoplay is disabled but I am creating an app which will not require any internet with CP8 and Phonegap. Is there a way to autoplay the project rather than having the user pres

  • BDT Event DSAVE and Error Processing

    Hi there. I would appreciate it if someone can help me please. I have a requirement to update the contract account on the save of Business Partner changes. To do the BP Change I am using BAPI_ISUPARTNER_CHANGE. On the save the event DSAVE is entered