Headers in Dropdown lists? (Non-selectable items)

Does any one know how to make headers in dropdown lists? I have 2 groups of items I want to add a header for each in the dropdown list. The headers just have to be non selectable.
thanks,

Hi Kris,
In Designer 7.1, I created a DropDown List which includes Headers and sub categories under these headers, where the Headers are not selectable. When I built my DropDownList I then assigned Values to each item in the list, which I've put in brackets for you:
HEADER ONE (10)
Item A (1)
Item B (2)
Item C (3)
HEADER TWO (11)
Item X (4)
Item Y (5)
Item Z (6)
This is the JavaScript I wrote on the Exit event:
if (DropDownList.rawValue > 10) {
DropDownList.rawValue = "";
Hopes this works for you.

Similar Messages

  • How can i show the first item in the list as selected item

    Aslam o Alikum (Hi)
    Dear All
    How can i show the first item in the list as selected item when user click on the list. Right now when user click the list the list shows the last item in the list as selected or highlighted. Furthermore if the list item have large no of value and a scroll bar along with it then the list scroll to last item when user click it with mouse. I want that when user click the list item with mouse list should show the first item as highlighted.
    Take Care
    Allah Hafiz

    Hi!
    You can set list "initial value" using When-Create-Record trigger.
    I.g.
    :<Block_name>.<list_item_name> := Get_List_Element_Value('<Block_name>.<list_item_name>', 1);

  • Display month and year in dropdown list on selection screen

    Hi
      Can anyone tell me how to display months and year in a dropdown list on a selection screen?
      also please tell me how to get the first and the last dates upon selecting the month and year on the dropdown list.
    Month: January Year:2007 . 
    After selecting the required month and year, the first date and last date i.e '01.01.2007 - 31.01.2007' should be displayed on the right side.
    Reward Points assured..
    thanks,
    Chetan

    Hi..,
    <b>
    Just copy, paste and execute this program !!</b>
    type-pools: vrm.
    parameters : p_month(2) type n as listbox visible length 10,
    p_year(4) type n as listbox visible length 10.
    DATA : W_DATE type d, w_ldate type d.
    initialization.
    perform user_drop_down_list_fordt.
    perform user_drop_down_list_foryr.
    start-of-selection.
    concatenate p_year p_month '01' into w_date.
    call function 'BKK_GET_MONTH_LASTDAY'
      exporting
        i_date        = w_date
    IMPORTING
       E_DATE        = w_ldate
    write /: w_date,w_ldate.
    build user_drop_down_list
    form user_drop_down_list_fordt.
    data: name type vrm_id,
    list type vrm_values,
    value like line of list.
    data: t_months type t247 occurs 0 with header line.
    clear list. refresh list.
    name = 'P_MONTH'.
    select * into  table t_months
    from t247 where spras eq 'EN'.
    sort t_months ascending by mnr.
    loop at t_months.
    clear value.
    value-key = t_months-mnr.
    value-text = t_months-ltx.
    append value to list.
    endloop.
    Set the values
    call function 'VRM_SET_VALUES'
    exporting
    id = name
    values = list.
    endform.
    for year...
    form user_drop_down_list_foryr.
    data: name type vrm_id,
    list type vrm_values,
    value like line of list.
    clear list. refresh list.
    name = 'P_YEAR'.
    do 9999 times.
    clear value.
    value-key = sy-index.
    append value to list.
    enddo.
    Set the values
    call function 'VRM_SET_VALUES'
    exporting
    id = name
    values = list.
    endform.
    <b>
    Hope this solves ur problem..</b>
    regards,
    sai ramesh

  • List and selecting items in it ?

    I use List (element in building GUI). In emulators it works nicely and I have possibility to select one item from the list (I didn't code anything about selecting it) it was automatically added to menu. This is great.
    When running the same app in actual device (Nokia 7210), the "select" is not possible / provided by the phone...Theere is no such element at all. So I actually can't select an item out of list.
    In nokia 7650 this doesn�t occur.
    My mistake, need to program ? .. how to proceed ?
    P

    Funny that mine doesn't work and I have the same firmware version...
    My situation is that I have a List, with items that are ment to be selected.. I need to have commands generally concerning the whole application and commands that are available after user have selected one item from the list.
    This is now done so that I have one List (holding those selectable items...), select button then leads to another list, where I have list of actions available to selected item.
    The previous list also has Commands appended to it.
    These commands are always available, but in phone the List Select button is gone, and accesing that other list (with detailed actions concerning only the selected item) is then impossible.

  • List and selected item

    Hello,
    I’m having difficulty to understand list items,
    Here is what I need to do, I list item loaded from a table, all looks good
    Now when someone select the item from the list, I would like to put a code
    Behind button (mouse-click) and show selected item in text box (TEXT ITEM)
    Please don’t ask me to help file, I spent over two hours with no chance, looks help file
    Needs help.
    Thanks for any help in advance

    your question isn't clear at all.
    first: When you change the value of a listitem you can use the WHEN-LIST-CHANGED-trigger to do something.
    if you want to transfer the value of a list-item into another item, then you can write this code in the trigger WHEN-LIST-CHANGED
    BEGIN
      :my_block.my_item := my_block.my_listitem;
    END;or do you need something different?

  • How to use dropdown list in selection screen

    Hi everyone.
    I'm stating a new report and a drop down list is required in initial filtering. I red different articles in google but  istill just don't get it... please help...

    Sample Code:
    TYPE-POOLS: vrm.
    DATA: name TYPE vrm_id, list TYPE vrm_values, value LIKE LINE OF list.
    * List box
    PARAMETERS: ps_parm AS LISTBOX VISIBLE LENGTH 10.
    INITIALIZATION.
    * Populate list box values
      name = 'PS_PARM'.
      value-key = '1'. value-text = 'Line 1'. APPEND value TO list.
      value-key = '2'. value-text = 'Line 2'. APPEND value TO list.
    AT SELECTION-SCREEN OUTPUT.
    * Set list box with value
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id     = name
          values = list.
    START-OF-SELECTION.
      WRITE: / 'Parameter:', ps_parm.
    Regards,
    Angelo.

  • Dropdown list in selection screen

    Hi guys,
    I am having a drop down list of 5 values in my selection screen.
    I am able to show the list of values in the droplist of the selection screen.
    How should I set default value in the list.
    Regards
    mac

    REPORT ztest1234.
    type-POOLs : vrm.
    PARAMETERS : dr1 as LISTBOX VISIBLE LENGTH 20,
    dr2 as LISTBOX VISIBLE LENGTH 20.
    DATA : lv_values TYPE vrm_values,
    lv_values1 TYPE vrm_values,
    gw_values like LINE OF lv_values.
    AT SELECTION-SCREEN OUTPUT.
    gw_values-key = '1'.
    gw_values-text = 'One'.
    append gw_values to lv_values.
    gw_values-key = '2'.
    gw_values-text = 'Two'.
    append gw_values to lv_values.
    gw_values-key = '3'.
    gw_values-text = 'Three'.
    append gw_values to lv_values.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    ID = 'dr1'
    VALUES = lv_values
    EXCEPTIONS
    ID_ILLEGAL_NAME = 1
    OTHERS = 2
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    else.
    dr1 = '1'. ( Just give ur id number which u wants to be default)
    ENDIF.
    With Regards,
    Sumodh.P
    Edited by: Sumodh P on Apr 23, 2010 12:25 PM
    Edited by: Sumodh P on Apr 23, 2010 12:26 PM
    Edited by: Sumodh P on Apr 23, 2010 12:30 PM

  • Dropdown list in selection screen linking with Ztable

    Hi,
    In selection screen, i coded for parameter with dropdownlist with hardcoded values in the list. Client asking me link this list to Z table fields so that whenever they make entries in future just he need to create a variant for the new entries and program should work accordingly.

    Hi,
    Select the required entries from the Ztable and pass them to the function module VRM_SET_VALUES for populating the list box .
    However there is a restriction .
    The maximum  number of possible entries available (less than 40),If ,suppose large number of entries are there in Z table.
    Selection from the drop-down list box menu is hindered by a scroll bar (due to a large number of entries) .
    Also Sorting is not supported in drop-down list box menus, so the user is not offered ny help in managing huge number of values.
    I would better suggest to go for a select-options or parameters attached with F4 help.
    Regards,
    Lakshman

  • How to read the selected value of a dropdown list box

    Hello,
    I have 2 custom fields which are of type dropdown list on Accounts(CRMM_ACCOUNT) PCUI application details tab.I need to read the selected value of first dropdown list item,based on that second dropdown list will be populated.
    I know where to populate the dropdown list box,it is in FILL_DROPDOWN_LISTBOX.
    I dont know how to trap the selection made on dropdown list.
    PLease guide me on how to trap the dropdown list field selection value.
    Thanks in advance.
    Thirumala.

    Hello,
    Check what is done in standard for the fielf REGION which is inked to the country.
    Otherwise, you can do the following :
    - in field group customizing, for field 1, flag the 'send request' flag. So, when you change the value in this field via the dropdown, the MAC methods are immediately called.
    - Put the new value in a global variable (GV).
    - in the fill_dropdown_listbox method, get the value from this GV and based on it, filter the values for the dropdown of field 2.
    Hope this will help you,
    Regards,
    Frederic

  • Me21n change line item dropdown list value

    hi experts,
    i have a requirement to automatically remove the aulty po line item when user click on CHECK or SAVE button, i done this by removing the record from ETT[] and POT[] at ENHANCEMENT-POINT mm06ef0p_pruefen_01 SPOTS es_mm06ef0p_pruefen INCLUDE BOUND.
    it is working fine except one scenario which is, if the faulty line item is 00020, and the line item dropdown list is selected line item 20, after i removed the record from POT[], it hits abap runtime error. when i check at debugger, it is caused by system will look for line item 00020 ( follow dropdown list value ) but the record is removed, so come to error... it is working fine if the dropdown list is selected line item 10.
    so i am looking for a way to change the dropdown list value.
    or you all have some other suggestion?
    please help... i need it urgently coz i have been solving the problem for 2 weeks....
    thanks a lot

    Hi,
    generally it's not a good idea to delete item without using standard method. You can see one example why it is usually complicated. Maybe I have a workaround for you. You can try to use BADI ME_PROCESS_PO_CUST. There is a method CHECK where you get reference to PO header. You can easily get references to your items by calling method GET_ITEMS. So you will perform your check for each item and for wrong items you will call method INVALIDATE. This item will be marked as invalid and it will not be posted. Here I do not know how it will be displayed to user. Maybe the user will have to delete this item manually.
    Cheers

  • Prepopulate dropdown list based on selections made in other fields

    I wonder if anyone can help?
    A form with a radio button group containing two radio buttons "yes" and "no".
    Below the radio buttons is a dropdown list that has three items in the list "option A, option B, & option C.
    Below that, is another dropdown list, with three items, "10000", "15000" & "20000"
    How can I do the following?
    When radio button "yes" is selected, and dropdown list "option A is selected, it prepopulates "10000" in the bottom dropdown list
    When radio button "yes" is selected, and dropdown list "option B is  selected, it prepopulates "15000" in the bottom dropdown list
    When radio button "yes" is selected, and dropdown list "option C is  selected, it prepopulates "20000" in the bottom dropdown list
    Thanks in advance!

    Hi $Nith$
    Just sent you a PM

  • Second list of items from selected item in first list

    Hi all,
    I have 2 dropdown lists in my jsp page. i am retrieving data from database for my first list box. the second list box data should be displayed when user select an item from the first list. the selected item from first list is necessary to get another list of items in second list. i dont want to use any buttons or submits. i want to redirect the data to the same page to get another list when user click one option from first list. Thanks in advance for any suggestion.

    use ajax or store the data in javascript array

  • Multiple selection box + Substracting cascading dropdown list

    I have a multi-select boxe and a drop down but instead of ADDING the choices made in the multi select box to the list of selectable items in the drop down list, I want to SUBSTRACT them.
    I'll try to clearify it: if in the multi-slection box you have:
    Option A and option B and
    in the drop down list, you (depending on you selection) have 2 4 6 8 (options for A) or 4 8 10 12 (options for B).
    When selecting BOTH A and B, the drop down liast should ONLY display the values that overlap/exist in both A and B (e.g 4 8).
    This would have to work for X number of options in both the multi select box and the drop down list.
    Doess anybody know how to make that work?
    Thanks in advanced and kind regards!

    Hi Little_Ghost,
    for using a form, seems quite a challenge.
    when you select the selection box, or check boxes in the form, you may need to grab the all the selection, and refresh the page with the pre-selected information, so it will be loaded when the page is refreshed.
    if you are using infopath template, it may be difficult, since we need 2 infopath form templates associate with list A and B individually, not sure how to interact this cross 2 infopath form template.
    my infopath colleague suggest you to try to use one infopath form template with 2 data connections.
    i was thinking,
    if you could populate the items, for example by using getlistitem()
    http://spservices.codeplex.com/wikipage?title=GetListItems
    then you may put the result in an array, and ready to compare.
    since you would like to use a form, then it may not updated directly, i am not quite sure for this, because as i know you may need to use a button to send out and update/refresh the fields.
    http://www.quirksmode.org/js/forms.html
    http://www.javaworld.com/article/2077176/scripting-jvm-languages/using-javascript-and-forms.html
    or you may have to try to use the data view webpart:
    http://www.dotnetcurry.com/showarticle.aspx?ID=581
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Return a value based on dropdown list

    I am a newbie in making PDF form and had recently started working with Live cyle to create a fillable form and managed to create a usable one patterned with the sample Purchase Order Form (by trial and error) which came along with the installation. Can somebody please help me with this form.  I have a dropdown list on the ITEMS column and want it to automatically display the unit price of the item selected from the drop down list. By the way I managed to make the table flowable.

    http://forms.stefcameron.com/2009/02/25/expandable-table-with-totals/

  • How can I populate a dropdown list

    I am trying to build a dropdown list dependant on another dropdown list
    Once a selection is made in dropdown list 1:
    Only items associated with that selection are populated in dropdown list 2 AND
    populates text field 1 with the data selected in dropdown list 1
    Once dropdown list 2 selection is made:
    populates a text field 2 with the data selected in dropdown list 2
    Anybody know how this can be done?
    Ray

    Sorry about that. I had the link ready to paste but neglected to do so: http://acrobatusers.com/tutorials/getting-external-data-into-acrobat-x-javascript
    The idea is that you can read in data from an external or attached file, but it will need to be a different format such as XML, tab-delimited text, or CSV, which can all be exported from a spreadsheet.

Maybe you are looking for

  • How to save XML timeformat to oracle without loosing "timezone-compensati"

    I hope i post this in the correct forum and I provide enough info for you to understand what I'm looking for... Some time ago I got some help here about how to read a incoming XML-file and insert data into a table, where the Element-tag describes the

  • IPod has more than just music on it !

    Ok, this is gonna sound weird, but my brother just bought a video iPod and he downloaded his music onto it from iTunes. Now when he plays it, between EVERY song there are people's voices talking. All of them are in a foreign language also. Does anyon

  • G70-250US Notebook - sleep issues in Win7?

    I just bought the G70-250US... my first notebook ever after 15 years of computing.  The very first thing I did (after creating recovery discs of course) was format the drive and put Win7 RC1 (x64) on it.  It runs great now and I have no HP bloatware.

  • Calling form in query mode

    Hello friends, I want to call a form B from Form A in query mode. And my all atributes r like new_record_instance of block IF :a.order_no IS NOT NULL AND :SYSTEM.RECORD_STATUS = 'QUERY' THEN      SELECT COUNT(1)      INTO n_cnt      FROM a      WHERE

  • Permission to share folders or not - A disscussion

    Hi! I'm about to update my installation to iMS5.2. In this version the "shared folder"-feature is implemented in the webmail client. Earlier I have this feature turned off becourse of the access to a adminserver-port isnt ok. Now it is in another sit