Basing an LOV on another LOV

In a HTML web form, how can I have a LOV (Drop-Down list) based on DEPT, that populates another LOV with all the employees from EMP in the department selected in the first LOV.
I can do it in Javascript but I need to derive my values from tables.
Thanks

Hi,
I dont think you can pass on the table values to a javascript function.
You can definitely use the HTP cartridge functions to display table
data in HTML. There would be a specific HTP or HTF function to build
a form drop down list. I think it's a combination of htp.formSelectOpen
and htp.formSelectOption. Check the documentation here:
http://kontti.helsinki.fi:8889/ows-adoc/psqlwtl9.htm
Populating the EMP LOV should be straight forward unless you are
not looking to change the EMP LOV and DEPT LOV dynamically.
Rgds.
Amogh

Similar Messages

  • Change LOV of column in view, based on values of another LOV of column in the same view

    Hi,
    I am using Jdeveloper 11.1.1.5.
    I have a scenario in which I have two columns in the view. column names are:
    1- Column A
    2- Column B
                        both the columns have LOV's
    LOV in column A contains values as: 1, 2. Now, when I select the value 1 in column A, In the column B, an LOV named ABC should be shown. and when I select value 2 from LOV in column A,  LOV named XYZ should be shown in column B.
    how can I do that?
    thanks in advance (^.^).

    Use onchange attribute of the first drop-down. On change, submit the form. On server side, fetch the values for second drop-down based on the value selected for the first drop-down.

  • Set a LOV based on another LOV when the parent value is NULL

    Application Express 4.1.1.00.23
    Oracle Database 11g
    I have two Select Lists (LOV 1 and LOV 2) Items of several other items in a HTML region. LOV 2 is based on value in LOV 1 which is perfectly working. But I need to display some values in LOV 2 when value in LOV 1 is null which is not working at all. Any help is appreciated.
    Thanks,
    Sam

    Hi Sam,
    Sam82 wrote:
    Application Express 4.1.1.00.23
    Oracle Database 11g
    I have two Select Lists (LOV 1 and LOV 2) Items of several other items in a HTML region. LOV 2 is based on value in LOV 1 which is perfectly working. But I need to display some values in LOV 2 when value in LOV 1 is null which is not working at all. Any help is appreciated.
    Edit your LOV2 and do the changes suggested below
    Cascading LOV Parent Item(s) : LOV1
    Optimize Refresh : No (this is important not forget to make it NO)
    List of values definition : try to use query similar like this
    IF :P2_LOV1 IS NULL THEN
    RETURN 'select ENAME as display_value, EMPNO as return_value  from EMP';
    ELSE
    RETURN 'select ENAME as display_value, EMPNO as return_value  from EMP where  DEPTNO = :P2_LOV1';
    END  IF;
    Hope this will works for you,
    Regards,
    Jitendra

  • Passing parameter from one LOV to another

    How can I pass a parameter from one LOV to another so I can restrict the number of recoder of the lower LOV based on what the user have selected in the upper LOV..This is being constructed on the customized page of a report.
    Thanks..

    If your using release 2, you may have a problem.
    A combobox LOV can be used to link 2 LOV's but, the form they are on can't do a query, it fails to return any records. See bug 2141909.
    A popup LOV can be used to do a query, BUT, there is a bug when you try to link 2 LOV's. See bug 2505560.
    They are trying to do a backport, so submit a tar about it.
    Larry

  • How to disable an LOV wrt value in another LOV?

    I have a javascript function that works fine if P2_BANK_ASSIGNED is a text item. But if I change it to an LOV is doesn't work. How do I disable an LOV on value of another LOV?
    <!--===================================================================-->
    <!--FUNCTION TO DISABLE LOV BANK ASSIGNED IF LOV TRIAL IS <> 0 -->
    <!--===================================================================-->
    <script type="text/javascript">
    function disBankAssigned(){
    var lReturn = $x('P2_TRIAL').value;
    if (lReturn == 0 ) {
         $x('P2_BANK_ASSIGNED').readOnly = false;     
    else {
         $x('P2_BANK_ASSIGNED').readOnly = true;     
    </script>
    onchange="disBankAssigned();"
    regards
    Paul P

    Try $x('P2_BANK_ASSIGNED').disabled = true;     (or false)

  • I redeemed a Starbucks gift card for a song --You Found Another Love -- but when I went to play it, I received an error message that the file couldn't be found. Help

    I am having a problem getting my Starbucks song to play. I redeemed it in the iTunes store. The song -- You Found Another Love -- shows up in my playlist, but it is not playable because I get an error message that says: File not found.
    Anyone have this problem?

    Because the location for each song in your library is on your hard drive.  If the hard drive isn't there, how can iTunes play it?
    You'll have to move/copy the music from your hard drive to your computer's hard drive.
    Basically, EASIEST way to do all this, if you don't care about your play counts, etc...
    -Delete EVERYTHING from iTunes, so that your library is now empty.
    -Go to "Advanced" inside of the "Preferences" window, found in the "Edit" drop-down.  You can also access Preferences by pressing Ctrl+, (Press Ctrl and the comma key)
    -Change your iTunes Media Folder Location to something simple, but on your computer. I use C:/iTunes.  Make sure "Keep iTunes Media Folder Organized" and "Copy files to...." are both checked.  You can close Preferences now.
    -Now, drag and drop your music from your hard drive into your iTunes library.  iTunes will automatically add the music to your library, as you would expect, and also creates a copy of each file to place into that iTunes Media Folder you just created.
    Shouldn't have any more problems...

  • LOV usage -- Can LOV used as key-value pair?

    Post Author: phoenix
    CA Forum: WebIntelligence Reporting
    Hello,
    I am using BO XI R2 and I come to an issue with LOV. Can LOV be used as a key-value list?
    Say I have a key-value list as below:
    A --> 1
    B --> 2
    Can LOV just list 'A, B.. ' and return 1 if user choose A and 2 if user choose B?
    Many thanks.
    phoenix

    It is possible only if you know all possible KEY values:
    with t as (
               select 1 id,'STATUS' key,'TRUE' val from dual union all
               select 1,'AGE GROUP','10' from dual union all
               select 1,'TRAVEL','Y' from dual union all
               select 2,'STATUS','FALSE' from dual union all
               select 2,'AGE GROUP','20' from dual union all
               select 2,'TRAVEL','N' from dual
    select  id,
            max(case key when 'STATUS' then val end) status,
            max(case key when 'AGE' then val end) age,
            max(case key when 'AGE GROUP' then val end) "AGE GROUP",
            max(case key when 'TRAVEL' then val end) travel
      from  t
      group by id
            ID STATUS AGE   AGE GROUP TRAVEL
             1 TRUE         10        Y
             2 FALSE        20        N
    SQL> If you are on 11g, you can use PIVOT construct, but again you need to know resulting columns upfront.
    Another thing you could do is to return a CSV list of key all values in one column using STRAGG (or LISTAGG if you are on 11.2), hierarchical queries, XML or undocumented WM_CONCAT.
    SY.

  • LOV on an LOV

    In Forms, is it possible to have an LOV on an LOV? What I am trying to do is similar to the functionality in the browser
    menu. Take for example the File option in the browser menu. Click on File and a list displays, if you mouse-over the
    New option another list displays. Is this functionality possible with LOV's in forms? Perhaps another creative way to
    accomplish this result?
    Thanks

    Thanks for your responses.
    I have tried using tlist on a List Item and when I run the form I get a default value without a way to bring up a list.
    What I did:
    I created deptno on a form, I changed the Item Type to List Item. I changed the List Style to Tlist. I created a record
    group with a query that I want to use as my list. I created a when-new-form-instance trigger with the following
    DECLARE
    Error_Flag Number;
    BEGIN
    Error_Flag := POPULATE_GROUP('ListGroup');
    IF Error_Flag = 0 THEN
    POPULATE_LIST('DEPTNO', 'ListGroup');
    ELSE
    MESSAGE('Error while populating list group');
    END IF;
    END;
    I do this to build a dynamic list. When I run the form I get a default value (first item of the record group) in the deptno
    field without a way to pick another value. If I change the List Style to Poplist I can then pick from the list the department I
    want.
    I am still not sure how changing to a list item (tlist) is going to solve the problem. Now I need a list on a list.
    What I am trying to do is provide the user with two lists on one field similar to the File/New menu option in the browser
    menu. I have a field called CR_TYPE, when I click for list I want them to see a list of Types, when they bring the mouse
    over or highlight a type I want to bring up a list to the right of the current list with a list of the subtypes for that type.
    Is it possible with forms? Examples would be a tremendous help.
    Thanks

  • How to display data from a recordset based on data from another recordset

    How to display data from a recordset based on data from
    another recordset.
    What I would like to do is as follows:
    I have a fantasy hockey league website. For each team I have
    a team page (clubhouse) which is generated using PHP/MySQL. The one
    area I would like to clean up is the displaying of the divisional
    standings on the right side. As of right now, I use a URL variable
    (division = id2) to grab the needed data, which works ok. What I
    want to do is clean up the url abit.
    So far the url is
    clubhouse.php?team=Wings&id=DET&id2=Pacific, in the end all
    I want is clubhouse.php?team=Wings.
    I have a separate table, that has the teams entire
    information (full team name, short team, abbreviation, conference,
    division, etc. so I was thinking if I could somehow do this:
    Recordset Team Info is filtered using URL variable team
    (short team). Based on what team equals, it would then insert this
    variable into the Divisional Standings recordset.
    So example: If I type in clubhouse.php?team=Wings, the Team
    Info recordset would bring up the Pacific division. Then 'Pacific'
    would be inserted into the Divisional Standings recordset to
    display the Pacific Division Standings.
    Basically I want this
    SELECT *
    FROM standings
    WHERE division = <teaminfo.division>
    ORDER BY pts DESC
    Could someone help me, thank you.

    Assuming two tables- teamtable and standings:
    teamtable - which has entire info about the team and has a
    field called
    "div" which has the division name say "pacific" and you want
    to use this
    name to get corresponding details from the other table.
    standings - which has a field called "division" which you
    want to use to
    give the standings
    SELECT * FROM standings AS st, teamtable AS t
    WHERE st.division = t.div
    ORDER BY pts DESC
    Instead of * you could be specific on what fields you want to
    select ..
    something like
    SELECT st.id AS id, st.position AS position, st.teamname AS
    team
    You cannot lose until you give up !!!
    "Leburn98" <[email protected]> wrote in
    message
    news:[email protected]...
    > How to display data from a recordset based on data from
    another recordset.
    >
    > What I would like to do is as follows:
    >
    > I have a fantasy hockey league website. For each team I
    have a team page
    > (clubhouse) which is generated using PHP/MySQL. The one
    area I would like
    > to
    > clean up is the displaying of the divisional standings
    on the right side.
    > As of
    > right now, I use a URL variable (division = id2) to grab
    the needed data,
    > which
    > works ok. What I want to do is clean up the url abit.
    >
    > So far the url is
    clubhouse.php?team=Wings&id=DET&id2=Pacific, in the end
    > all
    > I want is clubhouse.php?team=Wings.
    >
    > I have a separate table, that has the teams entire
    information (full team
    > name, short team, abbreviation, conference, division,
    etc. so I was
    > thinking if
    > I could somehow do this:
    >
    > Recordset Team Info is filtered using URL variable team
    (short team).
    > Based on
    > what team equals, it would then insert this variable
    into the Divisional
    > Standings recordset.
    >
    > So example: If I type in clubhouse.php?team=Wings, the
    Team Info recordset
    > would bring up the Pacific division. Then 'Pacific'
    would be inserted into
    > the
    > Divisional Standings recordset to display the Pacific
    Division Standings.
    >
    > Basically I want this
    >
    > SELECT *
    > FROM standings
    > WHERE division = <teaminfo.division>
    > ORDER BY pts DESC
    >
    > Could someone help me, thank you.
    >

  • How to create a new row for a VO based on values from another VO?

    Hi, experts.
    in jdev 11.1.2.3,
    How to create a new row for VO1 based on values from another VO2 in the same page?
    and in my use case it's preferable to do this from the UI rather than from business logic layer(EO).
    Also I have read Frank Nimphius' following blog,but in his example the source VO and the destination VO are the same.
    How-to declaratively create new table rows based on existing row content (20-NOV-2008)
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/13-create-with-params-169140.pdf
    I have tried:
    1.VO1(id,amount,remark1) and VO2(id,amount,remark2) are based on different EO,but render in same page,
    2.Drag and drop a Createwithparams button for VO1(id,amount,remark),
    3.add: Create insertinside Createwithparams->Nameddata(amount),
    4.set NDName:amount, NDValue:#{bindings.VO2.children.Amount}, NDtype:oracle.jbo.domain.Number.
    On running,when press button Createwithparams, cannot create a new row for VO1, and get error msg:
    <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: For input string: "Amount"
    java.lang.NumberFormatException: For input string: "Amount"
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    Can anyone give some suggestions?
    Thanks in advance.
    bao
    Edited by: user6715237 on 2013-4-19 下午9:29

    Hi,CM,
    I'm really very appreciated for your quick reply! You know, today is Saturday, it's not a day for everyone at work.
    My principal requirement is as follows:
    1.select/check some rows from VO2, and for each selection create a new row with some attributes from VO2 as default values for VO1's corresponding attributes, and during this process the user may be cancel/uncheck or redo some of the selections.
    --so it's better to implement it in UI rather than in EO.
    2.it's better to implement this function with declarative way as in Frank Nimphius' blog.
    --little Jave/JS coding, the better. I only have experience in ORACLE FORMS, little experience in JAVA/JS.
    In order to get full information for the requirements of my use case, can take a check at:
    How to set default value for a VO query bind variable in a jspx page?
    (the end half of the thread: I have a more realworld requirement similar to the above requirement is:
    Manage bank transactions for clients. and give invoices to clients according to their transaction records. One invoice can contain one or many transactions records. and one transaction records can be split into many invoices.
    Regards
    bao
    Edited by: user6715237 on 2013-4-19 下午11:18
    JAVE->JAVA

  • Can I assign a task based on information from another column?

    For example:
    Let's say I have a column called "Question Type" and this column has multiple checkbox choice, those being:
         Math
         Science
         History
         English
         Other
    I want to allow users to be able to select multpile catagories for the question, like making one both math and science (which right now is completely possible)
    I then want another column that says who the problem is assigned to. Bob is good at math, Joe at science, Jill at histroy, Jenn at English, and Billy handles everything else.
    1) Is there a way that the task can be automatically assigned to my math expert Bob when I specify that the item I am adding is a math problem?
    2) If I make a problem both math and science, can the task be assigned to both Bob and Joe?
    Thanks in advance!

    Hi,
    According to your post, my understanding is that you wanted to assign a task based on information from another column.
    To assign task to multiple users, you need to:
    Create a workflow and add action: Start Approval Process.
    Click these user, select the Group, change One or a time(serial) to
    All at onec(paralle).
    Right click the action, select Properties, click ExpandGroups, change No to
    Yes.
    Then you can assign task to each member of the group.
    I recommend to follow the steps as below to achieve what you want:
    Create a custom list, add columns: Question Type(Choice); Assigned to(Person or Group).
    Create a workflow associated the list.
    Add conditions and action as below:
    Then the task can be automatically assigned to 123 when the item is a math problem.
    In addition, if you make a problem both math and science, the task can be assigned to both 456 and 789.
    You can add other conditions to satisfy all the requirements.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • ADF LOV and Cascading LOV in JDeveloper 11.1.1.5.0 Issue

    Hi,
    I have created business component ExpenseHdrView and added LOV and Cascaded LOV. If I run the application module I could see the LOV is working. It is displaying list of values and Return value(id value is not dispalyed as expected). But when I include the view in an ADF form then LOV is working but in the form when I select any value it is displaying the corresponding ID value. This is not in sync with business component.
    I am new to this ADF world. Am I doing anything wrong or missing something?
    Please help.
    Thanks,
    Mehabub

    Hi Kalpesh,
    I just tried, and didn't get that error - there must be something specific to your scenario. Have you tried the obvious solutions (reinstall)
    John

  • Filter based upon results of another request

    How do I troubleshoot a Filter based upon results of another request issue?
    I have a report that lists every account that purchased a product in May.
    I have a report that lists every account that purchased a product between Jan - April.
    I have a report that lists every account that purchased a product in May and also between Jan-apr. The problem is it's returning Account Names that are valid for May but not for Jan-apr and I dont' know why. It filters some but not others, interestingly enough it seems to split it down the middle.
    Report A = 222 customers
    Report B = 673
    Report C = 111???
    When I compare A to B manually I get 94.
    Any ideas as to how I troubleshoot this?

    Worked it out ;-D

  • How call lov to other lov

    Hi master
    I have two lov when I select value form one lov that call other lov asper selecte values
    Or how call lov to other lov
    Or any lov trigger where I write our code or call next lov or give new query
    Where he on_change lov trigger
    Please give me sample or idea
    Thanking you
    Aamir

    Hi,
    Check this
    Reseting adf form doesn't Reset LOV fields

  • How to change the values in an LOV based on values selected in another LOV

    Hi,
    I have a requirement in ADF where there are two LOVs. Based on the values that I select in the 1st LOV, the values in the second LOV should change dynamically.
    Also, the 1st LOV accepts 3 values, for every value I select, a different query is executed to populate the 2nd LOV.
    I have a rough thought that I can use 3 different read only view objects containing these 3 queries. And based on the value I select in the 1st LOV I can execute the corresponding View object from the backing bean. But my doubt is how to link the results of that query that is executed to populate the 2nd LOV.
    Thanks in advance.
    Edited by: 886591 on Sep 21, 2011 4:48 AM

    Hi Brisk,
    Thanks for your reply.
    The link that you have provided explains how to disable and enable the other LOVs based on a parent LOV. But in my case there are two Select One Choice fields i.e. the dropdowns (sorry that I addressed it as LOV in my previous post which might be confusing). There are 3 static values in the parent dropdown where each of them are associated with a different query. for e.g if the three values in the drop down are A, B and C; if i select A, then query associated to A should be executed ; if i select B, then query associated to B should be executed and if I select C, query associated to C should be executed. Then the output attribute of that query should be populated in the child dropdown.
    Please let me know about the solutions to this.
    Thanks,
    Kavitha

Maybe you are looking for

  • LR "Edit in..." command won't sync with PS 2014

    After upgrading to LR 5.5 and PS 2014, LR no longer is able to send a file to PS via the "Edit in..." command. LR does start PS when I choose "Edit in..." but the photo doesn't open. Instead, I wait a good minute, then LR displays the first error mes

  • Put purchased videos from iTunes on to a DVD with iDVD?

    So I bought some Kim Possible episodes from iTunes and I am trying to put them on a DVD. I can't figure out how, because for one thing, even if I try to put the video in iMovie first, the video cant even be used...so any ideas from anyone? And I can'

  • Why Index size is bigger than table size?

    Dear All, I found in my database my tables sizes is coming around 30TB (All Tables in Database). and my index size for the same is 60TB. This is data ware housing environment. How the index size and table size are differing? Why they are differing? w

  • How to turn off the brush transparency view when resizing the brush on CC?

    So, when Adobe introduced the "brush preview" when using the Control+Option drag to change the brush size/hardness (not sure if it's called this way), I was ecstatic! It made my workflow much faster without having to go to the menu to change the brus

  • Qosmio F60-00Y slow/laggish

    Hello, I've got a Qosmio F60-00Y notebook which is generally very fast but yesterday night at around 10:30-11:00 PM (16th September Australian Eastern Standard Time) I noticed that it was lagging - scrolling on Firefox was 'delayed' rather than smoot