Process in two different tables in one page

Hi all

I have A form with a submit button, when I click on the button I want to send the data from two different tables. For example:

REQ_ID: 221

BOX_NUMBER: 2

NOM_ELEMENT: APPLE

COUNTRY_ORIGIN: USA

I want to send all the information in table 1 and only REQ_ID and BOX_NUMBER in table 2.

I tried to create processes two different which are:

1. the usual process line DML for table 1 and;

2. simple query 'Insert' SQL for table 2

It seems fine, until I realized that when the user tries to update the BOX_NUMBER to 10 for example, only 1 table is updated and table 2 creates an another duplicate data instead of updating the old one! This also applies to my button Delete,.

any idea to fix this problem?

Thank you very much

Vika

Reread what you wrote and you would realize why 2nd table only "new lines".

2. simple query "Insert into ' SQL for table 2

If you need to UPDATE the table, then you must write a simple UPDATE statement.

If you want to REMOVE from the table, then you must write a simple DELETE statement.

I call this "DML DIY" - do it yourself DML

(personally, I'd probably use MERGE for INSERT and UPDATE)

MK

Tags: Database

Similar Questions

  • Select Max (Date) in two different tables...

    Dear all,

    I need the date of last update of two different tables, I mean max (date). We will update one table at a time. Updated once I need to take the last update.

    It can be either in table A table B.

    for example.

    Table A

    Date of the ID

    100 16/05/2014

    101 20/05/2014

    102, 22/05/2014

    Table B

    Date of the ID

    100 04/06/2014

    101, 26/05/2014

    102 21/05/2014

    I need the date of table B (101 26/05/2014) last updated date...

    Hello

    Another way, using much more GRAND:

    SELECT LARGER (max1, max2) x

    FROM (SELECT MAX (mydate) max1

    OF mytable_a

    )

    (SELECT MAX (myotherdate) max2

    OF mytable_b

    )

    ;

    Best regards

    Bruno Vroman.

  • How to get into two different tables in two columns of a listbox of multi column

    Hi all

    I have two different tables of the values assume that table 1A (1,2,3,4,5) and another table B (3,4,5,6,7). I want to write these tables in a multicolumn listbox such as 1st column would be A array and 2nd column table B.

    Thnx in advance

    Saki,

    I hope this helps to further

  • Printing pictures, is possible to print different pictures on one page at the same time?

    When you print pictures, is it possible to print different pictures on one page at the same time? If this is not the case, the photo paper is lost because you can't get your full 4 prints if you do individually. There is a similar question on the change of the position of the image, that might work. However, the answer is not helpful at all.

    The following steps may be worth a try:

    In Windows Live Photo Gallery... Hold your Ctrl key
    and left click / Select the four pix you want to print...

    In your toolbar left click... Print... Print / Next...

    Now you should see the selection of the photo screen
    the photo printing wizard with the 4 pix selected.

    Left click... ... Left click... "Print options".
    and choose the Type of paper and quality parameters.

    Left click... Next... now you should be on the layout
    Screen.   Scroll and select... 3.5 x 5 cut
    prints cropped and rotation to fit.

    The 4 different pix should appear on the print template.

    Click next and your pix should start printing.

  • Insertion of records in two different tables at the same time?

    Hello everyone, I have question about inserting records in two different tables at the same time, I'm looking for is by the way a unique id, which is created in the first statement insert to the second insert statement. Example of this problem:

    < cfquery name = "addRecords1" datasource = 'test' >

    Insert Into Table1 (name, Date, age)

    Values (< cfqueryparam cfsqltype = "cf_sql_char" value = "#arguments.) "Name # ' >.

    < cfqueryparam cfsqltype = 'cf_sql_date' value = '#arguments. "Date # ' >.

    < cfqueryparam cfsqltype = "cf_sql_int" value = "#arguments. Age #"(>); "

    Select SCOPE_IDENTITY() as RecID;

    < / cfquery >

    < cfquery name = "addRecords2" datasource = 'test' >

    Insert into Table2(Company,City,Date,ID)

    Values (< cfqueryparam cfsqltype = "cf_sql_char" value = "#arguments.Company #" >,)

    < cfqueryparam cfsqltype = "cf_sql_char" value = "" #City # ">,"

    < cfqueryparam cfsqltype = 'cf_sql_date' value = "" #Date # ">,"

    ( < cfqueryparam cfsqltype = "cf_sql_int" value = "How to pass RecID to insert in this table?" >).

    < / cfquery >

    In this example, I'm inserting records in table 1 and creation of IDENTITY SCOPE as RecId. I would like to pass this id and insert it in my table 2. This Id, I'll use in my second table as an identifier. If anyone knows anything about this please let me know. Thank you.

    );
    

    QueryName - DOT - ColumnName, so it should be:

    );
    

    HTH,

    ^_^

  • How can I define two different emails in one form of contact?

    How can I define two different emails in one form of contact?

    To enter several e-mail address with Contact form Widgets:

    1. Click on the Options icon for the selected widget, then
    2. In the Email box, enter several emails in delimiting them with a semicolon. For example:
      [email protected];[email protected]
      

    CARI

  • To find common data in 2 columns from two different tables.

    Hello

    Could someone help me with a querry to discover common data of 2 columns from two different tables?

    Thank you
    Rajesh

    Try as below.

    select col1 ,col2 from tab1
    intersect
    select col1 ,col2 from tab2;
    
  • extraction of unique records of registration of two different tables

    Hello

    In the following two tables different www.testing.com code exists in both tables. I want to compare two different columns from two different tables for unique records.
    SQL> select unique(videoLinks) from saVideos where sa_id=21;
    
    VIDEOLINKS
    -----------------------------------------------------------------------
    www.testing.com
    
    SQL> ed
    Wrote file afiedt.buf
    
      1* select unique(picLinks) from saImages where sa_id=21
    SQL> /
    
    PICLINKS
    -----------------------------------------------------------------------
    test
    test14
    www.hello.com
    www.testing.com
    Thank you and best regards

    Try
    Select unique (videoLinks) in the saVideos where sa_id = 21
    Union
    Select unique (picLinks) in the saImages where sa_id = 21

  • two different LR-libraries (one on my desk and and the other on my laptop) synchronized on in AdobeCloud with my adobe account?

    I use two LR-libraries: one on my desk, which is synchronized with the clouds and the other is on my laptop. Is it possible to sync the two different libraries with account an adobe?

    Hi ToAp,

    When you create a catalog of Lightroom (library), it is stored on your computer or on an external device (according to the location specified by you).

    It is not stored/synced on cloud of Adobe.

    If you want to access the catalog even on both machines, you need to store the catalog and your original images on the external drive and plug in the external hard drive on the computer on which you want to work in Lightroom.

    Or, you can use an online service like dropbox in the same goal.

    Kind regards

    Claes

  • How can I keep a table on one page when I am editing?

    I have created a text block and adding a table on a landscaped page. The table takes only about half of the vertical space of the text block. To half way down, I type in the cells. When I add an additional line (not an extra tier, as I said I am changing the content in the cells) cell I type in and all cells under disappear and I can see them only by adding a new page image and text and linking text blocks. I want to keep the table on 1 page and be able to modify the inner text and resize the rows and columns as needed. HOW???

    There is plenty of space for text on this page.

    I've already selected all the cells and then selected cell Options and keep up with the next row. It does not stop the table to break when I add a new line in a cell.

    The regular input on the alpha keypad, or the keypad? The latter is a column by default break, and it is perhaps the issue.

  • Two tables in one page

    Hello world

    I use HRMS Oracle EBS - 11.5.10
    Is it possible to display two or more tableRN side by side in a page?
    That table1 is on the left side of the page, table2 is in the middle and table 3 appears in the right side?

    Thank you
    Elmer

    Yes, one option could be to use a table with 3 cells and put a table in each cell.

  • I'm putting two different PDF files (2 pages), into one so that they are side by side (1 page).

    How do you do that?  I went through tons of forums and I have no chance I use windows btw.

    Combine the two pages in a single file and then print it to the Adobe PDF printer, using the Multiple option. Select 2 x 1 as the layout of the sheet and you will get a PDF file with 1 page, containing the two facsimile of pages on this subject.

  • The selection of two different tables when a value is null or zero in one

    Hi friends,
    I have two tables where the data of...
    so now I have to display the value of tab1.value and if the value that it is) or null I should poster from another table viceversa
    tab1. Value 100 tab2.value 0

    now I get the value of tab1.value

    tab1. Value null tab2.value 200
    now, I should get the value of tab2.value

    If tab1.value is 0 and tab2.value is 0 then display 0

    How to do this

    Thank you
    select  prrv.result_value,
            pg.attribute3,
            case
              when prrv.result_value is null or prrv.result_value = 0 then pg.attribute3,
              else prrv.result_value
            end
    from per_grades pg,pay_run_results prrv
    where prrv.id=pg.id
    /
    

    SY.

  • Able to add colspan with jQuery to table on one page, but not the other.

    I am able to use jQuery to add an attribute colspan to one of the rows in the table on a regular with products catalog page, but when I try to do a catalog that has instead of product catalogs, I see not the colspan attribute when I inspect the lines of the table.

    The catalog I'm talking about is http://www.thesanfordcenter.NET/suite-menu . The catalogue is secure. I have set up a temporary account and a password if you want to view the pages.

    ID: test

    Password: account 1

    I wonder if this is a problem with my jQuery or maybe what layout, I have jQuery on. Any help would be appreciated. Thank you.

    This page has some errors coming JavaScript on it.  If you press Ctrl-Shift-J or Cmd-Shift-J on a Mac in Google Chrome you will bring up the javascript console.  Anything in red is usually a javascript error or a 404 error for assets that are not found... you should always try to clean them.

    In this case, your "expstickybar.js" file is loaded on this page, and he introduces a "jQuery.noConflict (); statement that basically removes the possibility of using the variable ' $' as a quick trigger jQuery methods.  This is not the case on the pages of your catalogue main is because you only reference this script with a relative url: 'expstickybar.js', so when you are on your catalog at http://www.thesanfordcenter.net/suite-menu/appetizers page then it is looking for your javascript to http://www.thesanfordcenter.net/suite-menu/appetizers/expstickybar.js files so it is not find it is coming as a 404 error.

    A fast solution would probably be to try to remove or comment on this first line in expstickybar.js that says "jQuery.noConflict ();".  This might work, but it is also possible that it will break your expstickybar.js script. If this does not work, you should probably go into each of your statements of jQuery in your pages and wrap them up in a function that explicitly said to use the variable "$" for jQuery:

    (function ($) {}

    YOUR OLD JAVASCRIPT HERE

    (}) (jQuery);

    On a side note, also included two libraries jQuery in your site and that is never a good idea... you have jQuery 1.4.2 loading in the HEAD of your page or the page template and then you are also to load jQuery 1.6.2 in the BODY of your page or your page template.  You must use one or the other.  1.4.2 is old enough now, so if I was you, after you try to correct the mistake of jQuery.noConflict () you have got going, you need to move this jQuery 1.6.2 reference in your BODY element and replace it with jQuery 1.4.2 marked in your HEAD.

    Also - you should change your reference in your page templates to make the "expstickybar.js" a URL relative to the root instead of a relative URL of the file.  Change:

  • How to print 4 different pictures on one page with Windows Photo Gallery?

    Could not find any way to add different photo once I chose one to print (so I can print 4 different photos on A4 only once.)

    Select 4 photos in the photo gallery
    In the top of the page, click on print, then print again (or just do CTRL P on your keyboard)
    When print photos screen opens upward, on the right-hand side, scroll down to 3.5 x 5 in. (4)
    Make sure that in the bottom of the box for photo to Fit the frame is selected
    At the top, you can adjust the PaperSize, quality, Type of paper and that printer.
    Once completed your settings, click print at the bottom

    That should do it... If this solved your problem, please mark this as the answer.

    Thank you..

Maybe you are looking for

  • 2 GB card SD not recognized in Satellite Pro 6100

    Hello I got a new 2 GB SD card passenger high speed. When I insert into the slot of my Satellite Pro 6100 SD card, I see in the list of the Explorer, the new drive, but when I click it, it says: "Please insert card". The card works fine in my Pocket

  • RND4210 ReadyNAS 'your NETGEAR storage space is not accessible from this computer... »

    Hi all First time poster here. My uncle died in November and he had this NAS device in his office. On the back it says RND4210 ReadyNAS but do not know what version or model or something else. I got to download RAIDar, but now I have done that and it

  • Tektronix tds 3000 invert channel

    I use the drivers to configure the oscilliscope between two experiences that I often change. I got wor except here n;' t seem to be a function to define a channel Invert on. There is a function matjh which claims to have some sort of invert but does

  • T400 does not start

    My lenovo t400 turn on (no lights) for 5 seconds and turn off and if I remove the ram of the laptop turns on with beeps and stay... any idea?

  • the computer is shut down while the phone is updated

    I have a problem with my phone... when I try to power on this issue... the word from Sony that appear and the phone does not open :/ (Sorry I speak good English)