Populate Actual values in Dependent Choice List

Hi,
I have a scenario wherein 3 metadata fields are dependent on each other.
Department -- > EmpNames --> EmpID
On implementing the dependent choice list, if i select the department, empnames of that department gets displayed.
But by default it loads up with No Selection option followed by empnames.
My client has a requirement wherein on selecting the empname, empid should get auto poulated. In our case it is,
by default No Selection option is present and empid comes after that.
Please let us me how to remove that No Selection type and make the value to get populate.
Regards,
Bhaskar

Hi Bhaskar,
This can be achieved in ODC. Which GUI you are talking about?
Regards,
Vikrant Korde.

Similar Messages

  • How to make dependent choice lists grow dynamically?

    Is it possible to have dependent choice list which grow as the new content is added for choice list item?
    E.g If we have countries, states, cities as dependent choice lists. If contributor adds a new country the value should appear in the drop down next time. That value of country can be in turn be used to add states for it. The id of state in trun should be used to add cities. Is this possible?
    Regards,
    Pratap

    Hello All,
    by the way, it is very simple to let opltion lists grow dynamically, and moreover to have a predefined structure before.
    First you create a table and fill the view for this table with you start values, as it has been described before in this thread.
    Then you make the option list for the field Edit and Select.
    And then, as you know, your predefined values are stored in your custom schTable (whatever the name is), but all the values entered by the user are stored in DOCMETA table!
    All you need to do is to create a trigger with SQL Developer, so that on update and insert in table DOCMETA for your custom metadata field it is checked whether this value is already in your predefined option list stored in your schTable.
    And if the value is not there, make the trigger add a new record to custom table with this value and related values as well.
    Simple.
    This is true for any option list with predefined value and updated by the end-user.
    If it is dependent option list, then you need to add both values for parent and child fields in your custom table.
    There is another problem for which I can not find a solution --> if the field depends on two fields...
    Regards,
    Guli

  • Implementing dependent choice list with internal columns as varchar

    Hi,
    While implementing dependent choice list I created two tables & their views with internal column as varchar(for example: countryName for country table & stateName for states table) instead of int. I couldn't get the DCL working: selecting a value from the dropdown of parent field won't show up only the dependent values of the child field; it will display the dropdown with all values (it will show all values of the States irrespective of the countryname selection). However when I select the internal column as int & visible column as varchar the DCL works fine.
    Our requirement is to use the internal columns as varchar instead of int. Please suggest/help.
    Thanks,
    Madhur

    Hi Shashwat,
    I have done that. The problem is: dependent choice list doesn't seem work is you choose primarykey/foreign key as varchar. It works if I choose the primarykey/foreign key as int. And this key will be the internal column in the views. My requirement is to have them as varchar so that while checking-in content using RIDC API I don't have to provide the int value.
    Thanks & Regards,
    Madhur

  • Dependant choice lists

    Hi,
    I would like to be able to present the user with two dropdown lists, with the data from the second one dependant on the first. I understand with 10g this is somewhat simpler due to the introduction of primaryClientAction. I thought of using the query type facility within JHeadstart to read a value from the session Data to populate the second list. My question ? Is this possible without having to submit the form (assuming that the value is only going to get set on the sessionData once the form has been submitted). Is there a way that I could store the value on the sessiondata using a javascript function on my first choice list ??
    Thanks,
    Brent Harlow

    Hi Peter,
    Thanks for the reply ! Seemed somewhat daunting at first but not bad once I tried it out. Not 100% successful yet though. I thought that I would first try it out populating a table on a separate page to make sure I had the basics right. First problem is that "'<%=sessionData.getAttribute("controller")%>" does not seem to be getting resolved - the alert(xmlHTTP.responseText) returns "404 Error : Resource /Choicedemo/<%9cessionData.getAttribute("controller")xtarget......"do I need to include something else in my javascript or struts-config ? Secondly, when I replace the code above and hard-code in the web url, the action returns success but the forward table page is not displayed ?? Here is my code
    struts-config
          <action path="ModuleRouter" type="oracle.jheadstart.controller.struts.action.DynamicActionRouter">
             <set-property property="forwardParameterName" value="targetGroup"/>
             <set-property property="attributeNameParameter" value="targetCondition"/>
             <set-property property="attributeValueParameter" value="targetConditionValue"/>
             <set-property property="defaultForward" value="Studies"/>
             <set-property property="defaultPreviousForward" value="false"/>
             <forward name="Studies" path="StudiesRouter"/>
             <forward name="Kits" path="KitsRouter"/>
          </action>
          <action path="StudiesRouter" type="oracle.jheadstart.controller.struts.action.ActionRouter">
             <set-property property="defaultForward" value="initial"/>
             <forward name="initial" path="GetStudiesSet"/>
             <forward name="browse" path="BrowseStudiesSet"/>
             <forward name="insert" path="GetDefaultStudies"/>
             <forward name="save" path="SaveStudies"/>
             <forward name="delete" path="DeleteStudies"/>
             <forward name="firstPoplistChanged" path="getSecondPoplist"/>
             <forward name="groupPage" path="/WEB-INF/page/StudiesPage.uix"/>
          </action>
          <action path="getSecondPoplist" type="oracle.jheadstart.controller.struts.action.GetDataObjectSet">
             <set-property property="dataObjectInterface" value="hmdclinical.choicedemo.model.invkitdetail"/>
             <set-property property="dataObjectSetName" value="KitsSet"/>
             <set-property property="isUpdatable" value="true"/>
             <set-property property="rangeSize" value="30"/>
             <set-property property="queryType" value="SecondPoplistQuery"/>
             <set-property property="attributeNames" value="firstPoplistValue"/>
             <set-property property="useAttributeNameAsKey" value="false"/>
             <forward name="success" path="/WEB-INF/page/KitsTablePage.uix"/>
             <forward name="userError" path="/WEB-INF/page/KitsTablePage.uix"/>
             <forward name="dataObjectNotFound" path="/WEB-INF/page/KitsTablePage.uix"/>
          </action>my javascript that is being called from the onChange handler
    function firstPoplistChanged(item)
      if (item.selectedIndex >0)
        // This is a url that will invoke a specific forward on
        // a specific actionRouter in your Struts config file.
        // var url = '<%=sessionData.getAttribute("controller")%>?targetGroup=Studies&targetCondition=firstPoplistChanged&targetConditionValue=true';
        var url = 'http://192.168.0.39:8989/Choicedemo/StartChoicedemo.do?targetGroup=Studies&targetCondition=firstPoplistChanged&targetConditionValue=true';
        // Add a parameter to the URL that holds the selected
        // value in the first poplist
        url += '&firstPoplistValue='+item.options[item.selectedIndex].value;
        alert(url)
        // Invoke this URL
        var xmlHTTP = new ActiveXObject("Microsoft.XMLHTTP");
        xmlHTTP.open("GET",url, false);
        xmlHTTP.send();
        // Decomment this alert to see what you actually got back
        // from the server.
        alert(xmlHTTP.responseText);
        // Find the second poplist (you'll need to set its id),
        // and overwrite its content
        // document.getElementById("secondPoplist").outerHTML = xmlHTTP.responseText;
      else
        // If the first poplist is not selected, clear the
        // second one.
        // document.getElementById("secondPoplist").innerHTML = "";
        alert("Item selected index <= 0")
    }and finally the oc4j debug showing me that the getSecondPoplist action was successful
    22:42:17 DEBUG (DynamicActionRouter) -Forward returned: Studies
    22:42:17 DEBUG (JhsRequestProcessor) -Execute StudiesRouter
    22:42:17 DEBUG (ActionRouter) -Forward returned: firstPoplistChanged
    22:42:17 DEBUG (JhsRequestProcessor) -Execute getSecondPoplist
    22:42:17 DEBUG (GetDataObjectSet) -Forward returned: successHow come /WEB-INF/page/KitsTablePage.uix is not being shown then ?
    Also..I appreciate you are giving me lots of info here but the last paragraph in your email "Finally, you need to write the simple secondPoplist.jsp that renders the second poplist with the new contents" has got me stumped - Sorry, I dont know where to begin ! How are the normal poplists rendered ? I was trying to find an example.......Im guessing that the JSP just provides the html that creates the poplist - dont understand how to hook it up to the dataObjectSetName. Also, the second list is going to be rather large so I wanted to use a LOV instead of a poplist ? Any pointers ? Do I just need to call the same lovFrame.jsp and pass in the new dataObjectName from the getSecondPoplist action ??
    Thanks a million Peter,
    Cheers
    Brent

  • Dependent Choice List Not working in ECapture as Expected

    Hi Martin_A,
    In ECapture i am trying to create a dependent Chocie list which will show City name based on Country name.
    But in ECapture that configuration is not working since during the creation of Depedent list from Parent
    Source,configuration is taking only one value of Parent source for eg. Country- US
    Hence child choice list is showing cities related to only US.
    Which should not be the case since in actual scenarios depended list means filter on the basis of selected parent value.
    Please let me know if i configured it wrongly.
    Please send me the steps if you did it perfectly last time
    @Martin_A

    Looking at the documentation 3.7 of  Managing Oracle Webcenter Capture, that's how it is, you have to have a separate child list of cities for every country in the country list, only 196 parent items and 196 lists to configure then
    In a choice list dependency, a parent field is linked to two or more child choice lists,
    one of which is displayed after the user makes a selection in the parent field.
    Important Points About Choice List Dependencies
    ■ You can create choice list dependencies between Capture user defined choice lists,
    database choice lists, or between choice list types.
    ■ Create all choice lists you plan to link before creating a choice list dependency. At
    a minimum, you need a parent choice list, and two or more child choice lists.
    ■ Each item in a child list can be related to multiple parent items. For example,
    Supplies could be a child item to Household and Automotive subproducts.
    ■ You can create multi-level dependencies (for example, great grandparent,
    grandparent, parent, and child choice lists).
    ■ Only one choice list dependency may be assigned to a client profile. Multiple
    parent/child dependencies must be defined within a single choice list dependency.
    Martin

  • Dependent choice list with Idoc Script

    Hi,
    I'm developing a customized component and I have made my own template.
    This is made in *.hcst* extension.
    I use 3 variables dependent (they are choice lists),
    If I put these variables in a checkin profile everything is O.K.,
    but the problem I have using these fields in my template,
    if I select the first variable it shows a javascript error:"setOption is not defined", maybe that is problem because
    I must include the script that contains the function but I don't know where it is located.
    I do exactly what Bex's book says (as follows):
    <$include std_doc_page_definitions$>
    <$include std_html_head_declarations>
    <$fieldName="xCountry", fieldCaption="<b>Country:</b>",
    fieldIsOptionList=1, isInfoOnly=#active.isHcsp$>
    <$include std_display_field>
    <$fieldName="xState", fieldCaption="<b>State:</b>",
    fieldIsOptionList=1, isInfoOnly=#active.isHcsp$>
    <$include std_display_field-->
    <$fieldName="xCity", fieldCaption="<b>City:</b>",
    fieldIsOptionList=1, isInfoOnly=#active.isHcsp$>
    <$include std_display_field>
    <$include std_page_end$>
    the result is the first field with its list options properly filled in, but the second and third choice list do not have values, even if I select any in the first list
    I think the problem could be in some include
    (I do not know if there includes missing, or I forgot something)
    Please help me
    Best regards,
    Juanele

    The setOption function is defined in this dynamic html include:
    query_form_std_script
    There's also a different version defined in this include:
    expired_form_std_script

  • How to get selected value from one choice list

    Hi All,
    i want to get selected value in onechoice list.how to achive this
    Regards,
    Smaran

    check these
    http://groundside.com/blog/DuncanMills.php?title=adf_the_list_binding_value_problem&more=1&c=1&tb=1&pb=1
    http://blogs.oracle.com/jdevotnharvest/2010/12/reading_the_selected_value_of_an_adf_bound_select_list_in_java.html
    http://www.oracle.com/technetwork/developer-tools/jdev/listbindingvalue-088449.html

  • Can we default a value in choice list in OTL

    Hi,
    Can we default a value in the choice list? To explain in detail the issue is
    When the user enters the time entries he also choses a Yes/No in the choice list directly under the Day for each day. Now there can be an entry for a week where he does not enter hours for a day and hence the choice list value should be No. When the user does not select any value there review and confirmation page does not show them prooperly.
    ex: User enters
    _______________ Day1 Day2 Day3 Day4 Day5 Day6 Day7
    Overtime_________ 1_____________1______1
    Comp Acc________Yes____________No_____No
    The review should also be like the above but it appears as
    _______________Day1 Day2 Day3 Day4 Day5 Day6 Day7
    Overtime_________1_____________1_____1
    Comp Acc_______Yes_____No_____No
    The 2nd No appears incorrectly for the 2nd row. If I can provide a default value such as space when the user does not select anything then that might solve the issue. Can we do this.
    Thanks

    Hi
    Can someone help on this one please. The version is 11.5.9.
    Thanks

  • Dynamic Choice List

    Hi All
    I want to restrict Choice List values depending on data coming from previous page.
    I am using following code :
    OAMessageChoiceBean contactList = (OAMessageChoiceBean)webBean.findChildRecursive("<Chioce List Name>");
    contactList.setPickListCacheEnabled(false);
    After this i am building VO Query depending on ceratin values.
    Still choice list is taking initial query only.
    I will appreciate if someone can help me on this.
    Thanks
    Samir

    Mukul
    Even after using clearCache i am getting initial query only.
    The details are give below:
    View Object Details
    VO Name: ContactNameVO
    Query: select distinct LTRIM(RTRIM(rc.first_name || ' ' || rc.last_name)) meaning
    from ra_customer_trx_all rctl, ra_contacts rc
    where rctl.bill_to_contact_id = rc.contact_id
    AND ROWNUM = 1
    XML Page Details
    Choice List Item Details
    ID : ContactName
    Item Style: messageChoice
    PickLList View Instance: ContactNameVO1
    Picklist Display Attribute: Meaning
    Picklist Value Attribute: Meaning
    Controller Code
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAMessageChoiceBean contactList = (OAMessageChoiceBean)webBean.findChildRecursive
    ("ContactName");
    contactList.setPickListCacheEnabled(false);
    String trxId = (String)pageContext.getParameter("trxId1");
    String whereclause3 = " ";
    whereclause3 += " AND rctl.customer_trx_id IN ("+trxId+") ";
    System.out.println("whereClause3****************"+whereclause3);
    Serializable [] param1 ={whereclause3};
    am.invokeMethod("DynQueryForContName",param1);
    AM Code
    public void DynQueryForContName(String q)
    ContactNameVOImpl vo = getContactNameVO1();
    vo.clearCache();
    if(vo == null)
    MessageToken [] errToken ={new MessageToken("OBJECT_NAME","ContactNameVO1")};
    throw new OAException("AK","FWK_TBX_OBJECT_NOT_FOUND",errToken);
    else
    vo.initQuery(q);
    VO Impl Code
    public void initQuery(String s)
    if((s != null) && (!("".equals(s.trim()))))
    String query = getQuery();
    StringBuffer sb = new StringBuffer(query);
    if(final_query == null)
    sb.append(s);
    final_query = sb.toString();
    setWhereClauseParams(null);
    setQuery(final_query);
    System.out.println(final_query);
    final_query = null;
    executeQuery();
    setQuery(query);
    Let me know if something is wrong in the code.
    Thanks

  • Many choice list

    When i give a value to many choice list in adf which is bind to a list in bean class , i am not getting output.
    <af:selectManyChoice label="Label 1" id="smc1" *value="{Bean1.list}"* binding="#{Class1.mc1}">

    Hi,
    Welcome to OTN. Always mention your JDev version, technologies used and clear description of your usecase / issue (check out this announcement : https://forums.oracle.com/forums/ann.jspa?annID=56).
    When i give a value to many choice list in adf which is bind to a list in bean class , i am not getting output.What do you mean by "not getting output"? Do you get any error / exception?
    -Arun

  • ADF web select one choice list return value

    hi
    how can i make a choice list that displays a value but return another value
    and then use it as a parameter in a method for a button
    my problem is how to return another value to the button
    thanks

    Hi,
    After creating the selectOneChoice based on the steps you followed, you will need to follow up with the steps below.
    1) Open up your Page Definition file. In the Structure panel, right click on bindings --> Insert inside bindings --> Generic bindings --> attributeValues.
    2) Under Data Source, select your iterator value used to bind the selectOneChoice component. The attribute should be your value ID (example: productId) that you want to be returned by selecting the selectOneChoice component.
    In the backing bean, you get the actual value of the selected item in the list in step #2 by resolving the expression (example) #{bindings.productId.inputValue}.
    Regards,
    Chan Kelwin

  • Calling pages based on choice list value

    Hi,
    I'm using jdev11.1.2.1.0
    I have created page with one single choice list and 3 buttons.
    in choice list, all the selected items are static only. I have created 3 selected items under the choice list.
    and I created 9 jsff fragments.
    now these 9 jsff's are called as regions in page when i select choice list value and button.
    how can I achieve this?
    Thank You..

    Hi Puthanampatti
    thanks for Ur reply,
    I have tried like this...
    I have taken 9 buttons and i created valuechangelistener event and by depending up on the selecteditem in the choice list, rendered only three buttons and under those buttons i created setpropertylistener.
    its working fine.
    but I have created choice list by drag and drop the choice from the component palette and there I created list items( just labels only with no values)
    by default its showing blank item in the list.
    but as per my requirement, first item should be displayed first.
    I don know much about unselectedlabel property for the choicelist.
    how can I use this in displaying the first selectitem in the list?

  • Dependant Message Choice List

    Hi Gurus,
    Can anyone please suggest How to create dependant message choice list in OAF.
    Basically I am having two message choice list MC1 and MC2 where MC2 values depends on the MC1 value.
    Thanks
    Piyush

    Hi Piyush,
    I assume you have two different view object/instances created for the MC1 and MC2 attached as PickListViewObject with return value and display value. Now you can achieve your requirement like:
    1) Set partial action on MC1.
    2) In PorcessFormRequest handled event of MC1 and set where clause on MC2's PickListViewObject with value selected by MC1 --> Execute view object.
    Note:: On page load you may need to write where clause for MC2's PickListViewObject with the value which returns no rows.!
    Regards,
    Swati

  • How to get actual value from LOV list

    Like Subject says: How to get actual value from LOV list. Any help will be appreciated.
    Thanks.

    Thanks Shay, I did it with bind variable because I'm not using JSF. Is there any chance to post solution using standard JSTL or HTML expression. I have something like this: LOV displays some Companies names:
    <html:select property="UserJobCompanyId"
                             disabled="${!bindings[\'UserJobCompanyId\'].updateable}"
                             onchange="submitform();">
                  <html:optionsCollection label="prompt" value="index" property="UserJobCompanyId.displayData"/>                                                     
                </html:select>and I want to get CompanyID of selected Company.
    Thanks, again.

  • How to get selected values from Select Many Choice List

    Hello All -
    I am using Select Many Choice List and wish to get the selected values in the bean. I have created method binding for valueChangeListener for the choice list, but not sure how to get the selected values.
    I am facing problem in getting values from valueChangeEvent.getNewValue(). For Select One Choice List this returns int, but some list type object for Select Many Choice List.
    When I try to print the value it comes something like:
    ArrayList newVal = new ArrayList(Arrays.asList(valueChangeEvent.getNewValue()));
    System.out.println(newVal);
    [Ljava.lang.Integer;@870ad8
    Could anyone please suggest how to type cast and use the return of valueChangeEvent.getNewValue() to get the selected values.
    Regards -
    Rohit

    Hi Timo -
    Thanks for the suggestion. I could get the values as below:
    public void multiOpUnitValChange(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding opUnitIter = (DCIteratorBinding)bindings.get("OperatingUnit2VOIterator");
    Integer[] values = (Integer[])valueChangeEvent.getNewValue();
    for (int i=0; i<values.length; i++){
    Row row = opUnitIter.getRowAtRangeIndex(i);
    System.out.println(row.getAttribute("OpUnitId"));
    Thanks -
    Rohit

Maybe you are looking for

  • Mix reactions with N8 - Solutions needed

    Hi, I have been using the N8 now for the last 20 days. The journey has been mostly pleasing but I found some nagging issues, when I was travelling in the US and Germany: 1. Data connectivity works perfectly in Finland, did not work in Germany and the

  • Connection error in JDeveloper

    When I try to create a new connection, it always said "no ocijdbc8 in shared library path". Exactly which driver file should I install in the lib path? Thanx! null

  • GPU is slow. Can't play Minecraft or composite well.

    [andrew@millennium-falcon ~]$ lspci -v | grep VGA 01:05.0 VGA compatible controller: ATI Technologies Inc Radeon XPRESS 200M 5955 (PCIE) (prog-if 00 [VGA controller]) [andrew@millennium-falcon ~]$ pacman -Qs xf86-video local/xf86-video-ati 6.14.0-2 (

  • Can anyone confirm if FaceTime is working in Oman ?

    I have an ipad2 bought in USA and am presently in muscat, oman. Can anyone confirm if FaceTime can be used in oman on omantel wifi network ? The moment I dial a contact for FaceTime it says connecting after some time it says connection lost and I can

  • ECC6 Include rfdklif0 is missing new version of RFDKLI41

    During upgrade to ECC 6.0 it is found Include RFDKLIF0 is missing in new version of RFDKLI41. Need to know if there is a suggested approach to develop custom reports based on standard programs to cater for such change in designs on account of upgrade