How to create a LOV where he is forced by another field

I'm trying to figure out how to get a LOV to be limited by the value of a column

A hypothetical example (the real app is quite different):

I have 2 tables
clientInfo, with fields fname lname, age, city, postal code
In another table called cityZip I zip & city

So I create a report on a table shape
Select fname lname clientInfo, age, city, postal code

This generates a form of beautiful table, an entry for each client... but I want the user to go to the bottom of the selectList representing 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 |) ' ' || d of the city), zip_KEY r
from cityZip where cityZip.zip =: zip code

The problem is that the use of the postcode in the LOV query does not contain the zip code of the current record value, so it does not work! Does anyone have an idea how this could be done?

Hello

The problem is that the data in your report are not contained in APEX elements in your page. Try to look at the combination of the form & report and put your selection list in the form. When you click 'Edit' on a line, that data fills out the form. You will have then the information limit the query for your LOV.

Good luck
Don.

You can reward this answer by marking as being useful or correct :)

Tags: Database

Similar Questions

  • How to create a LOV the same table in the adf.

    Hi all

    I have a simple table of database with over any dependant on other tables. In my table one of my name of the column as "Gander".
    Since I have given in table mod "or F. What is my requirement in simple with table search page that I want to search with Gander field also with other areas.
    while I want to show that gender as LOV in the search panel.
    I tried with when we have a relationship with some other table.but how to create LOV to field when the field in the same table only.

    as M or F even use cases or not like.


    Concerning
    Siva

    Siva,

    What is your version of JDev? What technology you are using (BC4J?)?

    Assuming you are using BC for the model, you tried to create another object view based on query something like

    select distinct gender, gender from your table
    

    and then use this VO for LOV?

    Arun-

  • How to create a context-sensitive help when you move a field/menu drop down message

    Hello

    Anyone know how to create a message dialog box helps to appear when a user hovers over a field, a menu drop-down or a subform?  Rather than create a context-sensitive help. I want to be able to give the user a hint what to do they have their mouse over a part of the form.

    Thank you for your help.

    Best regards.

    You can make the text in the tool tip box in the accessibility to this palette.

  • OFA: how to create a lov

    Hi friends, helping me learn the OFA
    IAM new to oaf I HAV started leatning one by one in the OPS

    I HAV created a QueryPG with 3 field (PersonId, FirstName, PhoneNO)... and I can't able to query the data from the database

    And I HAV created a CreatePG with fields (PhoneNO, PersonId, FirstName, LastName, Email, address) and I can't able to insert a new line in my DB

    Now, I want to create LOV in this .jpr for PhoneNo field... THAT wat I HAV to do?

    I want to create a new Package for the LOV?

    --------------------------------------------------------------------------------------------------------------------------------------------------
    And doubt were cani see my classfile? and for the class file for the ftp server? And how the apache bounse?


    Thank you, ADV
    thiliban

    Published by: user13307444 on August 30, 2010 01:47

    Here are the steps

    Start by creating a package of BC4J for your object of related model LOV
    Create the view LOV object
    Add this VO to your AM
    Create the region LOV
    Add a table in this region
    Create a message field Input LOV
    Add the mappings of the LOV

    Now you can test the same. For more information please see the tutorial exercise.

    Thank you
    AJ

  • How to go from LOV where clause Page CO params

    Dear members,

    I have an OFA Page for which I have defined a CO.

    I also have a LOV for which I have two parameters in where clause.

    Now my requirement is to pass the two values in the where clause of LOV to the co of the corresponding page parameters.

    Anyone can guide me please in implementing this requirement.

    Best regards
    Arun Reddy

    Hi Arun

    as gyan, suggested trying attching a new controller of lov or extend its existing controller.

    In the CO page
    store the parameter which must be transmitted to lov in pageContext.putSessionValue (paramName, paramValue)

    In the Lov CO page, processrequest
    retrieve the stored values using pageContext.getSessionValue (paramName)

    Concerning
    Ravi

  • How to create a table, where the visitor can navigate by selecting the column they want to see results for in alphabetical order?

    First of all, I would like to know the name of this type of table.

    ex.

    Name of the song. Artist | Album | Date | Quality | Etc.

    Select the one you want to see less to higher value, select again to see bigger less valuable.

    SortTable: make all your tables sortable

    or with jquery

    jQuery Table sorting | The Plugin stupid table by JoeQuery

  • How to create a partition only for my operating system another to play with me?

    My relay problem that I had towing partition C: and D: drive, but I had to remove my D: drive because my C: drive was full, and now I want to create and partition only for my O.S. and only this, so that any other program can be installed in my D: drive.

    Someone could answer my question A.S.A.P. Please, I want to know if I can do it or not, and if I can how to do it.

    Before trying to partition, which is shown in management disks for disk 0? (the name of the partitions & sizes)

    This PC came with win7 preinstalled, and if yes do you have does the recovery discs?

    Note If you attempt to partition, without first giving that info, you can trash your system and lose everything on the disc

  • [SOLVED] How to create public keys to ssh to ESXi to another host?

    I have read a number of different sites trying to find information on how to do it properly, but I had no luck.  I'm afraid at this point I'm all mixed up or miss me something simple [painfully].

    My goal is to create keys so that I can ssh/scp, as root, the ESXi server to another server in linux/unix under a different name.  Most, if not all of the sites I found coverage today the reverse: ssh/scp from another machine to the ESXi server.  I assume that ssh ESXi-> another host via keys is possible...?

    I believe that I'm almost there, but in all honesty, I don't know.  Here's what I've done so far.

    • RSA and DSA keys with dropbear created on the ESXi Server
    • convert keys RSA and DSA dropbear ssh format
    • Cat's public RSA and DSA keys in the ~/.ssh/authorized_keys on the server that I would like to ssh/scp
      • even tried to make a copy of authorized_keys as authorized_keys2 on the destination server
      • same CAT had the public keys of the ESXi authorized_keys & authorized_keys2
    • went up to copy the private key (!) from the ESXi server on the server I ssh/scp area in

    In regards to the box, I'm remote in I

    • keys generated with ssh-keygen - t dsa and rsa
    • typed in a sentence
    • CAT had the public key in .ssh/authorized_keys on ESXi box
      • as above in desperation I added it in the file authorized_keys local
      • copied authorized_keys to authorized_keys2
    • copied private keys (!) of the destination inbox ESXi machine

    I tried ssh username FQDN, ssh username@FQDN-l and with the IP address itself, whenever I was asked for a password.  Naturally if I just ssh hostname it trying to connect as root, which is not allowed and will fail.  Again, I apologize because I'm probably all mixed now. might be wise to simply erase all keys & start over.

    Is this possible?

    Is anyone interested in lending a hand?

    Resources

    http://communities.VMware.com/message/1373428#1373428

    http://communities.VMware.com/docs/doc-8890

    http://pkeck.myWeb.uga.edu/SSH/

    http://computerpr0n.com/2011/04/ESXi-remote-management-part-2/

    http://oreilly.com/pub/h/66

    I blogged about this recently:

    http://blog.Cowger.us/?p=15

  • How to create a counter with timer and the dynamic text field?...

    I am creating a 'meter' item that uses a dynamic text box formatted for decompter.1 in increments of 3 times per second, from a specified value (so the viewer would see 3.1, 3.2 then... etc.)

    Here's the code so far:

    var counter:Number;
    counter = 3.0
    
    counterText.text=(String(counter));
    
    var timer:Timer = new Timer(300);
    timer.addEventListener(TimerEvent.TIMER, onTimer);
    timer.start();
    
    function onTimer(event:TimerEvent):void
    {
        ???
    }
    
    

    What I can't understand, is what should go in the box function for ajouter.1 seconds whenever the clock cycles. Any help would be appreciated!

    use:

    var counter:Number = 3.0;var increment:Number = .1;var upperlimit:Number = 12;
    
    counterText.text=(String(counter));
    
    var timer:Timer = new Timer(333);timer.addEventListener(TimerEvent.TIMER, onTimer);timer.start();
    
    function onTimer(event:TimerEvent):void
    {counter += increment; counterText.text = counter.toString();if(counter>=upperlimit){timer.stop();}}
    
    
    
  • How can I do if data is entered in a field where it is mirrored on another field in the document?

    I don't want them even named as I don't want the other appearing until it is entered in the first field.

    Hello

    If the fields in the form have the same name then the data entered in a field is filled automatically in others for the same name. For example, if there is a form field custom field named 1 in a document, and there is another domain with the same name (custom field 1) in the other document and download you together in a single transaction and send the document, then the data entered in the document in a custom field 1 will be automatically entered in the custom field 1 another document as well. This also applies to a single document only as well.

    Does that help?

  • How to create a layout ePub fixed?

    I am trying to create a book of photographs to sell as an ePub on the kindle store - I did a lot of iBooks and published in the iBookstore - unfortunately it recently was rejected because Apple censorship rules. My books exactly the look I want to do in iBooks and want to recreate as much as possible to sell in the mobi and EPUB. I noticed that unfortunately there doesn't seem to be a program similar to iBooks to author of ePub files... I tried InDesign CS6 for EPUB but moved to Pages that I thought that it would be simpler.

    So far I can't find anything that explains step by step how to make fixed provision EPUB - in any program - usually I use Lynda.com but they only fixed layout files ePub for the iBookstore. My knowledge of inDesign and iBooks author is pretty good but my knowledge about HTML is limited. Is - this accomplishable?

    Here are some links that might be useful for you to help you to start with a fixed layout EPUB:

    How to create configuration fixes iBooks by R. Scot Johns

    Field Guide to layout sets for electronic books a free ebook on the ins and outs of the EPUB fixed layout (I found it only today if you have not yet read)

    EPUB 3 Documents available fixed

    ePubCrawler - Fixed InDesign to layout EPUB converter. (a tool to convert InDesign documents available fixed ePub. It worked very well for me: I had to make only small adjustments on the CSS styles).

  • How to create a custom control for a button where the look apply to everyone else but not the Boolean text?

    Hi all

    I would like to create a button custom as a master, so that if I change the look of the master all other buttons are changed.

    I did it with a custom control, such as a 'type strict def' otherwise the look will change , BUT if I do this as a strict type def I can't change the Boolean text more which should be different on each button.

    How to create a master control of a button where the look apply to everyone else but not the Boolean text?

    Steve Chandler wrote:

    I don't think that you can do. I just looked and as I suspected the Boolean property text is read only for strict typedefs, you cannot use the nodes property to change the text.

    As a just solution make it a typedef. When you want to change the open look the typedef and strict rendering, make your changes, then make no strict again. You will need to update the text Boolean yet once for all instances. Kind of pain. This is perhaps something for the exchange of ideas.

    Alternatively, remove Boolean text and replace with legend

  • How to create a ViewObject attribute where value to get database query

    Hi Expert,

    I have a case for the value of database query. How to create the view additional attribute object where the value get database query?

    parameter binding of attributeId object in view I can do this in ADF with JDeveloper 11.1.1.6.

    Thank you

    Kind regards

    Wade W

    My problem is solved, maybe it's a bug in the JDeveloper 11.1.1.6.0

    I've got error (oracle.jbo.expr.JIEvalException) Houston-25077: name amount not found in the given object: oracle.jbo.server.ViewRowSetImpl@8690e3.

    When I develop by tab Overview (presentation of the business components). It is so strange, because I have an another transient viewAttribute that refer to another object in view and not get an error message like this before I create viewAttribute HeaderAmount.

    Maybe its ridiculous appearance, but when I go to View (lineVO.xml) object and tab to the source xml file, I have edited here. like to write

    <>

    Name = "HeaderAmount".

    IsUpdateable = "false".

    IsSelected = "false".

    IsPersistent = "false".

    PrecisionRule = 'true '.

    Type = "Oracle.jbo.domain.Number"

    ColumnType = 'NUMBER '.

    AliasName = 'VIEW_ATTR. '

    SQLType = 'DIGITAL' >

    <>

    Value = "ActivityHeaderId" / >

    and make sure this xml file are:

    <>

    Name = "ActHeaderView1VO".

    ViewLink = 'model. ActHeaderLineLink ".

    Type = "Oracle.jbo.Row"

    Reversed = 'true '.

    IsUpdateable = "false" / >

    When I try to re-run the application model and it's work...

    Thanks for your help. really appreciate

  • How to create a user interface, where my customers can create an account with my site

    How to create a user interface, where my customers can create an account with my site

    Hello

    Some associates of threads

    Re: How can someone create an account / register on my site?

    Re: Can I create a login/password in the Muse for a HTML5 page or two?

    Let me know if you have any question.

  • How to create LOVs manually.

    Hi, please tell me the details about the LOVs create manually.

    Hello

    Open the link below and you'll find video clips on lov.

    http://video.google.com/videosearch?hl=en&source=hp&q=how+to+create+lov+manually+in+oracle+form%3F&um=1&ie=UTF-8&ei=u_4AS6_9BtrKjAfQ2aWYCw&sa=X&oi=video_result_group&ct=title&resnum=1&ved=0CA4QqwQwAA#

    If its useful/correct it please mark. Thank you.

    Sarah

Maybe you are looking for