How to create dependent LOVs

Hi all,
Does anyone know how I can create a LOV with values dependent on the LOV value selected from the one above when defining a custom item?
For example, I have defined a custom item which has 2 attributes with 2 LOVs:
attribute1 - LOV1
attribute2 - LOV2
I would like to populate LOV2 depending on what value the user selects in LOV1, is this possible?
Please advise.
Thanks.

Hi,
You can create dependant lovs and use them only in the forms component. Here is how you create dependant lovs
lov1
select empno,ename
where deptno = :dept
Creating a LOV with a bind variable makes it a dependant lov. In forms you should map the bind variable to one of the form columns.
Thanks,
Sharmila

Similar Messages

  • How to create dependent LOV in Advanced Table.

    Hi,
    How to create dependent LOV in Advanced Table. Pls help send me the steps.
    Thanks in Advance,
    Hanimi....

    Hi,
    Not sure whether you need dependent LOV or dependent poplist. But anyways, you can refer the below link for Dependent LOV
    http://oraclearea51.com/component/content/article/98-oa-framework/372-dependent-lov-in-oaf.html
    and for Dependent Poplist refer the below link:
    http://oraclearea51.com/component/content/article/98-oa-framework/370-dependent-poplist-in-an-advanced-table-in-oaf.html
    Regards,
    Sudhakar Mani
    http://oraclearea51.com/sudhakarmani

  • How to create Dependent lov  in OAF Page

    Hi,
    How to create Dependent lov in OAF Page. pls can any body help.
    Regards,
    Hanimi.

    Hi,
    Not sure whether you need dependent LOV or dependent poplist. But anyways, you can refer the below link for Dependent LOV
    http://oraclearea51.com/component/content/article/98-oa-framework/372-dependent-lov-in-oaf.html
    and for Dependent Poplist refer the below link:
    http://oraclearea51.com/component/content/article/98-oa-framework/370-dependent-poplist-in-an-advanced-table-in-oaf.html
    Regards,
    Sudhakar Mani
    http://oraclearea51.com/sudhakarmani

  • How to create dependent LOVs in Web ADI

    Hi
    Could anybody help me out, how I can create dependent LOVs in Web ADI? Please provide any sample code if you have.
    I referred some posts in this forum about dependent LOVs. But unable to understand. Is dependency only possibe with Java programs?
    Thanks
    Venkat

    Hi ,
    did you get any docs that for dependent LOV. Please mail me [email protected]
    Many Thanks in advance
    Regards
    Niraj

  • How to create dependent LOV based on procedure?

    Hi,
    There are two dependent list of values which i need to create. There is an existing package which returns the list.
    Can you suggest which approach should i use to create these list. Should i execute the procedure in the IMPL class and then bind the list to the transient VO or should i create a table which stores the result of the package and then use query based VO.
    After selecting the list values and clicking on GO it should generate a table too based on that list values selected.
    Which approach is correct? If any other approach then please mention.
    And can you explain how do we bind the list to the transient VO for the first approach if thats the correct approach.
    Thanks in advance

    Hi,
    I would build programmatic view objects for both of them (I usually also prefer having the View Objects based on a custom entity object). The tricky part is that you need to override the default View Criteria behavior (as you have to detect the view criteria, its condition and then map it to the stored procedure call)
    Here are some links that will help:
    http://docs.oracle.com/cd/E21043_01/web.1111/b31974/bcadvvo.htm#sm0341
    http://jobinesh.blogspot.in/2011/06/building-programmatically-managed_25.html
    http://jobinesh.blogspot.in/2011/06/building-programmatically-managed.html
    http://docs.oracle.com/html/B25947_01/bcadveo004.htm#sm0328
    Frank

  • ADF: CREATING DEPENDENT LOV

    Hi Everyone,
    i have created two LOVs just to list the values(2 separate VOs but both are from same table).
    Now i want to make 2nd lov values dependent on first lov.
    how can i create dependant lov?
    plz give detailed simple steps for dependant lov creation as im new to this ADF field.
    Thanks in advance.
    Regards,
    RAJA.
    Edited by: Kumar on May 18, 2012 7:39 PM

    Sorry, but as far as I can tell the samples are doing exactly what you want. If not do should be able to adapt the samples to your needs.
    In general here on this forum we only point you in the right direction...
    From the information you gave so far the samples should get you going.
    Timo

  • Issue in creating dependent LOV

    Hi,
    I am creating a dependentLOV Items.
    1) Selecting Project Number.
    2) List of Tasks in the selected Projects.
    when ever user selects particular project number in 1st LOV item the list of tasks assossiated to that project should be
    populated in 2 nd LOV.
    Can any one suggest.
    Regards,
    Krishna

    Hi Reetesh,
    I am unable to create dependency.
    VO Querys of Projects and Tasks
    Projects VO
    select a.SEGMENT1,a.NAME,a.PROJECT_ID
    from pa_projects_all a
    TasksVO
    select a.TASK_NUMBER,a.TASK_NAME,a.PROJECT_ID
    from pa_tasks a
    I am explaing the steps I have done just show where I met error.
    1) Create ProjectsLOVRN (projectno,name,projectId) TasksLOVRN (TaskNumber,Name,ProjectId)
    2) Create 2 LOV Items Projects and Tasks
    3)In Projects LOV I created 2 LOV Maps which returns Project No and Project Id
    4)In Tasks LOV created 2 LOV Maps as you suggested
    in first map LOV Region Item TasksLOVRN(TaskNumber)
    Criteria Item returned ProjectId from ProjectsLOVRN
    Required and Programatic Query is set to true
    for crieteria item will be the Project LOv Item how can I select an ProjectsLOV Item in TasksLOV
    in second map
    LOV Region Item TasksLOVRN(TaskNumber)
    return Item LOV ItemTask
    While running page At header I am getting an error
    Error
    Developer Mode Exception : Lov Input should by default be the queryable criteria and Result.
    Please suggest where exactly Iam making mistake to create Dependent LOV
    Regards,
    Krishna

  • How-to create dependent list boxes in a table -Frank Sample

    hi everyone i would like to ask a suggestion about Frank's example on How-to create dependent list boxes in a table -Frank Sample ...
    i want to extend this example for 3 dependent lists... including locations, departaments and employes....
    this the ListboxBean java that Frank is using in his example.... and this is only for locations and departaments tables and it works ok... i want to add the third list for employers wich is dependent only from departaments list.... as i am not good in java i would like to ask u a suggestion on how to develop the third list in this java class ...
    public class ListboxBean {
    private SelectItem[] locationsSelectItems = null;
    private SelectItem[] departmentsSelectItems = null;
    public SelectItem[] getLocationsSelectItems() {
    if (locationsSelectItems == null){
    FacesContext fctx = FacesContext.getCurrentInstance();
    ValueBinding vbinding = fctx.getApplication().createValueBinding("#{bindings.LocationsView1Iterator}");
    DCIteratorBinding locationsIterBinding = (DCIteratorBinding) vbinding.getValue(fctx);
    locationsIterBinding.executeQuery();
    Row[] locRowsArray = locationsIterBinding.getAllRowsInRange();
    // define select items
    locationsSelectItems = new SelectItem[locRowsArray.length];
    for (int indx = 0; indx < locRowsArray.length; indx++) {
    SelectItem addItem = new SelectItem();
    addItem.setLabel((String)locRowsArray[indx].getAttribute("City"));
    addItem.setValue(locRowsArray[indx].getAttribute("LocationId"));
    locationsSelectItems[indx] = addItem;
    return locationsSelectItems;
    return locationsSelectItems;
    public SelectItem[] getDepartmentsSelectItems() {
    FacesContext fctx = FacesContext.getCurrentInstance();
    ValueBinding vbinding = fctx.getApplication().createValueBinding("#{row}");
    JUCtrlValueBindingRef rwJUCtrlValueBinding = (JUCtrlValueBindingRef) vbinding.getValue(fctx);
    Row rw = rwJUCtrlValueBinding.getRow();
    if (rw.getAttribute(6) != null){
    OperationBinding oBinding = (OperationBinding) fctx.getApplication().createValueBinding("#{bindings.ExecuteWithParams}").getValue(fctx);
    oBinding.getParamsMap().put("locId",rw.getAttribute(6).toString());
    oBinding.execute();
    ValueBinding vbinding2 = fctx.getApplication().createValueBinding("#{bindings.DepartmentsView2Iterator}");
    DCIteratorBinding departmentsIterBinding = (DCIteratorBinding) vbinding2.getValue(fctx);
    departmentsIterBinding.executeQuery();
    Row[] depRowsArray = departmentsIterBinding.getAllRowsInRange();
    // define select items
    departmentsSelectItems = new SelectItem[depRowsArray.length];
    for (int indx = 0; indx < depRowsArray.length; indx++) {
    SelectItem addItem = new SelectItem();
    addItem.setLabel((String)depRowsArray[indx].getAttribute("DepartmentName"));
    addItem.setValue(depRowsArray[indx].getAttribute("DepartmentId"));
    departmentsSelectItems[indx] = addItem;
    return departmentsSelectItems;
    public void setLocationsSelectItems(SelectItem[] locationsSelectItems) {
    this.locationsSelectItems = locationsSelectItems;
    public void setDepartmentsSelectItems(SelectItem[] departmentsSelectItems) {
    this.departmentsSelectItems = departmentsSelectItems;
    Thanks in advance :0

    Hi,
    I think that all you need to do is to look at how I implemented the dependent detail for querying the Employees select items
    Then you make sure the DepartmentsVO and the EmployeesVO have bind variable to query them according to the pre-selected value in their respective master list
    Frank

  • How to create depedent lov using groovy functionality

    Hi,
    My requirement is need to create dependent LOV on form like, when ever user selects merchant_number, remaining merchant details should default, till now i am doing with valuechange listener. now i wanted to do on vo itself using groovy functionality. i have created merchant VO which is returning 4 values, merchant_number,name,phone,address. i have created view criteria with a bind variable.
    In my main vo i have created LOV for merchant_number. added the merchant vo as view accessor and set the bind variable value as merchant number. and with the merchant_name i am trying to setting as XxwfsMerchantDetailsLOV1.getMerchantName(). i am getting error like
    Exception in thread "AWT-EventQueue-0" oracle.jbo.JboException: JBO-29000: Unexpected exception caught: groovy.lang.MissingMethodException, msg=No signature of method: oracle.jbo.server.ViewRowSetImpl.getMerchantName() is applicable for argument types: () values: []

    hi,
    for creating LOV i don't have any issue, problem with defaulting the remaining fields. i am getting error like
    Exception in thread "AWT-EventQueue-0" oracle.jbo.JboException: JBO-29000: Unexpected exception caught: groovy.lang.MissingMethodException, msg=No signature of method: oracle.jbo.server.ViewRowSetImpl.getAttribute() is applicable for argument types: (java.lang.String) values: [MerchantName]
    at oracle.jbo.ExprEval.internalEvaluateGroovyScript(ExprEval.java:833)
    at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:868)
    at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:762)
    at oracle.jbo.server.AttributeDefImpl.evaluateTransientExpression(AttributeDefImpl.java:2029)
    at oracle.jbo.server.ViewRowStorage.initDefaultExpressionAttributes(ViewRowStorage.java:930)
    at oracle.jbo.server.ViewRowStorage.create(ViewRowStorage.java:1154)
    at oracle.jbo.server.ViewRowImpl.create(ViewRowImpl.java:428)
    at oracle.jbo.server.ViewRowImpl.callCreate(ViewRowImpl.java:445)
    at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:4915)
    at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1843)
    at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:2368)
    at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:2409)
    at oracle.jbo.server.ViewRowSetImpl.createAndInitRow(ViewRowSetImpl.java:2374)
    at oracle.jbo.server.ViewObjectImpl.createAndInitRow(ViewObjectImpl.java:9684)
    at oracle.jbo.jbotester.NavigationBar.doInsertAction(NavigationBar.java:136)
    at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:109)
    at oracle.jbo.uicli.controls.JUNavigationBar$NavButton.actionPerformed(JUNavigationBar.java:117)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    at java.awt.Component.processMouseEvent(Component.java:6263)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6028)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4630)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2475)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

  • How to create "Dependent reservation"?

    Hi,
    Could you tell me how to create "Dependent reservation", please? Thanks in advance.
    PS: the MRP element of  the record shows "OrdRes" in MD04 screen.
    Best regards
    Lily

    Hi,
    When you create Production order for Parent  material (CO01) , dependent reservation will be created for Components automatically. If u select the Dep reservation it will show the  Parent material production Order Number( Pegged requirement) (Md04).
    or U  can create reservation manually  at MB21
    Pradeep

  • How to create a LOV based on a stored procedure returning a cursor

    Hello,
    I've tried to search the forum, but did not find much. We are facing a problem of large LOVs and creating large TMP files on the app server. Our whole application is drived by store procedures. LOVs are built manually by fetching data from cursors returned from stored procedures. That creates the issue when whole LOV needs to be stored in the memory and thus the TMP files.
    Is there anyway how to create LOV based on a procedure returning cursor ?
    Thank you,
    Radovan

    Hello,
    As of now we populate the record group by looping through the ref cursor and adding rows into it. Is there a better way? That forces the whole record group to be stored in a memory on the app server.
    Thank you,
    Radovan

  • How to create dynamic LOV in a page

    Hi,
    I am trying to create a cascading selection feature in a page.
    That is:
    Suppose I have a data in Oct. Nov. DEC. in 1998, May, June, July, August in 1999, and Sep. Oct, Nov. in 2000, Jan., Feb., Mar., in 2001.
    If I choose 2000 in the first selection box then in the second selection box(month box) will show only Sep., Oct., Nov.,. I could create this feature with select and redirect with selection box.
    However I want to create one with Multi_selection box.
    Does anyone knows how to create one with multi selection box or check box?
    Thanks,
    Message was edited by:
    user459223

    Hi
    Sorry Could not understand ur problem exactly.
    Anyhow a solution for ur problem is to use a select list with submit option for the first select list.
    for second select list in the LOV part write the query with the where clause:
    where a = :b(where b is the first select list)
    try it
    regards
    ameya

  • How to create a LOV where it is constrained by another field

    I'm trying to figure out how to get a LOV to be limited by the value in a column
    A complete hypothetical example (the actual app is quite different):
    I have 2 tables
    clientInfo, with fields fname, lname, age, city, zipcode
    In another table named cityZip I have zip & city
    So I create a report on a table form
    select fname, lname, age, city, zipcode from clientInfo
    This generates a nice table form, one entry for each client.... but I want the user to go down the selectList which represents the city column and select the city for each record in the table.
    So I created a Select List (query based LOV),
    I tried
    select DISTINCT (code|| ' ' || city) d, zip_KEY r
    from cityZip where cityZip.zip = :zipcode
    The problem appears that the use of zipcode in the LOV query does not contain the value of the current record's zipcode so it doesn't work! Does anyone have any idea's how this might be done?

    Good morning,
    The problem is that the data in your report is not contained in APEX items within your page. Try looking at the Form & Report combination and put your select list in the form. When you click "Edit" on a line, that data populates the form. You then have the information you need to limit the query for your LOV.
    Good luck,
    Don.
    You can reward this reply by marking it as either Helpful or Correct :)

  • How To Create an LOV in Jdeveloper 10.1.3.2.0

    Hi,
    Could anyone tell me as to how one can create an lov in this version of jdeveloper 10.1.3.2.0.
    Thanks & Regards,
    Madhur

    Hi John,
    Thanks for the detailed solution . Also i would like to clear some doubts.
    Earlier i was using session.scope to pass value from one page to another. But since i have one jsp lov page and two fields 'from' & 'to' how would i be able to assign separate values when i am selecting them from same jsp lov page.
    In other words how would i be able to reuse the jsp on other fields because if i change the values once it will be changes for all the fields.
    one more query in the older version of jdeveloper 10.1.2.0 it was much easier to create an lov as u have options from the component pallete why have they removed it.?
    Because i will have to create duplicate jsp pages if i have from & to fields for my search forms.
    I hope i am able to get my problem through.
    Thanks & Regards,
    Madhur
    Message was edited by:
    Madhur Pant

  • How to incorporate dependent LOV in an Advanced Table

    Hi,
    I have an "Advanced Table". Two columns are LOV columns.
    Eg.
    In the first column I have an DeptLOV and second column has EmployeenameLOV.
    In first Column DeptLOV I choose say Deptno 10 and it should filter and list only the names of the employees in the second column EmployeenameLOV it should list only the employees of Departnumber 10 and I should be able to pick one employeename from EmployeeNameLOV.
    I should be able to choose different Dept number and corresponding employee name in LOV different in each row.
    Thanks in advance.
    Lacman

    Thanks for you reply.
    But the issue is the dependent LOV inside an advanced table as described in my earlier post.
    Advanced table with dependent LOVs
    . c1 c2
    r1
    r2
    r3
    If an end user clicks on r1c1 LOV. He should be allowed only to click on r1c2. If clicks on r1c1 and directly clicks r2c2 he should not be allowed.
    How to accomplish this in an Advanced table in which the second column LOV is dependent on the first LOV.
    Regards,
    Laxman
    Edited by: lacman on Nov 18, 2009 7:19 PM

Maybe you are looking for

  • BAPI to change data at operation level

    Hi, I have this requirement: I need to change data at operation level, more particularly Person No (PERNR) by using a BAPI. Is there any BAPI - in which I can pass the basic data (say Order data and Operation data) and change the PERNR for it. The na

  • Internal Table data to Excel Sheet

    Hi All, I have an internal table have some data , which I have to populate and save  excel sheet on presentation server and application server both according to options, with column heading and header text through program. could any one help me how t

  • Add "wrap your product as a gift" option in shopping cart or product checkout

    Hi, does anybody have an idea of to add an option in the checkout, so the user be able to select the "wrap this product as a gift" option, and add a cost to the total price if the option is checked? I´m trying to figure it out, and the only option av

  • Price according to formulation

    hi Expert For make a one finished good I have 3 formulations, let assume for making product C, I need product A & B. below is my 3 formulations and price according to that Formulation A We used product A and B = 50 % , I have batch no 154 and price 1

  • Zero suppression not working

    Hello Experts, I have an issue in Bex, For ex i have a value (-12345) but i want it to be displayed as (12345) so I Multiplied it with (-1),This works fine. Now the issue is if i have the value as (0) and then (-1 * 0)= 0.0, this I want to get zero s