Update multi tables in one page

I need to create a page that allow users to update ( no insert, no delete) 2 tables 1 view.
home page users enter a record_no, then I pass the rec_no to p2 which has 3 regions. Each region points to one table\view respectively. All tables\view are linked by a same rec_no. Each region has a form on table with buttons: cancel,save.
This works fine with only one region but When I start putting 2nd region,
following issues arise
1. data only display on most recently added region( form), it won't display on both regions
2. when I click apply changes (save) on region 1, it erros on both regions that have not null columns. I think this is because it can't tell the difference on the button that I press.
Is it possible to achieve this goal: update multiple tables in one page ? What is the best way to do it ?
I don't want to use form with a report because it has extra page to go through.Ultimate goal is to make all regions Hide and show, so data won't clog whole screen if user has no need to see all at once. Is creating a view of these 3 tables\view the way to go ?
Can you help ? My brain is fried now.
Thanks.
Tai

Hello Tai,
I understand your frustration. Sometimes, something that should seem easy turns out to be so difficult. In this case, what you can do is this:
1. Get rid of the buttons in the second and third region. You can drive your updates all from only one set of buttons.
2. Set a condition on your update button that it only do the update if all three regions data have been filled in - that is - the fields you need are NOT NULL.
Sometimes, I have actually created a separate region called "Buttons" and that is all that resides there. When I have multiple regions on a screen that need input, I won't do any of the updates until all areas have been populated.
As for hiding/displaying the various regions based on your user's need to see them, you can also set conditional display on the region so the user won't see them if they don't need to.. And/or use the hide/show region template.
I hope this helps,
Don.
You can reward this reply by marking it as either Helpful or Correct :)

