How to create a drop down box values on design time?

Hello,
I have a drop down box that I would like to edit on design time to have the valus 1 to 10.
Is it possible to doo it on design it or do I have to create a loop in the code to do that?

See go to LocalDictionary->Data Type-> SimpleType Right Click and create a Simple Type giving some Package Name
Once u have created
There u will see Enumeration Tab and give Key Value Pairs by pressing New Button
Now Create a Context Attr and at Type property select that three dots
Then go to Dictionary Simple Type and select the Package u have given
then select the Simple type u have created
Then assign the context Attr to the UI Element
Message was edited by: krish kanth

Similar Messages

  • How to create a drop down box and text box in screen painter?

    Hi i am totally new to this concept of screen painter..please can any tell me
    how to create drop down box in screen painter?
    How to create or display default date and time values?
    How to create text box for giving comments?
    How to store the records that we are entering in a table?
    Please can any one send me the procedure for creating all these its very urgent useful information will be surely rewarded.

    Hi,
    Check all these.
    1.how to create drop down box in screen painter?
    To get Drop Drown Box on screen .
    Follow these steps.
    1.
    Go to T.Code SE51 and Select Laypout for the Screen.
    2.
    Double click on the field for which u want Dropdown box.
    3.
    Then U will see Name ,Text ,DROPDOWN.Click on that and select List Box or ListBox with key . Better to to select first one.
    4.
    Save and Activate ur screen .
    5.
    Enter the following piece of code in the PBO of the screen.(Change for ur requirement).
    6.
    The following code should be written under PROCESS BEFORE EVENT in the MODULE.
    TYPE-POOLS :vrm.
    DATA:
      i_natio TYPE vrm_values, "-->Table that is passed through FM vrm_set_values
      w_natio LIKE LINE OF i_natio.
    DATA:
    BEGIN OF i_t005t OCCURS 0,
        land1 TYPE t005t-land1,
        natio TYPE t005t-natio,
    END OF i_t005t.
    IF i_t005t[] IS INITIAL.
      SELECT land1 natio
         FROM t005t
           INTO TABLE i_t005t
       WHERE spras = sy-langu.
      IF sy-subrc = 0.
      LOOP AT i_t005t .
          w_natio-key = i_t005t-land1.
          w_natio-text = i_t005t-natio.
          APPEND w_natio TO i_natio.
          CLEAR w_natio.
      ENDLOOP.
      ENDIF.
    ENDIF.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
                          id = 'I_IT0002-NATIO' "-->Field for which dropdown is needed.
                    values = i_natio
    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.
    ENDIF.
    2.1.How to create or display default date and time values?
    1.
    create input field for DATE and TIME on screen.ex. DATE1 and TIME1 are screen field names .
    2.
    Just assign SY-DATUM to DATE1 and SY-UZEIT to TIME1 under PROCESS BEFORE EVENT.
    3.How to create text box for giving comments?
    1.
    Define one variable in the TOP include with type STRING means Global variable.
    2.
    Create one input field by giving screen field name which u have defined in the above step.
    4.How to store the records that we are entering in a table?
    For this case.. Create one table control. you can select one record and create record in the Z table by pressing button on Application toolbar..
    Check the following steps to handle Table control.
    1).
    U should take one variable in your internal table or in structure which
    is used for table control fields
    ex :
    data :
    begin of itab occurs 0 ,
        mark type c , "This is to select the record.
        matnr like mara-matnr ,
        matkl like mara-matkl,
        maktx like makt-maktx,
    end of itab .
    Controls: TABC types TABLEVIEW using screen 100.
    2).
    This mark variable should be given in Table control properties.
    follow the path
    double click on the table control-->attributes .->select
    w/SelColumn and in that itab-mark. Check in the figure.
    [Table control properties screen|http://bp2.blogger.com/_O5f8iAlgdNQ/R99gOUH8CXI/AAAAAAAAA9I/d3gOum1fJ6s/s1600-h/pic28145-796618.jpg]
    3).
    After that. Take this example.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    LOOP AT ITAB WITH CONTROL tabc
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE CANCEL AT EXIT-COMMAND.
    LOOP AT ITAB.
       Module read_table_control.
    ENDLOOP.
    module user_command_0100.
    In this Module read_table_control, You should write the following code
    MODULE read_table_control INPUT.
    MODIFY itab INDEX tabc-current_line."( This will update the
    "ITAB table MARK field with 'X ' whatever we have selected
    "on table control.)
    ENDMODULE.
    4)
    If you want to Delete some of the records from Table control
    follow this code …Create one pushbutton and give Fucnction code to that
    and write below code
    CASE OKCODE.
    WHEN 'CREATE'.
    LOOP AT itab WHERE mark = 'X'.
    "Use UPDATE statement to create new record.
    ENDLOOP.
    ENDCASE.
    I hope that you will get something.
    Regards,
    Venkat.O

  • How to create a Drop down with values in Module Pool for a screen field.

    Hi all,
    I have created a Screen on which one field is created Say Bank Name. I would like to give some spcific value for this fileld where user can select only seeing in drop down cann't enter.
    Can anyone tell how can we do it ?

    Hi,
    The selected value key will be stored in the parameter.
    eg: Refer below code. Here if i select Vinod then po_name will be 1. After this read i_values WITH this key and get the actual value.
    PARAMETERS: po_name(30) TYPE c VISIBLE LENGTH 20 AS LISTBOX.
    TYPE-POOLS: VRM.
    DATA: i_values TYPE vrm_values,
          wa_values LIKE LINE OF i_values.
    AT SELECTION-SCREEN OUTPUT.
      wa_values-key = '1'.
      wa_values-text = 'Vinod'.
      APPEND wa_values TO  i_values.
      wa_values-key = '2'.
      wa_values-text = 'Kumar'.
      APPEND wa_values  TO i_values.
      wa_values-key = '3'.
      wa_values-text = 'Reddy'.
      APPEND wa_values  TO i_values.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id              = 'PO_NAME'
                values          = i_values
           EXCEPTIONS
                id_illegal_name = 1
                OTHERS          = 2.
    START-OF-SELECTION.
    READ TABLE i_values INTO wa_values WITH KEY key = po_name.
    MOVE wa_values-text TO w_name. " This will be ur actual value.
    Thanks,
    Vinod.
    Edited by: Vinod Reddy Vemuru on Jul 8, 2008 4:16 PM

  • Creating cascading drop down boxes in SharePoint 2010 using one list

    We have a support request form tied to a list that end users input data into which when submitted sends out an email.
    Is it possible to create a drop down box on the form that limits the choices in the "subcategory" column, based on what is chosen in the "category" column.  
    For instance in the category column we have SharePoint, Oracle, and Web Tools as choices. 
    In the subcategory column we have items related to each category. We only want items that are related to the selected choice to appear in the subcategory drop down box. 
    I see examples in InfoPath using "Multiple Lists" (one list for city, one for state, etc), but nothing using the same list.  I would rather not use multiple lists if possible. 
    Anyone have any ideas?  Thanks.

    Hi,
    According to your post, you want to create a cascading drop-down list box using one list.
    To achieve what you want, we can:
    Create two fields(category and subcategory) in drop-down list box type in the form in InfoPath.
    Add the list which contains the values of the category and subcategory columns to the form as an external data.
    Right click the category field, click Drop-Down List Box Properties, and choose Get choices from an external data source.
    Choose the list added in step2 in Data source, click XPath behind Entries, click the category column in the list, select Show only entries with unique display names.
    Right click the subcategory field, click Drop-Down List Box Properties, and choose Get choices from an external data source.
    Choose the list added in step2 in Data source, click XPath behind Entries, click the subcategory column in the list, then click Filter Data.
    Click Add, select the category column in the list in the first box, select is equal to in the second box, choose select  a field or group in the third box, then choose Main in the Fields and select the category field in the form.
    Click OK.
    Best regards.
    Thanks

  • How to create conditional drop-down lists

    I would like to create a form that utilizes conditional drop-down selection boxes like at http://blogs.office.com/b/microsoft-excel/archive/2009/11/24/create-conditional-drop-down- lists.aspx
    How can I create a form that contains fields like this?
    Is there a sample I can download?

    I have downloaded the AcroForm version (ListProgramming_Part1_AcroForm.pdf).
    I'm not able to consistently recreate.  I was first playing with the form by selecting values in the drop down.  At one point I went to Document Javascripts and select "Example1".  I chose to edit.  Make no changes and select "OK" I get "SyntaxError: missing } in compound statement 39 at line 40"
    The sec ion of code is:
    function SetPartEntries()
       // Only run this code on when the selection is commited.  
       if(event.willCommit)
          // There are 3 rows in the order form so in order to use other fields in 
          // the same row we first have to acquire the name of the row
          // we are operating on.  This is part of the List field's name, so we 
          // just have to split it off 
          var cRowName = event.target.name.split(".").shift();
          // Now get the new parts list from the Master List
          // Since the selection is being committed, event.value contains the selection text
          var lst = oAssemblyParts[event.value];
          // If an entry is selected that we don't have a parts list for, then
          // the parts list is just cleared. 
          if( (lst != null) && (lst.length > 0) )
             this.getField(cRowName + ".PartSelect").setItems(lst);
          else
             this.getField(cRowName + ".PartSelect").clearItems();
          // We have a new parts lists and the first entry is 
          // is a non-selection.  so clear the price field.
          this.getField(cRowName + ".Price").value = 0;
    I am not able to recreate if I select "Edit all Javascripts" only when I use document javascripts.

  • How to fill a  drop down box  in a  webdynpro application

    Hi friends ,
                   i am facing one problem while  filling a   dropdown box with  some  hot  coded values :  " High","Medium","low"..etc..
    drop down box  having  fixed  elements   always.....
    means  all values  should be  static and i  have to fill it  at design time  only..
    can  any body  pls  reply  for the   above same......
    Thanks and  Regards
    Ratnakar reddy

    Hi Ratnakar,
    If u r using Dropdown By Key, u can use the method that Armin suggested.
    If u r using Dropdown By Index, then do the following
    Let ur View Name be 'MyView'
    1. In ur View Context,Create a Node(Say Root) of Cardinality 0..N
    2. Create a value attribute(Say Name) in 'Root'.
    3. In wdDoInit(), add the following code
    IPrivateMyView.IRootNode rNode=wdContext.nodeRoot();
    IPrivateMyView.IRootElement rEl=rNode.createRootElement();     
    rNode.addElement(rEl);
    rEl.setName("HIGH");
    rEl=rNode.createRootElement();
    rNode.addElement(rEl);
    rEl.setName("MEDIUM");     
    rEl=rNode.createRootElement();
    rNode.addElement(rEl);
    rEl.setName("LOW");     
    Hope this be Helpful
    Fahad Hamsa

  • Translation of drop down box values in Time Advice iview

    We have an issue where the values in the drop down box for Team Time Advice iView -> Display more time statements is only appearing in English.  The values are 3 months, 6 months and 12 months.  If we log into the portal in French then everything is translated to French except the values in the drop down box.
    I am looking to find where these can be translated.  Is it possible via the SPRO like it is for values for Organizational Structure Views, or is it only possible by core modding the internal local Java Dictionary in the Java Webdynpro?
    Thanks,
    Richard

    Hi,
    It really depends on where those values are coming from. It is possible that something like that is actually part of the Web Dynpro Application itself and not something that is taken from the backend system, so not possible to modify in the iMG.
    My suggestion is that if this is standard SAP code that you raise a support message with SAP esp. since as you say all the other text is translated into French, it might just be a bug that they will fix.
    If it is your own custom code then you need to look and see where those values come from. You can internationalize WDJ apps as described in this link: http://help.sap.com/saphelp_NW70EHP1/helpdata/en/2d/e7381138a8d2458f1f4fac32614f71/frameset.htm
    I hope that helps you,
    Simon

  • How to create Dynamic Drop down list ?

    Hi experts
    I want to create a Dynamic Drop down list that should be an Editable,after editing that i need to save.
    thanks,
    vikram.c.

    Hello,
    Please go through this link:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/linking%2bdrop-down%2blists
    If useful reward.
    Vasanth

  • How to create a drop down menu

    Is it possible to create a dropdown menu when a button is clicked or rollover? However, what i need is a dropdown menu and not a popup menu... hope to get some response... thank you

    sounds like he needs an uneditable ComboBox, cant say much unless he gives us more details.
    asrar

  • How to make choices in a drop down box change a value in another box

    Hi,  I am fairly new to the world of creating forms in Adobe so please bear with my question if it seems simple.  I have seen where a lot of people are using code and I am very confused.  I am creating an order form and have created a drop down box (combo box).  There are 4 choices in this drop down box.  When the user chooses one of these choices, I would like an amount to appear in a seperate box.  Each choice would have a different amount.  Is this possible?  If so, could someone please give me step by step instructions.  I appreciate any help given!!

    Yes, the best way would be to set your 'Amount' value into the 'Export Value' for each item in the combobox. Then, you can set the calculation for your text field to the following (Be sure to change "ComboBox1" to the name of your combobox):
    var f = this.getField("ComboBox1");
        var a = f.currentValueIndices;
        var s
        if (typeof a == "number") {// a single selection
            s = (f.value);       
    event.value =  s

  • How to create Drop Down box in screen painter..??

    Can anybody give me sample code or detailed description about creating Drop-Down Box in a screen...??
    I have created the drop down box in screen..
    But how to make data to be visible in Dropdown box, when i click the drop icon in that box...???
    Regards
    Pavan Sanganal

    Here are couple of DEMO programs for the same functionality
    DEMO_DROPDOWN_LIST_BOX       
    DEMO_DYNPRO_DROPDOWN_LISTBOX 
    You execution sequence will be PBO - Process before output, then the screen is displayed and the PAI Process after input.
    Regards,
    Ravi
    Note : Please mark all the helpful answers

  • How to handle Drop Down Box on Interactive Adobe Form

    Hi,
    On my adobe form there are some drop down boxes like company code, cost centre etc, actually i need F4 help on those fields,  but what i found is it's not possible to have F4 help on adobe form so i have choosen alternative as webdynpro acitvex drop down box in library. I have written a web dynpro application to fetch the data and display it on adobe interactive form, i could able to display the data for all the fields on adobe form except these drop down boxes, can any body suggest me how to handle these drop down boxes in webdynpro application. Your help will be greatly appreciated.
    Thansk & Regards,
    Venkat

    Hi Venkat,
    As you are using the WDP ActiveX dropdown in your form, it is fine but to populate values in the DD, you need to bind the context attribute with a simpletype and then populate the values. Use the below code to obtain a ModifiableSimple Type:
    IWDAttributeInfo abcInfo = wdContext.nodeABC().getNodeInfo().getAttribute("AttributeName");
                        ISimpleTypeModifiable def = abcInfo.getModifiableSimpleType();
                        IModifiableSimpleValueSet abcValueSet = def.getSVServices().getModifiableSimpleValueSet();
    and after this put te values in the obtained modifieable simple type like below:
    abcValueSet.put(key,value);
    where key may be the ID and value may be the name to be displayed in DD.
    Reward points if found helpful.
    Regards,
    Arafat

  • How do I create a drop down menu with Code Snippets and Flash CS5?

    Hi
    I am wondering how to create a drop down menu using the Code Snippets and CS5?
    There are some older tutorials out there and it would be nice if someone could create an updated drop down menu tutorial, and it might be me doing this after I have figured out the best and easiest way to create one, but before that I need some pointers.
    Thanks!
    Have a great day!
    Paal Joachim

    You can use panel widget to create manual menu where set to show target on rollover.
    Something like this :
    http://muse.adobe.com/exchange-library/menu-vertical-accordion-widget-1
    http://muse.adobe.com/exchange-library/tiptop-navigation-menu
    Thanks,
    Sanjit

  • How do I disable the drop down box which appears below the Search Box (which shows previous searches) when I start typing in my search topic

    Hi I would like to know how to disable the drop down box which appears below the search box on the start page when I start to type in my search topic. If for example the first letter I type in is an S then it shows a list of previous searches of sites beginning with the letter S.

    This is stored in the Firefox form history. For details of how to clear form history and prevent Firefox from storing any more form history see https://support.mozilla.com/kb/Form+autocomplete

  • Advice needed on the Drop-down box description.

    There are lots of postings on how to get the drop-down box working and there's even a How-to guide called Dropdown boxes. However, I have a field (defined using the AET tool) which has an Search help assigned, so the drop-down list is automatically displayed for me. Having said that I'm still bemused as to how it works as there's no code in the P and V Getter methods.
    Anyway, that aside, the dropdown box is working fine, as mentioned, but I also have the description field to populate with the description of the value returned by the drop-down box. In my case it's a Department code and associated description.
    Initially, I inserted code in the SET_DEPT method to lookup the description (using a SELECT statement) and place the result in the DEPT_DESC field. However, this method is not being called, I don't think, or at least my break point is not being reached.
    So I'm looking for somewhere to place the code which will be called when the DEPT field changes value, and I can then lookup the description and populate the DEPT_DESC field.. Both the DEPT and DEPT_DESC fields are in the same context node by the way.
    It's a real pity that when you create new fields in the AET tool you can't relate one field to another or somehow use a search help and say that the source is another field and this field will hold the result, or something like that.
    Jason

    Hi,
    It was said that the SET_* method will be called when you press enter on the view to trigger a server round trip.
    For your case, I'd like to suggest you take standard coding for example.
    That is the categorization in service ticket view in IC_AGENT role.
    When select the first category, if the second category only has one value, it will be automatically set. which should be similar to your requirement.
    component view GSMCDDLB/DropDownList
    call stack is
    METHOD SET_FIELDS      CL_GSMCDDLB_DROPDOWNLIST_IMPL=CP
    METHOD EH_ONCATCHANGE  CL_GSMCDDLB_DROPDOWNLIST_IMPL=CP
    METHOD DO_HANDLE_EVENT CL_GSMCDDLB_DROPDOWNLIST_IMPL=CP
    when a value is selected in the first dropdown, an event is triggered, you may debug and find out your event, and make the codings in EH_* method.
    set value for other field is some what simple also, like that in
    METHOD SET_FIELDS      CL_GSMCDDLB_DROPDOWNLIST_IMPL=CP
    CALL METHOD lr_dropdownlist->if_bol_bo_property_access~set_property
    If the first field is not a dropdown, for example a field with F4 help, after select the value from the popup, there will be event SELECT_OBJECT triggered for the view I tested.
    You may put breakpoint in do_handle_event for the controller class and observe what event was triggered.
    Then make the relevant coding.
    Hope could do help!
    Hongyan

Maybe you are looking for

  • Connecting Mac mini to wireless

    We bought an older mac mini that we're trying to connect to our wireless network. It doesn't have an airport card. We have an airport extreme that we've connected to our wireless network, and then plugged the ethernet cable into the mini. We still ca

  • Applescript - how can I count the number of records in a Word data source?

    I have written a script in AppleScript to open Word and then perform a mail merge from a data source and everything is working fine. One thing I want to do but am struggling with is to return the number of records in the mail merge. I am trying thing

  • Unable to declare fields in the subscreen area of the the tabstrip created.

    Hi All, I am doing the screen enhancement for the Tcode ME52N using exit MEREQ001. I have added a screen 0111 in the Function Group XM02. On this subscreen i have created a tabstrip with 2 tabs and created element of the type Subscreen Area in the ta

  • Memory leak within Media / MediaPlayer / MediaView

    Hi, I have a very simple program that plays 3 video one after another in a loop on Windows 7. With visualvm I do not see the heap increasing, but with the Windows Task Manager the memory usage is growing rapidly. After an amount of hours the moviepla

  • Can't reformat using Toshiba recovery disk

    Hi, I'm not sure my question was posted by others or not. Please let me know if someone had posted this. Here's my problem. I had put the recovery CD into the CD-ROM. Then I restart my laptop and press F12 and choose boot from CD-ROM. Then I come to