How to create a MultiSelect dropdown or listbox

hi  experts,
I need to create a multiselect dropdown or Listbox in my Ui component bp_head.Although this is generally achived through table view,but we have only 5 values for a feild ,so it doesnt make any sense to create a table view /new assignment block for that.
I am ok even if we need to do BSP coding,but any suggestion would be of great help.
Please let me know how to achive this.
Regards
Anu

Hi There,
Multi-select drpdown is not possible in WEB UI nor we have list control.
However You can extend the .htm coding by taking the 5 values in internal table and using the HTMLB tag for listbox or dropdown, I guess they support multiselect. Alternatively HTML+ Javascript is also possible However I would not recommend the HTMLB tag or HTML approch as it may not be wise to invest so much time in such a small requirement and CheckBox option is much sensible as you have 5 values only.
Have a look at the page LISTBOX.BSP of application SBSPEXT_HTMLB to see how list box works and you can give it a try in your IDES system whenever possible.
Hope this helps
Thanks & Regards
Suchita

Similar Messages

  • How to create 2/3 dropdown lists

    How to create 2/3 dropdown lists that are linked.  The first one answered drives the answer for the second or thrid dropdown box.
    Also can I wrap text in a dropdown list?
    Thanks in advance.

    This is the scripting I tried to use  in the first dropdown list and it doesn't work, any HELP would be appreciated.
    form1.#subform[0].DropDownList1::exit - (JavaScript, client)
    if(this.rawValue=="a")
    DropDownList2a.presence = "visible";
    DropDownList2b.presence = "hidden";
    DropDownList2c.presence = "hidden";
    else if (this.rawValue == "b")
    DropDownList2a.presence = "hidden";
    DropDownList2b.presence = "visible";
    DropDownList2c.presence = "hidden";
    else if (this.rawValue == "c")
    DropDownList2a.presence = "hidden";
    DropDownList2b.presence = "hidden";
    DropDownList2c.presence = "visible";
    Thanks in advance

  • How to create a dependant dropdown list in JHeadStart

    I have created a JDeveloper application using JHeadStart. I have created a dropdown list that should be dependant on another value in the table.
    So far I have done the following:
    1. Created a new view object in the data model.
    2. Created a bind variable to supply the value to the where clause for the view.
    3. Altered the where clause in the view to use the bind variable.
    4. Created a new domain in JHeadStart using this new view.
    Where I am having problems is how to assign the bind variable the value of another field in the currently displayed form. The current form is in form layout mode.
    I have done this when using table layout mode by doing the following: bindvariable=#{row.field} which works great. The problem is how do I do this in form layout?

    Please ask this in the JHeadstart forum
    Timo

  • How to create an own dropdown function in the ALV toolbar?

    Dear experts,
    I follow the sap.help.com and try to create a dropdow as an own fucntion the the toolbar of an ALV.
    My codes are as following:
    DATA:  lo_dropdown TYPE REF TO CL_SALV_WD_FE_DROPDOWN_BY_IDX,
                lo_dropdown_func  TYPE REF TO CL_SALV_WD_FUNCTION
                lo_value  TYPE REF TO  CL_SALV_WD_CONFIG_TABLE.
    lo_value = ir_interface_controller->get_model( ).
    CREATE OBJECT lo_dropdown EXPORTING texts_elementname = 'DROPDOWN'.
    lo_dropdown_func = lo_value->if_salv_wd_function_settings~create_function( id = 'DROPDOWN' ).
    lo_dropdown_func->set_editor(  lo_dropdown ).
    lo_dropdown->set_enabled.
    I also set an external Context-Mapping to the Context-node FUNCTION_ELEMENTS of ALV-Interfacecontroller.
    But now I get an error message "The ASSERT condition was violated"
    The error position has the following code and comments:
    " Context Path contains no multiple node
         assert 1 = 2
    Could you please tell me, how could I fix this bug?
    Thanks a lot!
    Regards,
    meer

    >** " Context Path contains no multiple node
    From this statement I'm guessing that the context node that the DropDownByIndex editor is bound to isn't a multiple node (1:n or 0:n).  A byIndex gets its allowed values in the drop down from the elements in a context node. Therefore it doesn't make sense to bind a byIndex to a 0:1 or 1:1 context node.

  • How to create a JSP dropdown list in the latest Early release

    Hello:
    this is probably an easy question. I am trying to create a dropdown list in a JSP form from a data control like "employee id". just dragging the data control attribute does not seem to have any effect in showing the drop down list when the JSP page is run.
    What is the missing factor?
    Thanks in advance for the help.

    Please ask this in the JHeadstart forum
    Timo

  • How to create dropdown or checkbox in report painter?

    hi experts,
    I would like to ask on how to create a dropdown / checkbox in my report painter's selection
    screen.
    thanks,

    Hi,
    For check box and list box look at the below example,
    TYPE-POOLS: vrm.
    DATA: w_param TYPE vrm_id,
          it_values TYPE vrm_values,
          wa_value LIKE LINE OF it_values.
    PARAMETERS: p_rec_ty AS LISTBOX VISIBLE LENGTH 10,
                p_check AS CHECKBOX.
    AT SELECTION-SCREEN OUTPUT.
      w_param = 'P_REC_TY'.
      wa_value-key = '1'.
      wa_value-text = 'AAAAA'.
      APPEND wa_value TO it_values. "Add values like this for the list box
      wa_value-key = '2'.
      wa_value-text = 'BBBBB'.
      APPEND wa_value TO it_values.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id     = w_param
          values = it_values.
    START-OF-SELECTION.
      READ TABLE it_values INTO wa_value INDEX p_rec_ty. "Get the value for the particular key
      WRITE: wa_value-text , p_check.
    Regards,
    Maoj Kumar P
    Edited by: Manoj Kumar on Feb 6, 2009 10:54 AM

  • How to create a ListBox in module pool program in 3.1i system ?

    Hi All,
    How to create a ListBox of type module pool program in 3.1i system ?
    when i tried creating, the listbox option is disabled.
    Thanks in advance.
    Edited by: gulab zehra on Aug 20, 2009 1:26 PM

    Hi,
    please go through this...
    LIST BOX                    
          Drop down list box can be created in a dialog screen(SE51) as well as selection screen.
          In screen painter to create a input/output field into list box we use  'L" as a value for dropdown attribute for the i/o field.  In screen painter to determine the type of method that will be used to fill the value list we use the attribute value list. If it is blank, the value list will be filled by the first column of the input help assigned to the screen field. This input help can be defined in the ABAP Dictionary, on screen using SELECT,VALUES screen statements or in event POV (PROCESS ON VALUE-REQUEST ) and the input help that will be passed to the field should consists of 2 columns ,the key column is filled automatically by the system. SAP recommends value list field should be blank.
    or
    The value  can be 'A' meaning that the value list will be filled in the event PBO(PROCESS BEFORE OUTPUT) or before the screen is displayed.In this method we use function module VRM_SET_VALUES to fill the values and pass it to the i/o field. If a function code is attached to the list box the selection of a value triggers a PAI otherwise PAI will not trigger.  LIST BOX in SELECTION SCREEN
        List Box is created in selection screen using PARAMETERS statement with
    AS LISTBOX addition other attributes like VISIBLE LENGTH (width of listbox) can be specified with the declaration. PARAMETERS name AS LISTBOX VISIBLE LENGTH n.
       The function module VRM_SET_VALUES is used to fill the value list associated with a List Box .This FM uses types which are declared in type group VRM. So we should declare TYPE-POOLS VRM before using this FM.
    Some important types declared in the VRM type group are
    VRM_ID
       It refers to the name of the input/output field associated with list box
    VRM_VALUES
      It refers to the internal table consisting of two fields TEXT(80C) and KEY(40)C
    that will be used to create the list values.
    CALL FUNCTION  'VRM_SET_VALUES'
      EXPORTING
          ID                  = name of screen element, it is of TYPE VRM_ID
          VALUES      = internal table containing values, of TYPE VRM_VALUES
    Thanks
    Ashu Singh

  • How to create a dropdown menu with sub buttons that link back to the labels on click.

    im trying to create a dropdown menu buttons that when you rollover to the top central button the button it opens up like a drop down menu would containg two other subsectional buttons. This makes the sub sectional buttons seperate from the main stage making it difficult to simply give them a on click,  sym.play("label") function.
    the buttons work like this in symbols or sections stage/panel/homebutton inside home button is group dev containg another group dev containg the button which I need to link back to a "label" in the /panel/ symbol or section. Thank you very much.

    pdp_1 wrote:
    Hi!
    I would like to create a DVD menu that offers two languages. So the first page gives two options: Language 1 and Language 2. Then depending on which language you choose, you go to a menu that proposes different videos and a photo slideshow.
    Regardless on which language button you click on initially, you get the same content but in different languages.
    I've been looking at Premiere's templates, which I can certainly customize, but I really don't see how to create the double menu. Does anybody have an idea?
    Put the video with the first language on the timeline followed by the video with the second language.  Use chapter markers so you can have each video as a chapter in the menu.
    I use Premiere Pro, so I can't give more specific directions. Perhaps somebody like ATR will chime in.
    Also, I have another question: can I put videos from different projects in the same DVD with Premiere or must all of the videos that go into the DVD be in the same project?
    Thank you very much!!!
    pdp1
    They must be in the same project.

  • How to create a Dropdown in webdynpro

    Hi ,
    I am a beginner in Webdynpro , Java . Request you to plz help me ..
    My requirements -
    1. How to create a dropdownbyindex in a view and populate it with some static values passed to the Context .
    2. Upon selection of a value from the dropdown and clicking on the Submit button , how to save the value?
    Context -
    Node - Season
    Attribute  - Seasonofyear
    Kindly Reply
    Thanks in Advance!!
    Regards
    Smita

    Hi smitha,
    I had checked out.. this is working fine for ur requirement
    public void wdDoInit()
    IPrivateSamView.ISeasonNode snode = wdContext.nodeSeason();
    IPrivateSamView.ISeasonElement sele = snode.createSeasonElement();
    snode.addElement(sele);
    IWDAttributeInfo attributeInfo  = wdContext.nodeseason().getNodeInfo().getAttribute(IPrivateMain.IseasonElement.season);
    ISimpleTypeModifiable sea = attributeInfo.getModifiableSimpleType();
    sea.setFieldLabel("SEASON");
    IModifiableSimpleValueSet valueSet =sea.getSVServices().getModifiableSimpleValueSet();
    valueSet.put("0"," AAA");
    valueSet.put("1","BBB");
    valueSet.put("2","CCC");
    i had created a attribute called copy under the node "season". Now i copied from the season attribute to copy attribute.
    then onaction save
    IModifiableSimpleValueSet rea = wdThis.wdGetContext().getContext().getModifiableTypeOf("season.season").getSVServices().getModifiableSimpleValueSet();
        wdContext.currentSeasonElement().setCopy(rea.getText(wdContext.currentSeasonElement().getSeason()));

  • How to create a dropdown in Web Dynpro

    Hi,
        I just wanted to know how to create a dropdown box.
        Actually I am using a webservice and on the view I have to create a dropdown box with 4 values inside it.Also I have to map dat same field with one of the fields in the webservices request node.Is this possible???

    Hi,
    You can create Dropdown in two ways,
    1. Create a simpleType.(DictionariesLocal dictonarysimpleTypes)
    2. Go to enumeration , and add the data.
    3. Create a context and in the property of the context , choose select and select the local dictionary and select the one which you have created.
    4. You can create a DropDownKey and map to the context.
    Dropdown by Index.
    1.) Take DropDownByIndex UI Element in the Layout Tab.
    2.) Take One ValueNode Named "Employee" in the Context.
    3.) Take One Value Attribute Named "Id" for the Node "Employee".
    4.) Bind "Employee.Id" to the texts Property of the DropDownByIndex.
    5.) Set the "Employee" Node Properties in the Context Tab as
    a.) Cardinality --> 0..n
    b.) Selection --> 1..1
    c.) Singleton --> True
    6.) Write the Below Code in the Implementation Tab.
    IPrivate<View Name>.IEmployeeElement empEle;
    for(int i=0;i<3;i++)
    empEle = wdContext.createEmployeeElement();
    empEle.setId("Emp Id "+i);
    wdContext.nodeEmployee().addElement(empEle);

  • How to Create Listbox in a JSP Application

    Hi.
    I'm new to JDeveloper. Can someone show me how to create a Listbox (that gets it's values from a database table) in a *.jsp form? This listbox is linked to a database table field. I'm not using BC4J nor EJB. I've created a JSP application with ADF using a Model1 (or MVC pattern) architecture -- which I based on the JDeveloper10i tutorial (http://otn.oracle.com/obe/obe9051jdev/ADFmodel1/ADFmodel1.htm). I've tried using render on the field in the view object entity, refresh the Data Control Palette and then drag the table view entity to a *.jsp page as input form. But I can't see the field in the form being displayed as a list box.
    Please help.
    thanks,
    christina

    Hi Shay.
    Thanks for the quick reply. Sorry for the misuderstanding but I have no clue on terminology used in JDeveloper. The "view object" entity I was referring to is the "<TableName>View" view object (e.g. EmpView) under the Model->Application Sources->Mypackage folder where the "<TableName>" entity object file also resides. I think I'm using the Business Component bec. I have this step in the tutorial that I based my application on.
    I have trouble following the tutorial link you gave me (for the ADF Business Component Popup list) bec. when I select the table field in the "Data Control Palette" Panel, the only values I see in the "Drag and Drop As" poplist are "Value","Label","RenderValue" and "Input Render". I can't see the type "Single Select List". Do you why is that?
    thanks,
    christina

  • How to Create a DropDown Box in a Selection Screen.

    Hi,
    I have a question. i.e, How to create a dropdown box in a Selection Screen. Could you please assist me.
    Thanks & Regards
    Sathish Kumar

    hi satish,
    The following can assist u to create a drop down ....
    Drop down list box can be created in a dialog screen(SE51) as well as selection screen.
      The sap list box allows to select a value from the list but we cannot enter our own value in the list box .The value list that will be displayed consists of two
    fields TEXT field of TYPE 80(C) and internal KEY field of TYPE 40(C).
    In screen painter to create a input/output field into list box we use
    'L" as a value for dropdown attribute for the i/o field.
    In screen painter to determine the type of method that will be used to fill the value
    list we use the attribute value list.
    If it is blank  the value list will be filled by the first column of the input help assigned to the screen field.This input help can be defined in the ABAP Dictionary, on screen using SELECT,VALUES screen statements or in event POV (PROCESS ON VALUE-REQUEST ) and the input help that will be passed to the field should consists of 2 columns ,the key column is filled automatically by the system.SAP recommends value list field should be blank.
    or
    The value  can be 'A' meaning that the value list will be filled in the event PBO(PROCESS BEFORE OUTPUT) or before the screen is displayed.In this method we use function module VRM_SET_VALUES to fill the values and pass it to the i/o field.
    If a function code is attached to the list box the selection of a value triggers a PAI
    otherwise PAI will not trigger.
    Example
    Dropdown list boxes
    REPORT DEMO_DYNPRO_DROPDOWN_LISTBOX.
    TYPE-POOLS VRM.
    DATA: NAME  TYPE VRM_ID,
          LIST  TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST.
    DATA: WA_SPFLI TYPE SPFLI,
          OK_CODE LIKE SY-UCOMM,
          SAVE_OK LIKE SY-UCOMM.
    TABLES DEMOF4HELP.
    NAME = 'DEMOF4HELP-CONNID'.
    CALL SCREEN 100.
    MODULE CANCEL INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE INIT_LISTBOX OUTPUT.
      CLEAR DEMOF4HELP-CONNID.
      SELECT  CONNID CITYFROM CITYTO DEPTIME
        FROM  SPFLI
        INTO  CORRESPONDING FIELDS OF WA_SPFLI
       WHERE  CARRID = DEMOF4HELP-CARRIER2.
        VALUE-KEY  = WA_SPFLI-CONNID.
        WRITE WA_SPFLI-DEPTIME TO VALUE-TEXT
                               USING EDIT MASK '__:__:__'.
        CONCATENATE VALUE-TEXT
                    WA_SPFLI-CITYFROM
                    WA_SPFLI-CITYTO
                    INTO VALUE-TEXT SEPARATED BY SPACE.
        APPEND VALUE TO LIST.
      ENDSELECT.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                ID              = NAME
                VALUES          = LIST.
    ENDMODULE.
    MODULE USER_COMMAND_100.
      SAVE_OK = OK_CODE.
      CLEAR OK_CODE.
      IF SAVE_OK = 'CARRIER'
         AND NOT DEMOF4HELP-CARRIER2 IS INITIAL.
        LEAVE TO SCREEN 200.
      ELSE.
        SET SCREEN 100.
      ENDIF.
    ENDMODULE.
    MODULE USER_COMMAND_200.
      SAVE_OK = OK_CODE.
      CLEAR OK_CODE.
      IF SAVE_OK = 'SELECTED'.
        MESSAGE I888(BCTRAIN) WITH TEXT-001 DEMOF4HELP-CARRIER2
                                            DEMOF4HELP-CONNID.
      ENDIF.
    ENDMODULE.
    Reward if useful.
    Thank you,
    Regards.

  • How to create dropdown box, radio button,check box in wad

    Hi,
    How to create dropdown box, radio button,check box in wad.
    Thanks,
    cheta.

    Cheta,
    This are all standard Web Items in the WAD. Drag them onto your template and then make the changes you need to them in their Properties.
    Regards
    Gill

  • How to create and place two dropdowns in JSP page

    How do I create two dropdowns side by side in a JSP page? Also, hw do I place them side by side so that there's no overlapping?

    How do I create two dropdowns side by side in a JSP page?
    Also, hw do I place them side by side so that there's no overlapping?
    Also, how do I populate these dropdowns from the database and
    include them both in the final page?None of those questions has anything to do with Javascript (just like this forum has nothing to do with Javascript).
    If you want 2 select fields side by side, put them side by side in the HTML code or put them in adjacent table cells if the area they are in is forcing the second to the next line. This is all an HTML issue, nothing to do with JSP.
    For the last question, you get the database data and you write the select options dynamically based on that. Get a result set, loop thru it.

  • How to create a dropdown box in free hand sql??

    Post Author: nalinipers
    CA Forum: Desktop Intelligence Reporting
    Hi every body,I have created a report by using free hand sql. My client wants to create a drop down box in that report.I do not know how to create the drop down box as i know how to create prompts in free hand sql.can you please help me to create the drop down box by using free hand sql. Periyasamy.

    Post Author: jsanzone
    CA Forum: Desktop Intelligence Reporting
    Hi Periyasamy,
    A drop down box is the same as a prompt that you would build when working in Designer.  If you already have the prompt in mind that you want to use and it exists in your universe, then the easiest way to make it work in free hand SQL is to first build your query in the normal fashion that you would for any other report and include that prompt.  Once you've got the objects and filters pretty much set, then capture the SQL, and modify it now as free hand SQL for your own situation.  You will notice that there may be some "@prompt" stuff scattered in your SQL, which will now run as a drop down box when you go to run your free hand SQL.  You can take note of how things were constructed and the next time you have to build your own free hand SQL you can either do it again the way just described, or build it totally on your own.

Maybe you are looking for

  • Edit a field in ALV tree in a subscreen of a module pool

    Hi I want to make a field editable in the ALV tree based on some condtions in a subscreen of a module pool.  I used the edit = 'X' field in the fieldcatalog still it  is showing the field as display and not edit. Please help me to get the field as ed

  • Will OSX Tiger on a Quicksilver boot from a 300 g HD

    I have a few issues going and for background you can go to this post http://discussions.apple.com/thread.jspa?threadID=278373&tstart=0 But I have 4 internal HDs. And my Powermac Dual 800 will only boot from either the CD or the Tiger OS on my 80 gig

  • Authorisation Object: for database table

    Hi . I have a custom Z table which contains data for different plants.We have craeted a maintenence generator so that user can change data. Now I want to  user should able to change data a particulat plant. i already have authority object 'ZPLANT' wi

  • HT4859 How to get back my all application from iTunes to my new iOS6

    Hi, I have just update my iphone 4 ios5 to ios6, but in that I dont know I am not able to see any of old applications, and I am not able to see my backup, could anybody tell me how to get it back to my new ios6 all those applications and musics etc,

  • Apostrophes dropped when flattening pdf's?

    I'm using OS X 10.4.11, InDesign 4 and have tried on both Acrobat 8 and 9. I'll make a page for a newspaper my company publishes in InDesign 4 and export it as a press quality PDF. Because of our CTP system to go to press the pages must be flattened.