Similar Messages

  • Add to Multiple Tables from One Page

    Hello,
    I am building an application that handles hardware inventory (APEX 4.0). I have an input page that adds data to two or more tables all at once. The page has two forms on it that point to two separate tables. However when I try to run the page, it fails and returns an error:
    ORA-06550: line 1, column 437: PL/SQL: ORA-00904: "ORH_LAST_UPDATE_DATE": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
         Error      Unable to process row of table IDD_ID_DATA.
    So far as i can see within the App, that column is not at issue (I am not even doing anything to it and it is nullable). I have looked into the App itself as well as doing some online research but have found nothing helpful...
    So my question is this: Is it possible to add to multiple tables from one page? If so how do I do it?
    I am new to APEX so any help would be greatly appreciated!

    UPDATE:
    I received an email from the APEX Support Team:
    "The simple answer is that you will need to manually code the DML (and query) processes if you wish to maintain multiple tables from one page (There is a limit of one table when using the built-in processes).
    In order to do this I suggest you delete the processes generated by the wizards and create PL/SQL processes with insert, update, delete statements as necessary. Such coding is not difficult but is more time consuming than when you can use built-in processes."
    I have been playing around with PL/SQL code and the end result is this:
    begin
         INSERT INTO table1
         VALUES(
              :P2_Item_Field1,
              :P2_Item_Field2);
         INSERT INTO table2
         VALUES(
              :P2_Item_Field1,
              :P2_Item_Field2);
    end;
    I used this code in a custom PL/SQL Process in the Processing>Processes section of Page Processing and it seems to work fine now. The only downside to this method is if the name of a Page Item is changed the code will also have to be changed. Other than that i have had no problems.

  • Update multiple records on one page php/mysql

    Hi folks,
    I am trying to adapt a page to offer the option to update multiple records on one page.
    The intention is to edit FAQ categories which are contained in a table with just two fields - the category and an id.
    The page lists each categories in a form with a submit button which is then repeated for each record in the recordset.
    Unfortunately my plan didn't work and only the first record updates as intended.
    Can anyone suggest how I can make it work?
    Here's the code I have so far.
    ************** The Update Code *****************
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if (!isset($mm_abort_edit) || !$mm_abort_edit) {
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE faq_categories SET category=%s WHERE id=%s",
                           GetSQLValueString($_POST['category'], "text"),
                           GetSQLValueString($_POST['id'], "int"));
      mysql_select_db($database_con_mysite, $con_mysite);
      $Result1 = mysql_query($updateSQL, $con_mysite) or die(mysql_error());
      $updateGoTo = "faq-category-edit.php
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $updateGoTo));
    ************** Update Code Ends *****************
    ************** The Form *****************
    <form name="frm_editcategory" id="frm_editcategory" method="POST" action="<?php echo $editFormAction; ?>">
      <?php do { ?>
    <fieldset>
              <input name="id" type="hidden" value="<?php echo $row_rs_faqcategory['id']; ?>" />
              <input name="category" type="text" class="formrightcolumn"  value="<?php echo $row_rs_faqcategory['category']; ?>" />
              <input name="save" type="submit" class="submitbutton" id="save" value="save" />
    </fieldset>
              <input type="hidden" name="MM_update" value="form1" />
       <?php } while ($row_rs_faqcategory = mysql_fetch_assoc($rs_faqcategory)); ?>
    </form>
    ************** The Form Ends *****************
    Cheers
    Dave

    What does debugging tell you? What's the value of each of the variables? Did you try using regular echo statements to monitor what's going on? That's what I always do whenever I am stuck in my PHP coding.

  • How to keep a table on one page

    Hi,
    Is there any way to prevent a pagebreak in a table?
    If a table is selected, then the Inspector-Text-More-Pagination&Pagebreak is grayed out.
    I tried Inspector-Wrap-Object Placement-Floating, which indeed keeps the table on one page, but has all kinds of nasty side-effects. I really need to keep the table inline.
    Thank you!

    Archon,
    In the Wrap Inspector, change the Table's property from Inline to Floating. Now you can position it on the following Page and avoid the split. Be careful though, because now you are fully responsible for the table position on the page and it will not split even if it grows larger than a page in length.
    Jerry

  • Can you really update two tables in one SQL statement

    Ok a post in the forum has got me awefully curious:
    Can you update two tables in one update statement i.e something like this
    update table a , b
    set b.<column> = something
    a.<column> = something
    Something to this effect.
    If you are curious to know what post I am talking about it is called "updating a single row"

    No. You can only update one table in one SQL statement.

  • Dynamic tables on one page - overflow problem with repeating header/footer

    Hi,
    with the help of the user RADZMAR I was able to create dynamic tables..
    But now, I have got the next problem.
    2 different tables are placed on 1 page.Each of them should be dynamic.
    Please let me list what is working, and what not:
    each textfield should be expandable (-> working)
    Table 01 should be overflowing to page 02 (-> working)
    Table 02 should be overflowing to page 02 (->working)
    Table 02 should be scrolling to page 02 if tabele 01 is growing (->working)
    Table 01 and Table 02 should be splittable (->working)
    header 02 + the footer 02 ( from table 02) should be repeated on every page (->working)
    header 02 + the footer 02 ( from table 02) should not be stand alone, indepentenly on which page (-> NOT WORKING)
    In other words:
    How can I reach, that the header and the footer enclose at least ONE textfield-row ?
    The setting "keep with previous / following" did not helped me.
    If the text in table 02 is large, the settings "keep with..." cause some layout destructions.
    This is the screenshot of the problem:
    Here you can download my doc:
    https://acrobat.com/#d=V*HZAV8VILZarp6gF0B3nw
    Thanks and Greetings
    Nuri

    Your question was "... but the font on the footer is much larger than that of the template", yes?
    I only can repeat, look at the difference of:
    1. index.html (Font-size > medium) >
    2. Calendar.html (Font-size > no entry):
    > "... font on the footer is much larger than that of the template",
    Hans-Günter
    P.S.
    See us again - maybe - at Monday > we will do a nice little trip to Austria.

  • Insert/update multiple tables from one form.

    I'm working on an app. that requires the user to fill out a form. The contents from the form is then used to either insert new records or update existing records in multiple tables. Is that possible? Can someone give a details example?

    You should create a form like you would create it having one table. Use row_id as primary key. The rest of the process are done by the triggers - those will take care of updating the right table depending which column was hit.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Update multiple records on one page

    I have a page that displays records based on a varible that
    is selected on
    the previous page.
    So on this page i have displaying 3 columns
    Store # Allowance Total
    They have asked now instead of clicking on each indivual
    record to mark it
    as completed, they would like to just place a check next to
    each one and let
    it update those records for that store....
    Ex.
    Store 20 has a total of 7 records and has an allowance of
    $6000.00 then
    they would place 1 check mark next to that store and hit
    submit and it would
    update all 7 records with a status of completed.
    I have read thru some not all but some of the example links i
    found for
    updating multiple records. But they seem more complex than
    what im trying to
    do. Since this page is populated dynamically how can i code
    it so it
    understands when there is new stores listed and records.
    Is there any links or tutorial that anyone would recommend
    that will explain
    the process for creating this functionality?

    My bad....
    ASP and Access is what im using DWMX
    "bregent" <[email protected]> wrote in
    message
    news:ei5srh$6uv$[email protected]..
    > What scripting model are you using? You may be able to
    find a datagrid for
    > your model which will simplify this for you.

  • How do I copy a spreadsheet/table from one Pages document to paste to another?

    Hello:
    I am in graduate school and am working on an assignment that requires that I use two different 'templates,' or tables, to analyze data. Instead of filling them in separately and saving as multiple documents, I have created an assignment document with my header. I want to copy the tables from the two 'template' documents and paste them both to my assignment document. I've tried highlighting the table in the template document, clicking copy, and then pasting in my assignment document. Nothing is pasted.
    What am I doing wrong?

    What version of Pages?
    What OS, iOS or OSX?
    Are you sure you have the Table selected and not a cell or just contents?
    Peter

  • Update Bseg table for one field (Functional Area)

    Dear all
    I need to update function area in bseg table for existing records. How can i modify for that particular field without using update command. Is any BAPI is there for update document no. I have Lakhs records. So is any other way to modify that field.
    This is happening in production. please give your valuable guide how to do it?

    I'm not sure it is advisable to perform, take a look at OSS [Note 966428 - FB02: Functional area (FKBER) can be changed on coding block|https://service.sap.com/sap/support/notes/966428],*this note seems to imply that this area should not be changed..
    Look alsio to Customizing (SPRO) Financial Accounting, Financial Accounting Global Settings, Document, Line Item, Document Change Rules, Line Item.
    Keep in mind that this field is replicated from FI line items to other applications and tables.
    If you must perform this change at you own risk, you may build a huge batch-input based on FB02 or FB09 transactions. Another solution is to reverse the documents and then post again those documents with functional area.
    Regards

  • DML on multiple tables in one Page

    Hi,
    Requirement is there are 6 tables.
    Depends on the input parameter we need to perform DML operations on the tables.
    Is there any way to build VO(Based on EO) dynamically linked to a table and performs DML.
    If this is possible we pass table name as parameter, and perform DML on that Table.
    Thanks
    JP

    Hi,
    You can create a PL/SQL procedure for performing DML operating and your logic inside that.
    Later you can use CallableStatement to execute that procedure.
    --Sushant                                                                                                                                                                                                                                                                                                                                                           

  • Multi forms in one page

    Hi ,
    I'm developing on apex 4.0.
    I would like to display 2 forms on a same page but when i submit my first from, i have error because of duplicate column..
    I think the second form is also submited.
    How to make independant the 2 forms?
    Thanks in advance
    Best regards, Damien

    Hi user11969500,
    If you are using same item names in the multiple forms in a page you will definitely get the error.
    Create forms in separate pages you can display those forms in a page using iframe or frames concept
    Thanks and Regards
    Maheswara

  • More than one updatable report on one page.

    I hope someone can help me with this.
    I've spend a long time looking for the best way to do this but keep running into APEX constraints.
    My problem is that I have two tables;
    1) an 'object' table with static attributes (that can change value but keep no history).
    2) an 'object attributes' table with attributes that can change over time (i.e. keep a history).
    Some of the attributes are optional and some mandatory irrespective of whether they are static or timestamped.
    I want to design a screen that shows both tables on one page - preferably both updatable on the same screen.
    Selecting/clicking a row in the top table (object) will select the appropriate object attribute rows in the table below (I've got that covered - no help needed there).
    If I create a new object record I also need to create an initial object attributes record.
    This first initial attributes record cannot be deleted while the object exists.
    The start date of the object itself and its first object attributes record should remain in sync.
    I cannot separate the object table and attributes tables on different pages as all static and timestamped attributes form one collection that needs to be visible and maintainable from one screen.
    The problem is APEX will not allow more than one updatable (or interactive) report on one page.
    I need a solution where both tables are maintained in a uniform way for the user.
    Not, for instance, one table an updatable report and the other a report with detail form.
    Anybody struggle with a similar problem and found a solution to this problem?
    Any pointers are most welcome.
    Ruud.
    PS. I have a joined view on both tables with an INSTEAD trigger that can process insert/update/delete's on the combined data however I would not like to use that if I can avoid it. It would mean a repetition of static attributes in the one updatable report.

    Andy,
    Apologies for the late reply - Forums have been out for a while :-(
    Thanks for the suggestion. I've had a look at Denes' example and
    at least now I know it is possible.
    I've asked for access to his workspace but have not been given that
    yet so can't look at the details yet but I can make some educated
    guesses as to how it was done.
    I will give it a try.
    I'm still not certain whether having 2 updatable tabular reports is the
    right way to go though....
    Currently I'm working on a page with 2 navigator reports - one for selecting
    the object and another to select the start date of the timestamped attributes.
    Next to that I have an updatable detail form that shows the selected object
    and attributes as one whole set using the joined view I mentioned earlier.
    Inserts, updates & deletes are then done in the form.
    Ruud.

  • Multiple Forms on One page

    Hi,
    I am trying to create multiple forms based on different tables on ONE page. But some how I get errors in the Automatic process (fetch,insert, and update) which gets created when you create a form.
    The tables i am using have some common colomn_name but i when creating form i am not including those columns.
    For eg. all my table have create_by,update_by column but i am not add these columns in the form as they are updated by the DB trigger.
    Vikas

    Vikas,
    create one form using wizard and the others manually.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How do I carry over database variables from one page to another?

    I have a MySQL database displayed in a table on one page, with a link in each row pointing to a DETAILS.php page where I want to show the end-user all the details of that record or line item in a different format. After I link to the new page, how do I address the variables for "that particular record" clicked on in the 1st page? Will the system automatically knew which record from the table row I linked from?

    lesliebrownadobe wrote:
    I have a MySQL database displayed in a table on one page, with a link in each row pointing to a DETAILS.php page where I want to show the end-user all the details of that record or line item in a different format. After I link to the new page, how do I address the variables for "that particular record" clicked on in the 1st page? Will the system automatically knew which record from the table row I linked from?
    Each record in your database should have a 'unique' identifier (primary key) tying the record to it.
    You then pass that 'unique' identifier to the details page in the link which you create using php to loop through each record found in the database, which presumably you have already done.
    <a href="details.php?id="<?php echo $row['id']; ?>
    On the details page you then use php to get the 'id' of the record passed to the page via the link:
    $id = $_GET['id'];
    Once you have the id you are in business and can create a mysql query of the database to get the record associated with the id
    SELECT * FROM table WHERE id = '$id'
    'id' being the 'unique' field in the database that identifies the records and '$id' being the variable passed from the link

Maybe you are looking for