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 :)

Similar Messages

  • 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

  • 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 dynamic ed flash charts based on user selected fields in Orac

    Hi all,
    Can any of the experts please tellme "how to create dynamic ed flash charts based on user selected fields in Oracle apex".
    Thanks
    Manish

    Hello,
    Lots of different ways to do this, I blogged about one way (using a Pipelined function) here -
    http://jes.blogs.shellprompt.net/2006/05/25/generic-charting-in-application-express/
    Other options include using a PL/SQL function returning the string to use as the dynamic query etc.
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • 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 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 an LOV based on a dynamic query

    Hi,
    Can someone tell me how to query a dynamic query for LOV. On my base page I have a dropdown-box (that will show the table names for searching) and is dynamically populated based on users access e.g. if user A logs in he may see 5 values (these values are basically table names) in a drop down if user B logs in he may see 10 values. I also have two input fields one field a user can enter value and the other field is read only and a torch icon for LOV so the user can search and select values that are populated in the input fields on the base page.
    How can I have my LOV that takes in a value selected in the dropdown and anyvalue entered in one of the input fields and search in the table selected in the dropdown box.
    Basically my LOV should do a search on the table and some search value passed when clicking on the torch icon. So a user can select any table-name in the drop down and my LOV should do a search only on the selected table. Once on the LOV Popup want to have a search field there but it only searched on the table selected in the dropdown on the based page. And the selected value on the LOV Popup page gets populated in fields on the base page.
    Any help is appreciated.
    Thanks

    Hi,
    I have created 4 SQL Based VO's with the following sqls
    SELECT header_id AS ID, to_char(order_number) AS NAME
      FROM oe_order_headers_all
    SELECT party_id AS ID, party_name AS NAME
      FROM hz_parties
    SELECT quote_header_id AS ID,
           (quote_number || CHR (45) || quote_version) AS NAME
      FROM aso_quote_headers
    SELECT sales_lead_id AS ID, to_char(lead_number) AS NAME
      FROM as_sales_leadsI created on LOVRegin and have the following 2 messagestyle items now what do I set in the ViewInstance and View Attribute fields
    srcid
    srcname
    Can you provide some sample code to set ViewUsage and whereclause that I need to put in the controller of LOVRegion.
    Thanks

  • 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

  • OAF:How to create a lov

    Hi friends ,help me to learn OAF
    Iam new to oaf i hav started leatning one by one in OAF
    I hav created a QueryPG with 3 field (PersonId,FirstName,PhoneNO)...and i can able to query the data from the DB
    And i hav created a CreatePG with fields (PersonId,FirstName,PhoneNO,LastName,Email,Address) and i can able to insert a new row into my DB
    Now i want to create LOV in this .jpr for the PhoneNo field..... FOR that wat i hav to do ?
    Do i want to create a new Package for the LOV?
    And one doubt were cani see my classfile ? and to ftp the class file to the server ?And how to bounse the apache?
    Adv thanks
    thiliban
    Edited by: user13307444 on Aug 30, 2010 1:47 AM

    Do i want to create a new Package for the LOV?Yes create BC4J component structure like xx.oracle.apps.xx.xx.lov.server and xx.oracle.apps.xx.xx.lov.webui.
    For creating a LOV.
    1. Create a item of Type MessageLovInputBean.
    2. Create a LOV VO
    3. Create a table Region inside it
    4. Create LOV Mapping
    Follow exercise : Search in below link to see how to create LOV.
    JDEV_INSTALL_DIR/jdevdoc/WebHelp/fwkdevguide.htm
    So many question in single thread :)
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • 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 a LOV for a parameter in a Discoverer workbook

    How can I create a LOV's for a parameter in a Discoverer Workbook?

    Hello
    If the item you are basing the parameter on already has a list of values then the list will automatically be displayed.
    If you are creating a generic parameter, probably using the <None> link, or you are basing the parameter on an item in a folder that does not have a list of values then there is no way to get one.
    You can create lists of values based on items in a custom folder but then you still need to associate the LOV with an item. However with a little ingenuity and thinking ahead you can actually get LOVs for just about every parameter, just ensure the parameter is based on an item and not using <None>
    Hope this helps
    Michael

  • How to create 'Flashlight' LOV in iProcurement

    Hi
    We have a need to create a LOV with flashlight functionality under Non-Catalog Request store in iProcurement.
    Can someone assist with how I can find out which OAF components to modify to achieve this? Or if I can get the steps to implement this it would be very much appreciated!
    Requirement:
    The Flashlight has to appear in a field (Employee) which in turn will be in a separate region (created by using the Information Templates functionality of core purchasing). This field (Employee) in the additional information section will only be visible for data entry in this region based on a 'specific value' selected in a different field. If this 'specific value' is not selected, the default will not display this 'additional information' region on this page.
    Thanks!

    Do you want to just create a flashlight icon or an LOV component? If its LOV, did you go through the LOV section of OAF Dev guide to know about the component. Its just the way you have highlighted the Flashlight word, which makes me think that your side of homework is not done :)
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to create an lov with command link

    hi all
    i want to create an lov such that each of the values in the list have a command link. when i click on a particular value, that value should be removed from the lov list and displayed on my page.
    like for example, i want to send a mail to many ppl at the same time. from my address book, i click on the name of the person i want to send the mail and that name is added to my "Send To" list.
    Can anyone help me do this? i'm using jdev10g adf.
    thanks.
    preeti

    Hi,
    you should use the shuttle control in ADF Faces for this
    Frank

  • How to create a Game where each answer controls a flash animation?

    Hi,
    I need to create a quiz where each correct answer advances a character on a game board and each incorrect answer advances the "enemy" character.  At the end the results need to be saved to a MySQL database.  Is this possible with Captivate?
    Currently I have the game developed, but I have done everything in Flash, I would like to use the quiz creation tools in Captivate to create the quiz since the quiz I created is not as fancy as what can be done with Captivate.
    I have Flash CS3.
    Thanks for your help.
    LA

    If I get that right: You created that "game" in Flash. The questions will be made in Captivate. So you will insert the swf. file (the game) onto your captivate slide.
    Have you tried to access the Captivate variable "cpQuizInfoLastSlidePointsscored" within flash? So you could tell the game that if this variable is zero /or 10) the flash file should do something
    About this MySQl thing
    Mybe this will help:
    http://www.adobe.com/devnet/captivate/articles/store_cpresults.html
    http://pipwerks.com/journal/2008/09/07/send-captivate-quiz-data-to-javascript/
    best regards
    captiware

Maybe you are looking for