How to create drop-down list in Portal??

My case: I have three locations A B C(in the database) for example.
I would like to use drop-down list to show list of All, A, B, and C.
After I choose any of them, for example A, it must show all the data of that particular location and if it is All it must show data of all three locations.
By using Simple Parameter, it's just a static one but I prefer the dynamic one that get directly from the database. And I also got a problem of showing all locations by choosing All in my dropdown menu
Any idea??!?
Thank you so much.

You could try a dynamic page:<br>
<br>
&LT;html&GT;<br>
&LT;body&GT;<br>
<br>
&LT;form action="http://host.port/pls/portal/etc." method="get"&GT;<br>
&LT;select name="location"&GT;<br>
&LT;ORACLE&GT;<br>
for rec in (select loc_code, loc_name from locations union select '-1' id, 'All' loc_name from dual)<br>
loop<br>
htp.p('&LT;option value="' || rec.loc_code || '"&GT;' || rec.loc_name || '&LT;/option&GT;');<br>
end loop;<br>
&LT;ORACLE&GT;<br>
&LT;/select&GT;<br>
&LT;/form&GT;<br>
<br>
&LT;/body&GT;<br>
&LT;/html&GT;<br>
<br>
The form should then call your page with a &location=loc_code in the url. Using a page parameter and a bound variable you can access that. You may need to use a decode in your sql to deal with the All scenario:<br>
<br>
select ..... where loc_code like decode(:location, -1, loc_code, :location)<br>
<br>
Hope this helps.<br>
<br>
Patrick

