If I have the two LOV in the same table then how to connect when I select first and second LOV value also change?

Mr President

If I have the two LOV in the same table then how to connect when I select first and second LOV value also change?

My two fields are FLOW AND DR_NAME

FLOW = ACCT_ID

DR_NAME = ACCT_NAME

I created with success of LOV for these fields.

First LOV gives acct_id in the debit field and second LOV gives the value of acct_name to dr_name.

How can I report these lov, it's that when I change my acct_id then acct_name also change

I have these two tables

CREATE TABLE "NOM"  (
  "ACCT_ID" VARCHAR2(7) NOT NULL ENABLE, 
  "ACCT_NAME" VARCHAR2(50) NOT NULL ENABLE, 
  "O_BAL" NUMBER(13,2),
  CONSTRAINT NOM_PK PRIMARY KEY ("ACCT_ID")ENABLE
   
   );
CREATE TABLE "VOUCHERDET" (
  "V_ID" VARCHAR2(9) NOT NULL ENABLE,
  "LINEITEM" NUMBER ,
  "DEBIT" VARCHAR2(7) , 
  "DR_NAME" VARCHAR2(50), 
  "CREDIT" VARCHAR2(7) , 
  "CR_NAME" VARCHAR2(50), 
  "PARTICULARS" VARCHAR2(100), 
  "AMOUNT" NUMBER(21,2),
CONSTRAINT VOUCHERDET_PK PRIMARY KEY ("V_ID","LINEITEM")ENABLE, 
CONSTRAINT PUR_SAL_LINE_POD_FK FOREIGN KEY(PROD_ID)
  REFERENCES PRODUCTS (PROD_ID)ENABLE,  
CONSTRAINT VOUCHERDET_DEBIT_FK FOREIGN KEY ("DEBIT")
   REFERENCES "NOM" ("ACCT_ID") ENABLE, 
CONSTRAINT VOUCHERDET_CREDIT_FK FOREIGN KEY ("CREDIT")
   REFERENCES "NOM" ("ACCT_ID") ENABLE,  
CONSTRAINT VOUCHERDET_V_FK FOREIGN KEY ("V_ID")
   REFERENCES "VOUCHER" ("V_ID") ON DELETE CASCADE ENABLE
  );

Concerning

so, instead of this second ActId, choose ACCT_NAME:

Tags: Java

