Loading second dropdown based on first dropdown Jdev 11.5

Hi All,
I have a requirement of loading the second dropdown on selecting first dropdown.
Ex:- conside i have state dropdown, when i select and state it should load city(dropdown) of the states.
I tried using valuchange listerner with partial trigger it didnt work. Any help would be of great help.
Please let me know.
Thanks,
Nitin
Edited by: 811407 on 21-Dec-2011 02:59
Edited by: 811407 on 21-Dec-2011 02:59

http://www.youtube.com/watch?v=nXwL2_RP7AQ.
you eg: goes here.
http://www.youtube.com/watch?v=94PrwXWDEjI
http://andrejusb.blogspot.com/2008/12/cascading-lovs-in-oracle-adf-11g-update.html

Similar Messages

  • Population of a dropdown based on another dropdown selection

    Hi,
    I'm trying to develop a form in which a secondary dropdown is populated based on a selection from a primary dropdown.
    The idea behind this is as follows
    The first dropdown is bound to a database.
    From this dropdown a user would select a project.
    This selection would form part of a 'WHERE' clause in a SQL query that would select a list of users involved in the project.
    This list of users would then be used to populate the second dropdown.
    By selecting a user from the second dropdown the database would be queried again and the result used to populate the rest of the form.
    I've seen examples where a single dropdown is used to populate a form but I've been unable to find any code examples in which the result of one dropdown is used to populate a second.
    Can anyone help? Many thanks in advance.

    You can get pretty close out of the box using some configuration manager applet voodoo
    1)First off create a Table that will contain the options for your list. Create the columns e.g. label and id and then also create a column called dSecurityGroup
    2)Add a view based on the table you just created, choose the Security tab and select "Use standard document security"
    3)Add some values to your view - make sure that you populate the dSecurityGroup column with real values of security groups
    4)Once it is all published, have a look at the checkin and search screens. You should find that UCM will evaluate the options in the same way it would documents - based on the dSecurityGroup value you applied to the row - e.g. you will see an option on the search screen if you have at least R permissions, you will see an option on a checkin screen if you have at least RW permission
    Try it out :-)

  • Second LOV based on First LOV in Oracle APEX tabular Form

    Hi,
    I had created a tabular form in which I am having two LOV's. This form is based on a query.
    I had created a javascript function which internally calls AJAX and populates the second LOV based on the value selected in first LOV when onchange.
    But the issue is, when the user recalls this APEX page to view the details or edit the details, the second LOV shows all the values instead of showing only the values related to first LOV.
    In the second LOV query I am trying to write the below query.
    select function_name fn
    ,function_code_id fci
    from catering_function_codes
    where function_type_id = NVL(#FUNCTION_TYPE_ID#,function_type_id)
    order by to_number(function_code_id)
    in which #FUNCTION_TYPE_ID# is the value of first LOV. But I am getting the below error.
    report error:
    ORA-20001: Error fetching column value: ORA-06550: line 1, column 187:
    PL/SQL: ORA-00911: invalid character
    ORA-06550: line 1, column 7:
    PL/SQL: SQL Statement ignored
    How can you refer to the Second LOV the value of First LOV in a report based tabular form?
    Kindly let me know if you do not understand the issue.
    Please help me in this issue.
    Thank you
    Regards
    Dev

    Hi Roel,
    Thank you for the quick reply.
    I used the query as given by you. This time it is not giving any error but showing all the values in the second LOV irrespective of what ever value is present in the first LOV
    This is an apex tabular form which is generated by apex based on a query. The controls will be dynamically generated by APEX for each row. How can we hard code the control name to :P99_FUNCTION_TYPE_ID?
    Please help me in this issue. Thank you
    Regards
    Dev

  • Displaying second parameter based on first parameter

    Dear Developers,
    In the parameter form or reports, I want to pass value selected
    in the first parameter to the second parameter
    ie. based on the first parameter selected, I would like the
    query written in the second parameter for
    displaying list to display only those values that are associated
    with the first parameter.
    How can I do this?
    I do not want to call report from form with preselected
    parameters.
    Awaiting speedy reply
    Gaurav

    You can't do this in Reports. You need to do it in Forms

  • How to refresh values in second messagechoice based on first messagechoice?

    Hi All,
    We had a requirement where we need to populate values into second messagechoice item based on the value selected in the first messagechoice item.
    We need to take the value (first messagechoice) as output parameter and need to pass as input parameter to the second messagechoice VO.
    Can any please help me how to achieve the above.
    Regards,
    Sundeep

    Hi Sumit,
    Thanks for the reponse. I will go for the one you suggested.
    Can you please go through my new thread if you have time which is a very urgent requirement for me.
    Thread subject: "How to change VO's dynamically for a item for each row in advanced table?"
    Regards,
    Sundeep.

  • Can the license manager load the computer-based license first, instead of the user-based license?

    We have several machines in the lab with computer-based licenses on them and a number of techs with user-based licenses. When a tech needs to occassionally sign in as themselves, instead of the generic service account, the license manager attaches the machine to their user account. Not a problem until they try logging in to LabVIEW from their own PC again and they get the 14 day trial period notice.
    Is there a way to have the license manager look for the computer license first instead of the user license?
    Thanks for any help.
    Joe
    Solved!
    Go to Solution.

    Hi Joe,
    In the license file hosted on the license server, you may be able to manually change the "sort" tag in the file to modify the order in which VLM checks out licenses. Licenses are checked out in descending order (2, then 3, then 4, etc.). Typically, your license file is set up in a default order, but in special cases such as this, it may be beneficial to alter the order. To do this, follow these steps:
    1. Open the license file with a text editor (such as Notepad)
    2. Search for the "sort" tag. For instance, the "VLM_Core" entry will have a sort tag value will appear as "sort=first". Do not alter this value. VLM_Core should always be first.
    3. Change the sort tag value for the named-computer license to a value that is lower than the sort tag value for the named-user license. (e.g. "sort=2" for named-computer and "sort=3" for named-user). 
    4. Save the file and reinstall the license. 
    Let me know if you have any questions!
    Rick C.

  • Load second external swf after first is done?

    Hello,
    I have a main movie with a blank mc to hold my 2 external
    swf's. I load the first swf, things are fine. When it ends I'd like
    to load the 2nd swf into the same blank mc. Anybody have a solution
    or point me to a good tutorial?
    Thanks in advance.
    Pharaoh

    Here is the code:
    //this section is a preloader for the external swf
    var mcl:MovieClipLoader = new MovieClipLoader();
    var mclL:Object = new Object();
    mclL.onLoadProgress = function(target,loaded,total) {
    loader.percent.text = Math.round((loaded/total) * 100) +
    mclL.onLoadInit = function() {
    loader._visible = false;
    loader.percent.text = "";
    mcl.addListener(mclL);
    //the line below loads and plays the swf
    mcl.loadClip("wtts_spotlight.swf",holder);
    The way I have it working now is that I have actionscript at
    the end of the first swf telling the main movie to load the next
    swf in the blank mc:
    stop();
    _root.holder.loadMovie("NewZoo_Spotlight.swf", 1);
    I then repeat this code in the last frame of the
    "NewZoo_Spotlight.swf" but tell it to load the first swf again,
    thus creating the loop:
    stop();
    _root.holder.loadMovie("wtts_spotlight.swf", 1);
    This all works well but there has to be a way to do it so all
    actionscript is contained in frame one of the main movie, right?
    Thanks.

  • CRM 7.0 WebUI:  Dropdown for second field is based on first field value

    Hi,
    I created an all-custom search/result component, now having one challenge - requirement is - on result list, when in change mode, the second field should have a dropdown list which is filled based on the first field value, where user can pick one.  I searched this forum and SAP docs, so far I haven't found a solution. Has anyone done this? or have you seen any SAP standard screens having this kind of function?
    Thanks.
    Steven

    Hi Steven,
    You will rarely see a result list component in change mode.
    Anyhow, to fulfill your requirement, you have to trigger a round trip for the first field when a value is selected.
    You can do this by specifying a dummy event in GET_P method.
    The GET_V method of the second field will trigger for this round trip and you can trigger the values.
    Regards,
    Masood Imrani S.

  • Populating values in dropdown based on values selected in second dropdown.

    Hi,
    I  have two listboxes on the screen. Based on value chosen in first dropdown, I want to populate the values to be selected in second dropdown. How can i achieve this? I would be glad if anyone can help me out with this requirement.
    Thanks,
    Ameet

    <font color=blue>Hi,
    <li> Place 2 input fields on screen.
    <li>Set Listbox property as it is shown in the below link.
         <a href="http://2.bp.blogspot.com/_O5f8iAlgdNQ/SmPSPnRa0tI/AAAAAAAAFCQ/wW_URP-ld6o/s1600-h/drop_down-770536.JPG" target="_new">link to dropdown setting</a>
    <li>Set function code to first dropdown box to trigger event when you select value from first dropdown box. So that second one is changed.
    <li>Declare variable like below in TOP include of the module pool program.
    <pre>DATA: g_drop_1 TYPE char10,
          g_drop_2 TYPE char10,
          ucomm    TYPE sy-ucomm.
    TYPE-POOLS vrm.
    DATA: name  TYPE vrm_id,
          list  TYPE vrm_values,
          value LIKE LINE OF list.</pre>
    <li> Use screen flow logic of the screen like below
    <pre>"PROCESS BEFORE OUTPUT.
    PROCESS BEFORE OUTPUT.
    field g_drop_1 MODULE drop_down_1.
    field g_drop_2 MODULE drop_down_2.
    "PROCESS AFTER INPUT.
    PROCESS AFTER INPUT.
    field g_drop_1.
    field g_drop_2.</pre>
    <li>Corresponding code for two drop down boxes.
    <pre>&----
    *&      Module  DROP_DOWN_1  OUTPUT
    MODULE drop_down_1 OUTPUT.
      CLEAR: list[],g_drop_2.
      name = 'G_DROP_1'.
      value-key  = '1'.
      value-text = 'value_1'.
      APPEND value TO list.
      CLEAR  value.
      value-key  = '2'.
      value-text = 'value_2'.
      APPEND value TO list.
      CLEAR  value.
      value-key  = '3'.
      value-text = 'value_3'.
      APPEND value TO list.
      CLEAR  value.
      value-key  = '4'.
      value-text = 'value_4'.
      APPEND value TO list.
      CLEAR  value.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id     = name
          values = list.
    ENDMODULE.                 " DROP_DOWN_1  OUTPUT
    *&      Module  DROP_DOWN_2  OUTPUT
    MODULE drop_down_2 OUTPUT.
      CLEAR list[].
      name = 'G_DROP_2'.
      CASE g_drop_1.
        WHEN 1 OR 2.
          value-key  = '1'.
          value-text = 'text1'.
          APPEND value TO list.
          CLEAR  value.
          value-key  = '2'.
          value-text = 'text2'.
          APPEND value TO list.
          CLEAR  value.
        WHEN 3 OR 4.
          value-key  = '3'.
          value-text = 'text3'.
          APPEND value TO list.
          CLEAR  value.
          value-key  = '4'.
          value-text = 'text4'.
          APPEND value TO list.
          CLEAR  value.
      ENDCASE.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id     = name
          values = list.
    ENDMODULE.                 " DROP_DOWN_2  OUTPUT</pre>
    Thanks
    Venkat.O</font>

  • CRM 7.0 WebUI:  Second field searchhelp based on first field value

    Hi,
    I created an all-custom search/result component, all other things are working correctly, except one - on result list, when in change mode, the second field should have a dropdown list which is filled based on the first field value, user can pick one.  I searched this forum and SAP docs, so far I haven't found a solution.  Has anyone done this?  or have you seen any SAP standard screens having this kind of function?
    Thanks.
    Steven
    Edited by: Steven Lee on Apr 23, 2010 11:11 AM
    Edited by: Steven Lee on Apr 23, 2010 11:11 AM

    Hi Steven,
    1. Declare a Global Drop Down table as an attribute in your implementation class.
    2. Create an Event when you select a drop down value for the first field.
    3. In this event handler, build the global drop down table.
    4. In the get_v method of your second field, fill the returning parameter of dropdown values from the values in your global dropdown table you just filled in the Event Handler method.
    I have used this successfully. I hope it works for you too.
    Please let me know if you have questions.
    Thanks
    Vishal

  • How to display data in tableview based on a dropdown filter selection

    Hi All,
    I have implemented a flow logic based BSP page to display the SFLIGHTS table when I open this page it displays all records in the table SFLIGHTS. I would like the set a drop down box filter on CARRID and CONNIND. Only once the user selects the CARRID and CONNID and presses on display buttont the data for that selection in the drop down box should be displayed.
    Can you kindly share the code how I can put 2 drop down boxes and make the data retrieval on the page occur based on the dropdown box selection. The layout page is  as below. Appreciate if you could kindly share the code to implement this.
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page>
        <htmlb:form>
          <htmlb:tableView id              = "tv1"
                           visibleRowCount = "10"
                           selectionMode   = "lineEdit"
                           table           = "<%= flights %>"
                           filter = "SERVER"
                           sort = "server"
                           iterator        = "<%= iterator %>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Thanks
    Karen

    Yeh Karen,
    What  i have written is that only.. ok fine i will tell you in detail ok...
    first what you do is if ur wrking with MVC concept in *do request * add the code for the dropdown as
    select single connid from sflights into wa_sflights.
    this code will give you the coniid  in the dropdown ok
    if you not wrking with MVC ,if its just a Flow with page login then write the same code in Oninitialization
    now if you select the connid from the dropdown and you want to display the details of the that connid in the tableview .. rite?
    then in do handle event write the code when i have written before  if itsnot MVC add in oninputProcessing
    DATA: HTMLB_EVENT TYPE REF TO CL_HTMLB_EVENT,
    W_ID TYPE STRING,
    W_VARIABLE TYPE STRING,
    tvdata TYPE REF TO CL_HTMLB_TABLEVIEW.
    IF HTMLB_EVENT IS NOT INITIAL.
    W_ID = HTMLB_EVENT->ID.
    IF W_ID EQ 'dd_project_name' . ------>this is the name of the dropdown
        DATA ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST = RUNTIME->SERVER->REQUEST
                             NAME = 'dropdownListBox'
                             ID = 'dd_project_name' ).
        IF DATA IS NOT INITIAL.
          W_variable = DATA->SELECTION.
        ENDIF.
    if w_variable is not initial.
    select * from sflights into table lt_flights where connid eq w_variable.
    endif.
    now in the view you should
    <htmlb:tableView id = "tv1"
    visibleRowCount = "10"
    selectionMode = "lineEdit"
    table = "<%= lt_flights %>"
    filter = "SERVER"
    sort = "server" />
    Hope it works fine

  • Restricting values of a dropdown based on user roles

    Hi,
    Is it possible to restrict the values of a custom metadata dropdown based on the user roles (assuming only 1 role is assigned to each user)? Say, based on the role assigned to a user, he/she should see only 3-4 values out of 10 values in a dropdown on the checkin page. Please suggest.
    Thanks.

    You can get pretty close out of the box using some configuration manager applet voodoo
    1)First off create a Table that will contain the options for your list. Create the columns e.g. label and id and then also create a column called dSecurityGroup
    2)Add a view based on the table you just created, choose the Security tab and select "Use standard document security"
    3)Add some values to your view - make sure that you populate the dSecurityGroup column with real values of security groups
    4)Once it is all published, have a look at the checkin and search screens. You should find that UCM will evaluate the options in the same way it would documents - based on the dSecurityGroup value you applied to the row - e.g. you will see an option on the search screen if you have at least R permissions, you will see an option on a checkin screen if you have at least RW permission
    Try it out :-)

  • Pre-Populate Dropdown based on information selected in another dropdown

    Hello,
    I hope this make since. I am working on building a form using Adobe Livecycle Designer. I have a dropdown list in multiple fields on the same form that will have the same information selected. I want the additional fields to automatically populate the information a user selects in the first dropdown list. Is this possible ??? If so, what would be the script/code necessary to do so ??? Thank you for your help.
    Example
    City, State appears in 4 different fields based on the selection in field 1, the additional 3 fields auto-populates the same information.
    Field/List 1: New York, NY <-- Selected City, State
    Field/List 2: New York, NY <-- Auto Populated based on field 1
    Field/List 3: New York, NY <-- Auto Populated based on field 1
    Field/List 4: New York, NY <-- Auto Populated based on field 1

    In the exit event of the first State field, using Javascript, something like this should work:
    State2.rawValue = this.rawValue;
    State3.rawValue = this.rawValue;
    State4.rawValue = this.rawValue;
    ...where "State2", "State3", etc. are references to the other dropdowns you want to populate with the same information from the first state field.
    Be sure to set the binding values in the BINDING tab of the dropdowns to the same in each dropdown,
    Brian

  • Populate a dropdown based on selected in another dropdown in a seperate table

    Good Day All;
    This may sound like a simple question to most, but… It has had me frustrated trying to figure out.
    I am trying to populate a dropdown based on what is selected in another dropdown.
    Let me explain what I have done so far.
    LifeCycle Designer 8.05.2
    When I had both dropdowns in the same table, I did not have a problem. The code I used is
    Table name is “Table1”
    if(directorate.rawValue == "1")
    division.clearItems();
    division.addItem("select")
    I was asked to move things around and now “division” is located in “Table2”
    I know I need to reference “Table1” but I am running into a Syntax error. I have tried the following code;
    if(Table1 Row1 directorate.rawValue == "1")
    division.clearItems();
    division.addItem("Faire un choix")
    if(Table1.Row1.directorate.rawValue == "1")
    division.clearItems();
    division.addItem("Faire un choix")
    Any help would be appreciated
    Chomp

    You're missing a semicolon at the end of the addItem line, and on the second code sample you've got no periods in the SOM reference (Table1 Row1 directorate). 
    The easiest way to get the path to another field is to ctrl-click on the field while you are in the script editor.

  • Populate a dropdown based on what is chosen on another

    I have two dropdowns, one for category and the other for sub category. The category dropdown is loaded automatically and the sub category dropdown should be loaded based on what is chosen on the category dropdown. All data is coming from a database table, one is category and the other one is sub category. I am using oracle database. Thanks in advanced.

    You'll probably need to do an ajax call to populate that related select. This post on StackOverflow gives you the basics. No offense to Ben, but ignore his advice on using cfselect (you should avoid the cfform tags if at all possible).

Maybe you are looking for