Similar Messages

  • How To Create Drop Down List?

    Hi All,
    I Want to Create DropDown list For Company Code.
    I Gave Control Property As 'DropDownList'
    In Entry List, I Gave System Object And Bapi.
    After It Displays Input And Output.
    What Value I Assign to Company Code
    in Both Input And Output Ports.
    This is Very Urgent,please Give Steps For Quick Understanding.
    Thanks & regards
    SubbaRao Chinta.

    subbarao
    1- right click on your drop down list.
    2- choose properties.
    3- goto the entry list tabl
    4- select dynamic entry list.
    5- choose your system and search for the BAPI --> BAPI_COMPANYCODE_GETLIST.
    No input is required for this bapi
    6- for the output choose COMPANYCODE_LIST
    VALUE --> @COMP_CODE
    TEXT --> @COMP_NAME
    Regards,
    Sami
    Edited by: Sami Ahmed on Mar 24, 2008 10:54 AM

  • Creating Drop Down Lists in J2ME

    Hello all,
    I'm not an experienced programmer, and I fear that the rumours of posting a crie for help only to be set upon by hundreds of blood thirsty 'newbe' hunters may be true, but here goes none the less.
    Would love to know if any kind soul has hints on how to create drop down lists in J2ME, for selecting a option which would be able to relate to a database (Table).
    At the moment I'm using straight forward TextField entries, which is hardly convenient! :)
    Any help/comments/sweets appreciated!
    Cam

    Hi Cameron,
    Only MIDP 2.0 support drop down list. So if you currently coding in the MIDP 2.0 environment, here are the codings.
    String arr = new String[]{"Happy","Sad"};
    ChoiceGroup ch = new ChoiceGroup("Select Choice:",ChoiceGroup.POPUP,arr,null);
    append(ch);
    Hope this codes is helpful to you.

  • How to create drop down option in service manager 2012 incident portal

    Hii,,
    Please assist how to create drop down option in service manager 2012 SP1 default incident portal. We would like to provide the drop down option in "Please enter the title for the Issue" to our users.
    Regards, Syed Fahad Ali

    As was already referenced, you could use a Simple List for the prompt, however if you are referring to the default General Incident that is available out-of-the-box, you might be limited in what you can modify. 
    I did some work for a client, that wanted to have a list and other options for the General Incident through the Portal. So, I ended up having to create a custom General Incident instead of using the default one, which will then allow you to add any type
    of prompts, and configure them as you want (i.e. with a simple list). 

  • How to create Drop down menu in the selection screen

    Hi all,
    How to create Drop down menu in the selection screen.
    Fast answer will be highly rewarded
    Regards
    Bikas

    hi ,
    TYPE-POOLS : vrm.
    TABLES:vbak,vbap.
    DATA : v(80) TYPE c.
    DATA: wa_vbak TYPE vbak,
          it_vbak TYPE vbak OCCURS 0 WITH HEADER LINE,
          wa_vbap TYPE vbap,
          it_vbap TYPE vbap OCCURS 0 WITH HEADER LINE.
      DATA: l_name TYPE vrm_id,
            li_list TYPE vrm_values ,
            v_count  TYPE i,
            l_value LIKE LINE OF li_list.
    PARAMETERS: p_test(20) AS LISTBOX VISIBLE LENGTH 60 MODIF ID DAT.
    INITIALIZATION.
    AT SELECTION-SCREEN OUTPUT.
      PERFORM get_data.
      LOOP AT it_vbak.
        l_value-key =  it_vbak-vbeln .
        l_value-text = it_vbak-vbeln .
        APPEND l_value TO li_list.
      ENDLOOP.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = 'P_TEST'
          values          = li_list
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
    AT SELECTION-SCREEN ON P_TEST.
      clear : li_list , li_list[].
      SELECT vbeln
             matnr
             meins
             FROM vbap
             INTO CORRESPONDING FIELDS OF TABLE it_vbap
             WHERE vbeln = p_test.
    START-OF-SELECTION.
      SELECT vbeln
             matnr
             meins
             FROM vbap
             INTO CORRESPONDING FIELDS OF TABLE it_vbap
             WHERE vbeln = p_test.
      LOOP AT it_vbap.
        WRITE :/ it_vbap-vbeln, it_vbap-matnr,it_vbap-meins.
      ENDLOOP.
    *&      Form  get_Data
          text
    -->  p1        text
    <--  p2        text
    FORM get_data .
      SELECT  vbeln
              FROM vbak
              INTO  CORRESPONDING FIELDS OF TABLE it_vbak.
    ENDFORM.                    " get_Data
    regards,
    venkat.

  • How To Create Drop Down Menu With Tab

    hi
    How To create Drop Down Menu with tab in Header of application like website Horizontal Dropdown Menu In html.
    Thanks
    Manoj
    Edited by: Manoj Kaushik on Dec 30, 2009 4:16 AM

    Try the Apex forum {forum:id=137} someone there may have an answer.
    Which version, that could be important, XE out-of-the-box has apex 2.1 if it hasn't been upgraded to 3.x

  • How to assign drop down list in XML form to properties

    Hi ALL,
    When i was creating <b>Edit form</b> in XML Forms Builder,for <b>Bulletin Board</b> Application, i had to assign two drop down list boxes to properties created under Content Management Configuration > Global Services > Property Metadata. Can any one help me how to ASSIGN it or provide any related documents.
    Suitable replies will be rewarded, for sure.
    Regards,
    Shankar

    Hi Shankar
    Please have a look at this document, especially the part about the cookbook. It explains how to add properties in a dropdown list to your XML form.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ee639033-0801-0010-0883-b2c76b18583a
    Good Luck!
    Barry

  • How to populate drop down list in infopath 2010 with form library column

    I created one column of choice type and have put 3 values on this column in form library in site.
    and one drop down list in form library at infopath 2010 but how to populate the dropdown in infopath populate with this column.

    Hi John, you should either add the values to your InfoPath dropdown manually or create a new list in SharePoint with the values and make a connection to that list to populate your dropdown.
    cameron rautmann

  • Acrobat 9 pro designer -- how to populate drop down list

    I down loaded the acrobat 9 professional trial version and have been trying to see how I can create a drop down list where I can input 500 names. I created the drop down list but the problem is the following. To enter the names in the drop down list I have to type each one and hit enter then enter in the next. I have about 500 names to enter and doing one at at time is not efficient. I tried to copy all the names and paste it into the drop down list but it will only paste the first name.
    Does anyone know how I can enter 500 names all at once into a drop down list box?
    I need a simple solution that can be made without some complicated code.
    please email me [email protected]
    thanks
    Will

    thanks you for the response. I am not tech savy when it comes to javascript or form calc any chance you can give more details

  • How to put drop down list

    Hi All,
    I have added Z_field in Va01 Transaction. I want to put drop down list for that .
    Can you please suggest me how to do that.
    Regards
    Radha

    Hi Radha Konjeti,
    To have a dropdownlist/listbox in your report, use this demo code for creating a listbox with a set of values in it and select a single value for processing:-
    REPORT  Y_MOVIE MESSAGE-ID ZMSG.
    TABLES : Y_MOVIES.
    TYPE-POOLS: VRM.
    TYPES : BEGIN OF MOVIE,
            YR LIKE Y_MOVIES-YR,
            CATEGORY LIKE Y_MOVIES-CATEGORY,
            WINNER LIKE Y_MOVIES-WINNER,
            NOTES LIKE Y_MOVIES-NOTES,
            END OF MOVIE.
    DATA: NAME TYPE VRM_ID,
          LIST TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST,
          MOVIETAB TYPE STANDARD TABLE OF MOVIE INITIAL SIZE 10 WITH HEADER LINE.
    PARAMETERS: CATEGORY(10) AS LISTBOX VISIBLE LENGTH 10.
    AT SELECTION-SCREEN.
      IF CATEGORY EQ ''.
        MESSAGE E006.
      ENDIF.
    AT SELECTION-SCREEN OUTPUT.
      NAME = 'CATEGORY'.
      VALUE-KEY = 'PIC'.
      VALUE-TEXT = 'PIC'.
      APPEND VALUE TO LIST.
      VALUE-KEY = 'MAL'.
      VALUE-TEXT = 'MAL'.
      APPEND VALUE TO LIST.
      VALUE-KEY = 'FEM'.
      VALUE-TEXT = 'FEM'.
      APPEND VALUE TO LIST.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          ID     = NAME
          VALUES = LIST.
    START-OF-SELECTION.
      WRITE : / 'Category Selected :', CATEGORY.
      ULINE.
      SELECT
      YR
      CATEGORY
      WINNER
      NOTES
      FROM Y_MOVIES INTO TABLE MOVIETAB
      WHERE CATEGORY = CATEGORY.
    END-OF-SELECTION.
      WRITE : /1 'Year', 6 'Category', 16 'Winner', 50 'Notes'.
      ULINE.
      LOOP AT MOVIETAB.
        WRITE : /1 MOVIETAB-YR, 8 MOVIETAB-CATEGORY, 16 MOVIETAB-WINNER, 50 MOVIETAB-NOTES.
        ULINE.
      ENDLOOP.
      IF SY-SUBRC <> 0.
        MESSAGE I005.
      ENDIF.
    Hope this solves your problem.
    Thanks & Regards.
    Tarun Gambhir.

  • How to add drop down list in toolbar?

    Hi SAP CRM Experts,
    After save the personalization of the view, there will be a drop down list appeared in the toolbar in the view, the drop value contain the personalization you just saved and the standard one.
    Could someone let me know how to enhance this functionality to create not only the view configuration but also customizing field drop down list?
    That means we want drop down list in toolbar which contain several options also it's value could pass to view controller.
    Thanks in advance...
    Tony

    Could someone kindly help?

  • How to modify drop down list values of a screen field in UDM_DISPUTE?

    Hi All,
    I have a requirement wherein i need to modify the drop down list for a screen field depending on the value of the other screen field in transaction UDM_DISPUTE. 
    Please suggest how this can be achived.
    Any BADI 's or any other approach is available?
    Thanks in advance,
    Srilakshmi.

    Hi,
    At what time do you want to modify the drop down list, while creating or after creating the dispute case. There are some BADI's where we can change the attribute drop down list values.
    Thanks,
    Sunil

  • How to create drop down div

    Hello all,
    I have no idea how to describe what I am asking besides the term "drop down div".  Though I am not sure if that is the correct term. 
    I have been tasked to create a quiz similar to the one linked below. 
    Bioenergy Quiz
    The two elements of this quiz that have me stumped are below.  Any help you can provide will be greatly appreciated.  Thank you. 
    1) How to set up the drop down div functionality?
         So when the "Start Quiz" button is clicked, the content for the Question 1 is added to the bottom of the content for the Bioenergy Quiz title.
    2) How is the focus changed to the new content?
         How is the functionality set up to go down to the bottom of the page to show the new content?

    Hi Charles,
    Here is a case. A drop down list can be created using the select tag.
    You can open a new file and copy and paste this code.
    1) creationComplete panel:
    var optionTags = "<option>Title</option><option value='case1'>first Case</option><option value=case2>second Case</option><option value='case3'>third Case</option>";
    sym.$( "<select id='options' title='Please one choice'>"+optionTags+"</select>" ).appendTo( "#Stage" );
    sym.$("#options").css({ "cursor":"pointer", "position":"absolute", "top":"20px", "left":"20px","width":"100px"});
    2) compositionReady panel:
    var userChoice = function(){
      switch( sym.$("#options").val() ){
      case "case1":
      //add code here
      console.log("case1 selected");
      break;
      case "case2":
      //add code here
      console.log("case2 selected");
      break;
      case "case3":
      //add code here
      console.log("case3 selected");
      break;
      default:
      //add code here
      } // switch
    } // userChoice  function
    sym.$("#options").change( userChoice );
    It returns using Safari 8:
    Note: jQuery is required.

  • How to get drop down list  display values

    I have binded my drop down list with tabledataprovider. In the value field i have given customer id and in display field i have given customer name.
    I have reatrived cust id but
    how to reatrieve customer name.

    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=56515
    Also, if your dropdown list is bound to a data provider you can use something like this:
    RowKey rowkey = tripDataProvider.findFirst("PERSON.PERSONID", dropDown1.getSelected());
    String displayValue = (String)tripDataProvider.getValue("PERSON.NAME", rowkey);

  • How to populate drop down list in infopath 2010 with form Active Directory resources.

    I want to populate drop down list in infopath 2010 with Active directory resources.
    Kindly let me know how to do this.

    Actually I posted an alternative approach, whoops. This is the Web service way, but both will work;
    http://blog.mangroveweb.com/pre-populating-an-infopath-from-with-mysql-data-using-a-net-web-service/using-sharepoints-getuserprofilebyname-web-service-to-retrieve-ad-account-information/
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | YouTube: http://www.youtube.com/user/JamieMcAllisterMVP

Maybe you are looking for

  • Application shortcut causes reinstall/repair of application....

    I'm working with an application (win 7, vb.net) and I'm trying to work around some odd behavior of my application shortcut. Here is a summary of the problem: My app installs and places a shortcut on the Desktop. I go into my application's directory a

  • Dynamically changing row color in an ADF table?

    Hi, I am using Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660. Can anyone please let me know the code for dynamically changing the row color of an ADF table? Thanks, Vik

  • Unable To Establish A Wireless Connection

    Hi, Currently, I am unable to connect to my Linksys router wirelessly. If I plug my computer directly into the router everything works fine but for some reason I can't connect to it any other way. I've tried reseting the router's setting, deleting th

  • Mac iOS Mail Access from Outside USA

    In the last few months, i have traveled to Canada, Paris,and brazil. When connected to any wifi network, i cannot send nor receive my Apple Mail. Gmail works fine, but not my preferred service. Any clues? I used to have no issues.

  • HT204053 How can I authorize my computer?

    I would like to authorize my new computer to be used for 4 different apple ID. how can I do it?