New details on same page won't insert

Hi,
I am not able to get a master-detail-on-same-page to work properly.
It is created with a wizard.
After adding the first row and entering data, the row is lost when clicking Apply Changes of the master.
The row is not inserted in the database.
When I first add a second row without entering data, the first row is inserted when clicking Apply Changes of the master.
Also when adding the second row, an extra Apply Changes button appears for the details.
I am using theme '14. Modern' in APEX 3.0.1 on 10g XE.
Any help will be welcome,
Martijn

Hi again,
The same problem can be seen when following the Advanced Tutorial topic 'How to Create a Master Detail PDF Report'.
After following the instructions you get a report with master detail form.
When all detail rows are deleted, the Apply Changes button of the details table disappears.
You now can add a fill in a new row. However the Apply Changes button won't save your new detail row. Though adding a next row without entering data will save the first row, and the Apply Changes button reappears.
So, after all the job is done. However it is not the way of working we will instruct end users.
Is their a way to get the Apply Changes reappear just after adding the first row?
Thanks in advance,
Martijn

Similar Messages

  • Creation of new button on same page after insert command

    Hello All,
    I have an application running on apex.oracle.com where my workspace name is shruti_work,username is [email protected] and password is buwigi. The application name inside this is "app2"
    I am trying to achieve one functionality there but unable to get it so felt like seeking an help from experts here. I have two forms there one page1 form which is simplly made on an html region with go button which is navigating the page 1 items value to page 2 but simply passing their address witout updting the database table.
    In Page 2 i created page on a table or view, which made some extra buttons which i dont want like applychanges ,delete button, cancel button. I created a create button even which is updating my database with insert sql command. What i am seeing is after my create button is pressed i got navigated to same page 2 which i want to but the applychange button, cancel and delete button got appeared. I dont get the idea why it is so. i have checked the buttons even i didnt found anything there.
    All i want is when i press create button in page 2, my database get update and at the same page (2) a new button get appears which i have to use for other things. Approaching to this solution i created a button with giving databse action update and condition to this button "value of item in expression 1 is not null" and in expression 1 i passed p2_id...... but my new button is not getting created.
    Any help on this?

    Hi Jeff,
    I dont want applychanges button and delete button in my page 2. But when i created form on a table or view this but got created and i cannot delete it even. When i am navigating my page from page 1 to page 2 and filling the fields in page 2 and clicking create button, at that time i want after updating my table and running my plsql process which i have created which you can see in page processing, my button at same page get generate which i will use to navigate to other form. This button which i want to generate after clicking my create button will be meaningful only if my record get inserted in table. so that is why i want it at that time.
    I dont want any report so i am not creating form on a table or view

  • Master Detail on same page

    Hi,
    I have a custom master detail requirement. The page is currently only for CREATE, no query requirement. There are 2 custom tables involved and a common column (process_id).
    When I only have the MASTER detail on the page (VO-EO) and save it is fine, saves to table1.
    Now I want to add the ability to save 1..* records in the detail table.
    So I navigate to page, enter the master data as above, tab down to the detail section and enter a number of fields (say 3 new rows of detail).
    What are the basic steps to go about this. I appreciate there is some information in the Dev guide but it is a bit complex for what I require I think.
    I am thinking (and currently tying).
    Create new EO for detail table
    Create new VO for detail
    Create an EO association (is this needed???)
    Create a View Link between master and detail.
    Associate the VO with the same AM as the master.
    Add a new table region to the form...
    Now this all works in that I can display above. What is required to allow me to save successfully after entering the data.
    This is an urgent request, so any help much appreciated.
    Robert

    PPR to the rescue!
    Try changing the singleSelection element to include your additional field in it's targets list. eg:
    <singleSelection
      model="${bindings.OtherView1Iterator}"
      text="Select and ">
      <primaryClientAction>
        <firePartialAction
             targets="_uixState MyOtherFantasticField"
             source="OtherView112"
             event="select"/>
      </primaryClientAction>
    </singleSelection>And you'll need to add an id to your field such as:
    <messageTextInput
      model="${bindings.blah}"
      id="MyOtherFantasticField"/>Hope this helps.
    CM.

  • Button to Load New Content on Same Page

    I'm not new but I don't design enough websites in a year to keep up with all the new technology & I'm afraid I've missed some of the basics along the way.
    I design my sites with DIVs within Dreamweaver CS5 & I want to have a button within a DIV that when clicked will change out the entire content of another DIV, including pictures & text, etc...
    Basically I want to load a new page within a DIV on the same page.
    Very similar to what I used to do with frames back in the old days.
    I'm guessing there's a simple solution but I don't even know where to start with this.
    Any suggestions or help here will be greatly appreciated.
    Thanks in advance.
    Jamaica John

    Basically I want to load a new page within a DIV on the same page.Very similar to what I used to do with frames back in the old days.
    Hi John,
    I hope you don't plan to build your entire site around this model.  If you do, your home page is going to take forever to load.  And people on dial-ups and mobile devices won't appreciate all that excess bandwidth.
    A well-conceived web site should have separate pages to deal with each topic.   Also, search engines will treat you better if your site has pages with unique <titles> on them.  To make a consistent looking site (with same menu, header & footer on all pages), consider using DW Templates or Server-Side Includes.  
    DW Templates ~
    http://www.smartwebby.com/web_site_design/dreamweaver_template.asp#1
    SSIs ~
    http://www.smartwebby.com/web_site_design/server_side_includes.asp
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Master + 2 table details on same page gives error

    first I am using jdev + jheadstart 9.0.3
    I got a master with 2 details on the same page and
    this page gives me errors. I cannot update the master or
    insert the master. The details fails too with insert and update.
    If I change the same page property of one detail all goes well.
    Is this a bug

    Edwin,
    Yes, it is. It has to do with the way checkForChanges is called. I do not have an example available of the generated code, but the generator should have generated something like:
    onSubmit = "return (checkForChanges('myForm', 'Set1') &amp;&amp; checkForChanges('myForm', 'Set2'));"
    It has been recorded as bug no 2745305.
    To fix this, you must change the page manually.
    Jan Kettenis

  • Why does a page open in safari on my iBook, same page won't open on my iMac

    this is driving me crazy. since the last security update or so, (not 10.4.6) i have not been able to load my 4 most used pages in safari on my iMac, they just won't load. every other site loads. no problems accessing the same pages on my iBook, same apple updates as my iMac and i sync the bookmarks through dot mac. i've read the threads, trying all pieces of advice, except disk warrior or whatever the utility was. but wait there's more. opera, and camino won't open these pages on my iMac either. i have copied the 3 internet.plist and safari.plist from my iBook and put them in preferences on my iMac. still no go.
    i'd be most grateful for any other ideas or suggestions.
    cheers

    my solution...
    did a repair disk from the 10.4 disk.
    it found some "problems" that needed repair on
    the volume. not sure what that means and sorry
    i didn't make note of it.
    most important, safari is working like a charm
    and my iMac seems zippier.
    cheers

  • Display Link in New Region on Same Page

    Hi,
    I am trying to figure out how to make a page link within a region post to a different region on the same page or at least in a new window instead of the same window.
    Thanks In advance,
    Emily

    Pedro,
    Here's a little bit more information about what I am trying to do because the idea with the HTML portlet isn't going to work due the application I am developing.
    The idea is this:
    I have about 100 or so images that report server statistics in png format that are already automatically updated every 10 minuets. What I would like to have is a situation where you have region 1 and region 2 right next to each other. In region 1 are all of the links to the locations of the images (which like I said are already automatically updated with PERL). When you click on the link in region 1, I would like it to show up in region 2. similar to old html frames or iFrames.
    Any Suggestions? I am having a hard time with trying to figure out (despite all the "official" oracle books at my disposal) how to have one region display into a different one to suit this need.
    Thanks in advance
    Emily

  • Triggering new window in same page

    Hi,
    can Any one tell me how to trigger a new window in the same page..... I mean how to display the data in news paper format
    ie; when the data is completed in 1st column it should continue in the 2nd column of the same page.........

    well,
    The businees requirement is .... the data should be displayed in newspaper format (column wise). ie; the windows are side by side in a page .... after finishing to print the data in 1st window it should continue in second(side) window of the same page rather than proceeding to a new page window.... I think this expalins my requirement...

  • How do i create a button which will show new content on same page?

    Hello,
    I hope someone can help.
    I have an image; it's a circle with different parts and different colors for each part. I inserted an image in this post.
    I want to be able to make a button out of each part (will do this with Photoshop), BUT i want to have a text shown on the right from the wheel if you click on a particle of the circle. So i don't want it to go to a new page, but i want to have a textframe to pop-up when you click. And when you click on a different part of the circle a new text will occur (and the old one won't show).
    Hope i made my question clear, english is not my motherlanguage so i'm sorry if my sentences are a bit weird.
    Thanks a lot, i hope it can be done with Muse! (This is a big part of the website.)
    best regards, bart

    Hello,
    You can achieve this using a blank compostion widget ot a tooltip widget.
    You would need to use "no fill" for the trigger containers so that they are transparent and then place them onto each portion of the image.
    Now when user clicks on that portion of the image, the trigger above it gets clicked and in a target container you can have the text displayed.
    The only issue here would be that the trigger containers would be of square/rectangular shape so you might not be able place them peroperly to cover all the sections of the image.
    Please refer to the video which might be helpful : http://tv.adobe.com/watch/muse-feature-tour/muse-trigger-target/
    Regards,
    Sachin

  • Adding New Data To Same Page - HELP

    I am trying to put together a invoice on the fly, the products are added to the invoice by selecting the disired product from a drop down menu and hitting the add button. You SHOULD then be able to select more products from the same drop down menu and htting add again will include it in the invoice.... simple?? Well the problem i have is that when i hit the add button to add another item it just replaces the one i have already added.... this is very annoying... i cannot think of a way to take the product data through the form submission ready for adding too.
    Any Ideas this is really bugging me, and the more time i spend on it, the worse its getting. Code Below
    <%@ page buffer="32kb" %>
    <%@ page import="java.sql.*, javax.servlet.ServletException, java.io.IOException, com.stock_control.*" %>
    <%!
    String convertResultsToSelect ( ResultSet rs, String selectName, String idCol, String descCol ) throws SQLException
    StringBuffer sb = new StringBuffer ( "<select name=" + selectName +">" );
    if (rs != null) {
    while (rs.next()) {
              sb.append ( "<option value=" );
    sb.append ( rs.getString(idCol) );
    sb.append ( ">" );
    sb.append ( rs.getString(descCol) );
    sb.append ( "</option>" );
    sb.append ( "</select>" );
    return sb.toString ();
    %>
    <html>
    <head>
    <title>Members Area - Stock Check</title>
    </head>
    <body bgcolor="#CCCCCC" topmargin="0">
    <%@ include file="topConn.jsp" %>
    <%
              String msg = "";
              String name = "";
              String address1 = "";
              String address2 = "";
              String town ="";
              String postcode = "";
              String country = "";
              String phone = "";
              String mail = "";
              String comments = "";
              float total = 0;
              int nextFree = 0;
              String prodResults;
              int numberOfItems = 0;
         String shop = (String)session.getValue("SHOP");
         String selectProd = "SELECT ProductID, ProductName FROM product WHERE ShopID=";
         rs1 = stmt.executeQuery(selectProd+shop);
         prodResults = convertResultsToSelect( rs1, "product","ProductID","ProductName");
         rs = stmt.executeQuery("SELECT COUNT(*) AS stockLevel FROM product WHERE ShopID ="+shop);     
    while(rs.next())
         numberOfItems = rs.getInt("stockLevel");
         Product[] products = new Product[numberOfItems];
    if (request.getParameter("add")!=null)
              // get values from all text boxes....
              name = request.getParameter("name");
              address1 = request.getParameter("address1");
              address2 = request.getParameter("address2");
              town = request.getParameter("town");
              postcode = request.getParameter("postcode");
              country = request.getParameter("country");
              phone = request.getParameter("phone");
              mail = request.getParameter("mail");
              comments = request.getParameter("comments");
                   // add data from dropdown
              String newProduct = request.getParameter("product");
              //connect to database and put product data into array + increment
                   int thenewid = 0;
                   String theName = "";
                   float thePrice = 0;
                   String nono = "0";
              String getProd = "SELECT * FROM product WHERE ProductID=";
              rs = stmt.executeQuery(getProd+newProduct);
              if(rs.next())
                   thenewid = Integer.parseInt(newProduct);
                   theName = rs.getString("ProductName");
                   thePrice = rs.getFloat("SalePrice");
                   Product addProduct = new Product(thenewid, theName, thePrice, nono);
                   products[nextFree] = addProduct; //PROBLEM
                   nextFree++;
    // reload page with new data in form
    //for loop arround array     
    %>
    <form method="GET">
    <div align=center>
    <p>
    <%=prodResults%>
    <input type="submit" value="Add" name="add"></p>
    <TABLE width=100% height="1">
    <TBODY>
    <tr>
    <td width="4%" height="19"> </td>
    <td width="96%" height="19"> 
    </td>
    </tr>
    <tr>
    <td width="4%" height="198"> </td>
    <td width="96%" height="198">
    <div align="center"></div>
    <table border="0" cellpadding="2" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber5">
    <tr>
    <td width="4%"> </td>
    <td width="15%"><font face="Verdana" size="2">Customer Name</font></td>
    <td width="30%"><input type="text" name="name" size="30" value="<%=name%>"></td>
    <td width="19%"><font face="Verdana" size="2">Customer Phone #</font></td>
    <td width="26%"><input name="phone" type="text" size="30" value="<%=phone%>"></td>
    <td width="6%"> </td>
    </tr>
    <tr>
    <td> </td>
    <td><font face="Verdana" size="2">Address Line 1</font></td>
    <td><input type="text" name="address1" size="40" value="<%=address1%>"></td>
    <td><font face="Verdana" size="2">Customer E-mail</font></td>
    <td><input name="mail" type="text" size="30" value="<%=mail%>"></td>
    <td> </td>
    </tr>
    <tr>
    <td height="32"> </td>
    <td><font face="Verdana" size="2">Address Line 2</font></td>
    <td> </td>
    <td><font face="Verdana" size="2">Comments</font></td>
    <td width="26%" rowspan="5"><p>
    <textarea name="comments" cols="29" rows="5"><%=comments%></textarea>
    </p>
    <p>  </p></td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td><font size="2" face="Verdana">Town/City</font></td>
    <td><input name="town" type="text" size="40" value="<%=town%>">
    <input name="address2" type="text" size="40" value="<%=address2%>"></td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td><font size="2" face="Verdana">Post Code</font></td>
    <td><input type="text" name="postcode" size="10" value="<%=postcode%>"></td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td><font size="2" face="Verdana">Country</font></td>
    <td><input type="text" name="country" size="40" value="<%=country%>"></td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td height="24"> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    <td> </td>
    </tr>
    <tr>
    <td height="23"> </td>
    <td><strong><font size="2" face="Verdana">Product Code</font></strong></td>
    <td><strong><font size="2" face="Verdana">Name</font></strong></td>
    <td><strong><font size="2" face="Verdana">Price</font></strong></td>
    <td> </td>
    <td> </td>
    </tr>
    <%
    if (request.getParameter("add")!=null)
    for(int i=0; i<nextFree; i++)
    Product temp = products;
    int prodID = temp.getid();
    String prodName = temp.getname();
    float prodPrice = temp.getprice();
    total = total + prodPrice;
    // work out total on the fly
    %>
    <tr>
    <td height="23"> </td>
    <td> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=prodID%> </font></td>
    <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=prodName%></font></td>
    <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&pound;<%=prodPrice%></font></td>
    <td><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
    <td> </td>
    </tr>
    <%
    %>
    <tr>
    <td width="4%" height="23"> </td>
    <td width="15%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
    <td width="30%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
    <td width="19%"><strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Total:</font></strong></td>
    <td width="26%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><%=total%></font></td>
    <td width="6%"> </td>
    </tr>
    </table>
    <p align="center">
    <input type="submit" value="Continue" name="continue">
              </form>
    </p>
    </td> </tr> </TBODY></table>
    <%@ include file="bottomConn.jsp" %>
    </body>
    </html>

    anyone?

  • Dynamic select list display details on same page

    i have a select dropdown list that is showing products from a php msql database. When one of the products is selected from the list in need the details of that product displayed underneath the select list.
    here is what i have so far
    mysql_select_db($database_beau, $beau);
    $query_Recordset1 = "SELECT * FROM beaProdSizes, beauCat WHERE beaProdSizes.CatID = beauCat.catID";
    $Recordset1 = mysql_query($query_Recordset1, $beau) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>
    <select id="selectName" name="name">
                          <option value="Select Design">Select Design</option>
                          <?php
    do {
    ?>
                          <option value="<?php echo $row_Recordset1['name']; ?>"><?php echo $row_Recordset1['name']; ?></option>
                          <?php
    } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));
      $rows = mysql_num_rows($Recordset1);
      if($rows > 0) {
          mysql_data_seek($Recordset1, 0);
                $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    ?>
                          </select>
    thanks in advance

    ok i want to make it using the php that you gave me, i have tried it but it doesnt seem to be working
    this is what i have:
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $var1_Recordset1 = "-1";
    if (isset($_GET['CatID'])) {
      $var1_Recordset1 = $_GET['CatID'];
    mysql_select_db($database_beau, $beau);
    $query_Recordset1 = "SELECT * FROM beaProdSizes, beauCat WHERE beaProdSizes.CatID = beauCat.catID";
    if (isset($_GET['catID']) && is_numeric($_GET['catID'])) {
        $query_Recordset1 .= ' AND beauCat.catID = ' . $_GET['catID'];
    $Recordset1 = mysql_query($query_Recordset1, $beau) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>
    <div class="header" id="beauTitleBOX"><?php echo $row_Recordset1['catname']; ?></div>
            <div id="beauSelectBOX">
              <form id="FormName" action="" method="get" name="FormName">
                <select id="selectName" name="name">
                  <option value="Select Design">Select Design</option>
                  <?php
    do {
    ?>
                  <option value="<?php echo $row_Recordset1['catID']; ?>"><?php echo $row_Recordset1['name']; ?></option>
                  <?php
    } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));
      $rows = mysql_num_rows($Recordset1);
      if($rows > 0) {
          mysql_data_seek($Recordset1, 0);
                $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    ?>
                </select>
                <input type="submit" name="button" id="button" value="select" />
              </form>
            </div>
            <div class="header" id="beauPrice"><?php echo $row_Recordset1['price']; ?></div>
            <div class="text" id="beauOtherContent"><?php echo $row_Recordset1['desc']; ?></div>

  • Same page for insert/update

    Hi there,
    Do someone knows about JSF patterns for using the same page/form for inserting and updating the same entities information ?
    2 use cases:
    1 --> the user browses a list of objects (DataTable), let's say Employees, clicks on one line and gets redirected to the employee details page so he can update the information;
    2 --> the user wants to create a new employee and goes to the same page which is empty.
    The way I am actually doing it: I have an employeeForm page and an EmployeeForm managed bean (session scope) which contains an instance of Employee. This Employee is initialized when an empty form is needed or sent by DataTable controller when employee details' are requested.
    This is not really nice to my point of view since the EmployeeForm controller has to re-initialize it's Employee instance after each usage.
    Does someone has a link or can provide a comment for a "best practise" on that topic?
    Thanks in advance,
    Fabrice.

    I think you should consider using the request scope of the employee bean, when navigating from dataTable to employeeForm overwrite the bean with the value from datatable
    otherwise the bean is created on every request.

  • Certain pages won't open via Time Capsule - why?

    First of all, my internet works fine via Time Capsule - except 2 internet pages I cannot open. I tried with my HP Laptop (not via Time Capsule), they work. So it's to the pages fault.
    Does anybody have an idea why? Here are the pages
    www.united-fifa.de
    www.fifa-royale.de
    Until yesterday they worked perfectly fine. But now "the site cannot be loaded" anymore.
    Thanks in advance for help.
    Already tried: Reset Time Capsule, Delete Cookies, Reset Safari, Google Chrome/Firefox (exactly the same pages won't work there either), Restart Computer, Update Flash Player - nothing helped.

    1. Checked with ISP, everything is fine (Pages worked when i used my old HP laptop wirth the same ethernet cable...)
    2. broadband was always fine, even 2 days ago when all the homepages worked
    Maximale Internet-Geschwindigkeit:
    Download 75'000 kbit/s
    Upload 7'000 kbit/s
    3. It's a modem
    4. If I connect my old HP Laptop directly to the modem, all the sites work perfectly fine.
    5. Already reset to standard and i already use ethernet all the time (worked until 2 days ago) - nothing better.
    6. Switched to bridge mode but then i couldn't connect to the internet at all :/
    7. Screen Shots

  • Hi I am new to Apple devices, i got a new Ipad mini and i am trying to download skype from the Istore,it asks me to review my account and if i give all the details and click on next, it come to the same page,please help

    Hi I am new to Apple devices, i got a new Ipad mini and i am trying to download skype from the Istore,it asks me to review my account and if i give all the details and click on next, it come to the same page,please help

    Oh thank you very much, i was worried after a whole day's hard work but most important that i had lost my photos, i don't understan the photo,shared and albums? I have a lot of photos in my albums that it didn't let me delete, yet i could delete a lot of others, could you explain this to me please

  • Master and detail in the same page

    db11xe , apex 4.0 , firefox 24 ,
    hi all ,
    i am trying to insert the master and detail data in one step in the same page :
    i have two tables (clients) and (tests_administered)
    the client table's region contains theses items
    client_id
    client_name
    the other table's region contains these columns -- the tabular region
    row selector
    test_admin_id -- pk,  hidden
    client_id          -- hidden , this is the one i should populate with values
    and more columns
    i've done this :
    1- removed the condition of the tabular region .
    2- Added the request CREATE to the list in condition of the APPLYMRU process -- or :request like ('CREATE')
    3- Added new process with following code : -- with sequence before the applymru process and after process row of clients process
    for i in 1..apex_application.g_f02.count
    loop
    apex_application.g_f02(i) := :p2_client_id ;
    end loop ;
    but nothing happened . why ? what did i miss ?
    thanks

    Hi,
    Create a Master Detail Form through the APEX Wizard 
    Make sure you choose the Primary Keys for the Master Detail as one of your Column and not the ROW ID.
    Selecting an existing Sequence for the Primary Key is preferred.
    Select the option the where your Master and Detail appears in the same page.
    Initially when you run the page your master and detail will not appear at the same time in the page when your Master Detail Form is in the entry form mode. For this you have to go to your Tabular Form(Detail Form) region, and below you will have to remove the Condition for the display of your Tabular form and set it to “No Condition”.
    Now when you run the page both the Master and Detail form will appear together in the create mode but you will not be able to insert or create both master and detail records at the same time when u click the create button. For this the following needs to be done: You need to create a PL SQL Tabular Form process :
    Let's say your master form is based on DEPT and your detail tabular form is based on EMP. Make sure the following things are configured:
    The DEPT insert/update DML process runs before the new tabular form PLSQL process. (ie) the new PL SQL Tabular Form Process that you create should be inbetween Automatic Row Processing(DML) and Multi Row Update Process , so create the new Tabular Form Pl SQL process with a sequence number inbetween these two Processes.
    Make sure you choose Tabular form while creating this PL SQL process.
    The new tabular form PL/SQL process executes the following as the source
       :DEPTNO := :P1_DEPTNO;
    Where DEPTNO is the Foreign Key column in the Tabular Form that links the Primary Key Item P1_DEPTNO of the Master Form.
    Finally this new PL SQL process conditionally runs when DEPTNO is null, so you need to add the following condition to the process:
    The final step to accomplish in creating both the Master and Detail records at the same time is to make a change in the condition of the Multi Row Update Process. :request in ('SAVE','CREATE') or :request like 'GET_NEXT%' or :request like 'GET_PREV%'
    -We make this change so that records get inserted into the Detail table when we click the ‘’Create” button.
    Now you can Run your page and create both the Master and Detail records at the same time.
    Thanks and Regards,
    Madonna

Maybe you are looking for

  • Could not save as - The file may be read-only or is already open in another application

    Can anyone think of a reason why if I'm working locally on a CS3 Flash .fla on my C: drive that I would get the error: Could not save as: C:\Users\John\Desktop\Project_File\ANNUAL REPORT RELEASE\01-19-11\report_stragegy.fla The file may be read-only

  • Access UME information in Web Dynpro for ABAP application

    We have an WDA iView deployed in a NW2004 Enterprise Portal. We have mapped the Enterprise Portal UME to our corporate LDAP. How do we access this UME information within the WDA iView ? Besides the user id there are specific security flags that the W

  • JES connected to existing directory server

    Dear all, We have a mail system which uses sun ldap server but other components, like MTA, are not from sun. Recently we want to transform this system to JES, but we have such a problem. We dont want to change the current ldap server because we have

  • ITunes 8 hangs on shutdown

    When I shutdown Itunes 8, the visual interface dissapears, but iTunes.exe remains with a CPU load of 50%. Can't restart iTunes until I force itunes.exe to shutdown.

  • Multiple singletons

    Hi, I'm hoping someone can help me out with this bit of code as I'm not that experienced with Java and can't work out what I should be doing. I'm trying to alter a facial recognition library called faint as it currently has a hardcoded path for stori