Similar Questions

  • ADE 4.5 keeps freezing ("not responding") when I plug my Bebook mini E drive. When I unplug the E drive it immediately starts working again. I tried different versions of the ADE (2.0, 3.0, 4.0, 4.5) but they all have the same question. How can I fix?

    ADE 4.5 keeps freezing ("not responding") when I plug my Bebook mini E drive. When I unplug the E drive it immediately starts working again. I tried different versions of the ADE (2.0, 3.0, 4.0, 4.5) but they all have the same question. How can I fix?

    His player on this list: Adobe Digital Publishing Solution?

  • Can we have hash partition and list on 2 columns in the same table. How.

    Can we have hash partition and list on 2 columns in the same table. How.

    Work on 10g release 2

    # List-Hash is a valid composite partitioning strategy 11 from g.

  • I want to click to open the message, but it is to open when I select it, and I can't get rid of the open under the messages pane.

    I want to click to open the message, but it is to open when I select it, and I can't get rid of the open under the messages pane.

    The preview area is called the messages pane. You can activate the message on and outside pane using either:

    • F8 key
    • Press the Alt key to display the classic menu bar > View menu > page layout > the message pane

    I don't know why I can't find it in the new menu (3 bars). There has got to be somewhere.

  • I got two sources of camera the same audio recording - how to use multicam to audio synchronization and display TWO cameras simultaneously

    I had two sources of camera recording the same audio - I want to be able to do is use mulitcam SYNCHRONIZE the audio and video at the same time and be able to use the two clips simultaneously in a video - multicam - how can we use the TWO videos? In Multicam, I can only go to one video at a time - is to detach anyway, so I can trim two camera responsition camera and 1 on a 16:9 screen? What would be the best way to do this? Any help would be welcome - Ty

    Two PPut copies the multicam in editing element, one on the other.

  • Hello, I currently windows 7 Home premium 64-bit running on my laptop, can I install windows 7 ultimate 32 bit over this as an upgrade? I have the ultimate disc then, how do I use it? Thank you, Mark.

    I am running windows 7 Home premium 64 bit on my laptop. I have a disc of windows 7 ultimate 32 bit, is it possible to upgrade to the ultimate disk, if so, how, if not how do I use the ultimate disc? Thank you very much, Mark.

    No, you can't, but if its Windows 7 Ultimate you want, simply use the Windows 7 Ultimate product key to upgrade Windows 7 Home Premium to Windows 7 Ultimate using Anytime Upgrade.

    If the license for Windows 7 Ultimate, you have access to is a retail version update or complete, you can use the product key and the Express upgrade to Windows 7 Home Premium to Windows 7 Ultimate. First of all, check that the edition of Windows 7, you are upgrading is already enabled (if it isn't, you will encounter complications and that you might start all by performing a clean installation). Click Start, type Anytime Upgrade, click on the option enter a key, enter the key of Windows 7 Ultimate edition at the request, click Next, wait while checking the key, accept the license agreement, click on upgrade, wait while the software upgrades, (it may take 10 minutes or more depending on the if updates are required) your computer restarts automatically, after the reboot, Windows 7 will notify you updating the computer, the computer will restart once more automatically and will be completed the upgrade, a window will appear notifying the upgrade was successful and your computer is ready to use, click Close, you should be upgraded to Windows 7 Ultimate files the stored settings and programs.

    Cases of failure to upgrade Express:

    Windows 7 Anytime Upgrade fails:

    If your getting the following: error: Windows Anytime Upgrade failed
    This problem may occur if Windows 7 SP1 was downloaded by Windows Update, but has not yet been installed.
    See: http://support.microsoft.com/kb/2660811

    = Other reasons and possible corrections.

    Windows Anytime Upgrade fails with the error:
    "every time that the upgrade has failed. Go online to solve the problem.
    http://support.Microsoft.com/kb/2658652

    If Anytime Upgrade still does not work:

    Shut down and restart your computer.

    Make sure that the Windows updates have been installed.

    Download the hotfix that contains a tool called CheckSUR, this tool will look at the package and the maintenance of records and difficulty any data corrupted, the tool is listed under kb947821 he can be found at the following link http://support.microsoft.com/?kbid=947821

    If Anytime Upgrade still does not work, turn off the user account control:

    1. go in user accounts in Control Panel

    2 change user account control settings

    3. pull the slider to the level as low as possible

    4. restart the PC

    5. pass by the "Anytime Upgrade" as usual

    Try the following:

    1 disable any security software before attempting to upgrade

    2. make sure that your computer is updated (devices and applications)

    3. disconnect all external devices before installing.

    4. check your hard disk for errors:

    Click Start

    Type: CMD, according to the results, right-click CMD

    Click on "Run as Administrator"

    At the command prompt, type: chkdsk /f /r

    When you restart your system, your computer will be scanned for errors and will try to correct them.

    1. click on start, type msconfig in the search box and press ENTER.

    User account control permission

    If you are prompted for an administrator password or a confirmation, type the password, or click on continue.

    2. in the general tab, click Selective startup.

    3. under Selective startup, clear the check box load startup items.

    4. click on the Services tab, select the hide all Microsoft Services check box, and then click Disable all.

    5. click on OK.

    6. When you are prompted, click on restart.

    7. after the computer starts, check if the problem is resolved.

    Also run the Windows 7 Upgrade Advisor:

    http://www.Microsoft.com/Windows/Windows-7/Upgrade-Advisor.aspx

    Who should I contact if I have problems installing and / or activation of my product key card?

    Please contact to the: www.windows7.com/getkeysupport.

    If all above fails them, install Windows 7 Service Pack 1, and then try the Express Upgrade:

    Learn how to install Windows 7 Service Pack 1 (SP1)
    http://Windows.Microsoft.com/en-us/Windows7/learn-how-to-install-Windows-7-Service-Pack-1-SP1

    If your key is not valid and you will need to change the keys, you may need to Open regedit and remove first the ProductKey value in the following registry key:
     
    HKCU\Software\Microsoft\Windows\CurrentVersion\WindowsAnytimeUpgrade

  • I have a Mac Book (2006), all my emails since two and a half years have the same date. How to bring back the original dates?

    Of 'date and time' I tried to drag the month and year of my menu bar. He did not stay, I did several times, but nothing helped. I closed the window and went back to my Thunderbird email to see the date, I tried to use became the date in the column "date of receipt" of all of my emails back for 2011. I changed the date a few days later, and then the date is changed on all my emails. I want to cancel everything I done the dates so that the emails show when they were initially received. I managed to get "the order received" which helps a little, but I don't see the original dates.

    I checked "set date and time automatically", but it does not change the dates on my saved emails.

    Of 'date and time' I tried to drag the month and year of my menu bar.

    Is this something Mac?

  • Why is there no option 'Tools' at the top of the iPod Explorer window in Windows 7 when I select start and computer?

    You need to open the music hidden in the iPod file.  Learned to use the Tools option but it appears when I choose to start, computer and iPod open file after plug into my PC.  Help?

    Hi David,

    Thanks to join Microsoft Community where you will find all necessary information about the Windows operating systems.

    You can't see the menu bar tools option in Windows Explorer.

    I suggest you to visit:

    Display the menu bar in Windows Explorer

    http://Windows.Microsoft.com/en-in/Windows7/show-the-menu-bar-in-Windows-Explorer

    If you need assistance or if you have problems of Windows in the future, let us know and we would be happy to help you.

  • FRM - 40202:Field must be entered on two blocks with the same table

    I have two blocks, blockA and blockB, both from the same table that is tableX.

    When I ask of blockA and it worked, then I go to blockB and modify data, and save, there is no problem. But when I do not run the query of blockA or if the query did not return any results, I go to blockB and change some data then save, I got this error. The cursor then go to first blockA point. So now, I have to delete this empty line before the Save.


    Any suggestion?

    you set a few initial values programmatically for a block?
    in this case, the status changes to INSERT and you will get this message.
    You can check the staus with GET_RECORD_PROPERTY (1, "A BLOCK", STATUS), e.g. with the trigger KEY-COMMIT.

  • parents and children of the same table records

    I want to create a query that is a union such that 2nd resultset is based on the game of results 1. I have a table that has parent and child records in the same table.

    Table: EVENTS
    EVENT_ID
    PARENT_EVENT_ID
    CREATED_DATE
    (other columns)

    If PARENT_EVENT_ID is null, then this is a parent record, otherwise it is a book of the child. I want to select all parent records then union them with all the related child records... something like this:

    Select * from EVENTS where CREATED_DATE < sysdate - 90 and PARENT_EVENT_ID is null - all parents
    Union
    Select * event where PARENT_EVENT_ID in (select EVENT_ID of EVENTS where CREATED_DATE < sysdate - 90 and PARENT_EVENT_ID is null)-include all children selected from the top parent

    It works but it of kind of ugly, I want to avoid using the subselect in the 2nd because it is a repeat of the 1st statement, is there a way to alias the first statement and only refer to him in the 2nd query?

    Hello

    CONNECTION is very similar to a UNION on the same table. How is this:

    SELECT     *
    FROM     events
    WHERE     created_date     < SYSDATE - 90
    START WITH     parent_event_id     IS NULL
    CONNECT BY     parent_event_id     = PRIOR event_id
         AND     LEVEL          <= 2    -- Maybe
    ;
    

    ?

    To answer your question: Yes, you can still keep the result set of a query and the Treaty as if it were a table or vew, like this:

    WITH     roots     AS
    (
         SELECT     *
         FROM     events
         WHERE     created_date     < SYSDATE - 90
         AND     parent_event_id     IS NULL
    )
    SELECT     *
    FROM     roots
         --
    UNION ALL
            --
    SELECT     *
    FROM     events
    WHERE     created_date     < SYSDATE - 90
    AND     parent_event_id     IN (
                          SELECT  event_id
                          FROM    roots
                      )
    ;
    

    It's always a bit ugly, however. I would use CONNECT BY or from Oracle 11.2, a recursive WITH clause (which is explicitly a UNION), or, in any version, a self-join, like this:

    SELECT     c.*
    FROM          events  c
    LEFT OUTER JOIN     events     p  ON   p.event_id  = c.parent_event_id
    WHERE   p.parent_event_id  IS NULL
    ;
    

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the results desired from these data.
    Report where the queriy above (the one you decide to use) is producingthe bad results and explain, using specific examples, how you get the right results from these data in these places.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).
    See the FAQ forum {message identifier: = 9360002}

  • Report with multiple columns NUMBER of counts of the same table

    I am new to discoverer, so I'm a little lost.

    I work to create a report to show usage data and Knowledge Base of e-business. I have written using subqueries in SQL query that is in the format:

    Solution number | Soultion title | Solution views. Positive feedback | Negative feedback
    Title of 12345 _ 345 _ 98 34


    The entries 'Views', 'Positive' and 'Negative' are stored in the same table, so I do a count where setid = setid and usedtype = VS, then count where usedtype = usedtype and PF = NF

    Discoverer, I can get the number of solution, the title and THE totals but I can't seem to understand how to get an ACCOUNT for three different things from the same table in the columns on the same line.

    When I go on change map-> select the items once I select the option NUMBER of the UsedType column in the CS_KB_SET_USED_HISTS table, I can't select it again. I also found way now to add a column based on a query entered.

    If someone could help it would be much appreciated.

    Thank you

    Published by: Toolman21 on December 2, 2010 14:17
    _ to correct spacing added.

    Hello
    You can separate the column with a case or decode.
    for example to create 2 calculations:

    case
    When usedtype = "PF".
    then - that contain both
    0 otherwise
    end

    case
    When usedtype = 'NF '.
    then - that contain both
    0 otherwise
    end

    After that, you can create the aggregation count on those.

    Tamir

  • Two iPhones, will have the same content

    Two iPhones, it will have the same content, like NOTES, FB, WHATSAPP AND YAHOO MAIL?

    I am worried because my friend is using my old iPhone and it can receive notifications the same as what I get.

    If you distributed or sold your phone to your friend, you should follow the steps here before releasing the device. If you did, you have no worries.

    What to do before you sell or give away your iPhone, iPad or iPod touch - Apple Support

  • I create a form based on two tables that have sequences also. When I create insert only row is inserted in the fields in table first and second fields of the table are empty. Why?

    Mr President.

    I create a form based on two tables that have sequences also. When I create insert only row is inserted in the fields in table first and second fields of the table are empty. Why?

    formdoubletables.png

    the page source is

    <?xml version='1.0' encoding='UTF-8'?>
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                    xmlns:f="http://java.sun.com/jsf/core">
      <af:panelFormLayout id="pfl1">
        <af:group id="Group">
          <af:inputText value="#{bindings.VoucherId.inputValue}" label="#{bindings.VoucherId.hints.label}"
                        required="#{bindings.VoucherId.hints.mandatory}" columns="#{bindings.VoucherId.hints.displayWidth}"
                        maximumLength="#{bindings.VoucherId.hints.precision}"
                        shortDesc="#{bindings.VoucherId.hints.tooltip}" id="it1">
            <f:validator binding="#{bindings.VoucherId.validator}"/>
            <af:convertNumber groupingUsed="false" pattern="#{bindings.VoucherId.format}"/>
          </af:inputText>
          <af:inputDate value="#{bindings.VoucherDate.inputValue}" label="#{bindings.VoucherDate.hints.label}"
                        required="#{bindings.VoucherDate.hints.mandatory}"
                        columns="#{bindings.VoucherDate.hints.displayWidth}"
                        shortDesc="#{bindings.VoucherDate.hints.tooltip}" id="id1">
            <f:validator binding="#{bindings.VoucherDate.validator}"/>
            <af:convertDateTime pattern="#{bindings.VoucherDate.format}"/>
          </af:inputDate>
          <af:inputText value="#{bindings.Credit.inputValue}" label="#{bindings.Credit.hints.label}"
                        required="#{bindings.Credit.hints.mandatory}" columns="#{bindings.Credit.hints.displayWidth}"
                        maximumLength="#{bindings.Credit.hints.precision}" shortDesc="#{bindings.Credit.hints.tooltip}"
                        id="it2">
            <f:validator binding="#{bindings.Credit.validator}"/>
          </af:inputText>
        </af:group>
        <af:group id="g1">
          <af:inputText value="#{bindings.Lineitem.inputValue}" label="#{bindings.Lineitem.hints.label}"
                        required="#{bindings.Lineitem.hints.mandatory}" columns="#{bindings.Lineitem.hints.displayWidth}"
                        maximumLength="#{bindings.Lineitem.hints.precision}" shortDesc="#{bindings.Lineitem.hints.tooltip}"
                        id="it3">
            <f:validator binding="#{bindings.Lineitem.validator}"/>
            <af:convertNumber groupingUsed="false" pattern="#{bindings.Lineitem.format}"/>
          </af:inputText>
          <af:inputText value="#{bindings.VoucherId1.inputValue}" label="#{bindings.VoucherId1.hints.label}"
                        required="#{bindings.VoucherId1.hints.mandatory}"
                        columns="#{bindings.VoucherId1.hints.displayWidth}"
                        maximumLength="#{bindings.VoucherId1.hints.precision}"
                        shortDesc="#{bindings.VoucherId1.hints.tooltip}" id="it4">
            <f:validator binding="#{bindings.VoucherId1.validator}"/>
            <af:convertNumber groupingUsed="false" pattern="#{bindings.VoucherId1.format}"/>
          </af:inputText>
          <af:inputText value="#{bindings.Debit.inputValue}" label="#{bindings.Debit.hints.label}"
                        required="#{bindings.Debit.hints.mandatory}" columns="#{bindings.Debit.hints.displayWidth}"
                        maximumLength="#{bindings.Debit.hints.precision}" shortDesc="#{bindings.Debit.hints.tooltip}"
                        id="it5">
            <f:validator binding="#{bindings.Debit.validator}"/>
          </af:inputText>
          <af:inputText value="#{bindings.Credit1.inputValue}" label="#{bindings.Credit1.hints.label}"
                        required="#{bindings.Credit1.hints.mandatory}" columns="#{bindings.Credit1.hints.displayWidth}"
                        maximumLength="#{bindings.Credit1.hints.precision}" shortDesc="#{bindings.Credit1.hints.tooltip}"
                        id="it6">
            <f:validator binding="#{bindings.Credit1.validator}"/>
          </af:inputText>
          <af:inputText value="#{bindings.Particulars.inputValue}" label="#{bindings.Particulars.hints.label}"
                        required="#{bindings.Particulars.hints.mandatory}"
                        columns="#{bindings.Particulars.hints.displayWidth}"
                        maximumLength="#{bindings.Particulars.hints.precision}"
                        shortDesc="#{bindings.Particulars.hints.tooltip}" id="it7">
            <f:validator binding="#{bindings.Particulars.validator}"/>
          </af:inputText>
          <af:inputText value="#{bindings.Amount.inputValue}" label="#{bindings.Amount.hints.label}"
                        required="#{bindings.Amount.hints.mandatory}" columns="#{bindings.Amount.hints.displayWidth}"
                        maximumLength="#{bindings.Amount.hints.precision}" shortDesc="#{bindings.Amount.hints.tooltip}"
                        id="it8">
            <f:validator binding="#{bindings.Amount.validator}"/>
            <af:convertNumber groupingUsed="false" pattern="#{bindings.Amount.format}"/>
          </af:inputText>
        </af:group>
        <f:facet name="footer">
          <af:button text="Submit" id="b1"/>
          <af:button actionListener="#{bindings.CreateInsert.execute}" text="CreateInsert"
                     disabled="#{!bindings.CreateInsert.enabled}" id="b2"/>     
          <af:button actionListener="#{bindings.Commit.execute}" text="Commit" disabled="#{!bindings.Commit.enabled}"
                     id="b3"/>
          <af:button actionListener="#{bindings.Rollback.execute}" text="Rollback" disabled="#{!bindings.Rollback.enabled}"
                     immediate="true" id="b4">
            <af:resetActionListener/>
          </af:button>
        </f:facet>
      </af:panelFormLayout>
    </ui:composition>
    
    
    
    

    Concerning

    Go to your VO Wizard, select the tab of the entity and to check if both the EO is editable or not.

    See you soon

    AJ

  • two elements that have the same source

    Hi guys,.

    I am trying to use the display on a Google Map plugin location. As I had this plugin requires two elements that have the same source:

    Article 1 - A text to insert the value (address) in the database. The source of this question would be 'MAP' column.
    2 - Google Map plugin ELEMENT to visualize on the map. The source of this issue should also be "Map" the column that is used to read the address.

    But the problem, as you saw, we can not create a new record if we have two items with the same source. How can I get around this?

    Here is the link to the plugin:

    http://Apex.Oracle.com/pls/Apex/f?p=plugins:LOCATION_MAP:2943553726537511

    Kind regards
    Fateh

    Published by: Fateh July 21, 2011 02:52

    Hi Fateh,

    Tried the plugin you mentioned! Had a preview of your problem.
    >
    I am trying to use the display on a Google Map plugin location. As I had this plugin requires two elements that have the same source
    >
    As your form seems to be running automatic process line processing DML that will obviously give an error if you have two items
    with the same source i.e. 'MAP' that is your database column.
    >
    Article 1 - A text to insert the value (address) in the database. The source of this question would be 'MAP' column.
    >
    I think that this point is already with you as you may have created form based on a Table or form and report based on a Table.
    Leave the source of this article because it's IE card - the database column.
    >
    2 - Google Map plugin ELEMENT to visualize on the map.
    >
    Change the source of this article as:
    Source type: static assignment (value corresponds to the source attribute)
    Source of value or expression:

    &P1_ADDRESS.
    

    Where P1_ADDRESS is the element:
    >
    Article 1 - A text to insert the value (address) in the database. The source of this question would be 'MAP' column.
    >

    I hope that helps!
    Kind regards
    Kiran

  • My husband and I have the same phone.  We see the two of you on each of our phones calls him, and that missed us a call from (the phone number is in red when it's a missed call).  Thanks for your help.

    My husband and I have the same phone.  We see them entering and fact phone outgoing calls and missed calls (phone # is in red) from the other phone.  Thank you for your help.

    This happens when you both share the same Apple ID. It is recommended - for a number of reasons - that each have their own Apple ID and then uses the sharing of the family for things you want to share. http://www.Apple.com/icloud/family-sharing/

Maybe you are looking for

  • Question about product key Windows XP Pro on Satellite A135-S4427

    I have an A135-S4427 which came with Windows Vista.As I did not like the vista I formatted and installed Windows Xp Professional with SP2 and got all the drivers working.All I need now is a product key for activation of windows. I tried to use the ke

  • Why do I get an error when I try to change the mode of scanning by programming engine?

    Hello I have a problem with my EtherCAT system. The system contains: a RT PXI-8840 2 position with EtherCAT sensors and 8 inverters with EtherCAT (with Softmotion plugin and xml file) I use LabVIEW 2015 with RT and FPGA Softmotion module. At the begi

  • Departure VISA is Looping

    After the automatic update 11.09.2009 looped departure VISA.Repair with the original CD was not made and there is a Message 'verhindert Ein Patch Systemstart Den'Back on an old update has not been successful.

  • Where are the Gadget settings stored?

    De : Willi Hello! Where the parameters are written by the class 'System.Gadget.Settings"(e.g. notes notes Gadget) stored? Thank you in advance!

  • Windows 7 is not friendly when installing programs

    I got nothing else problems with Windows 7 because I bought this computer. I spent countless hours with your support staff (HP) as well as support staff from companies I bought software that will not download on my computer. Below is my last means of