HELP FORM MASTER/DETAIL!!!

Hi,
i created a form master/detail, when i click "add row" in detail form after entering all required values oracle give me this error:
Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "A884FA378C851786DDFE3A33709CB23C", item checksum = "1697D9A1AD2F3544A697435A5FC09104"., update "DS"."TARIFF_PAX" set "ID_TARIFF" = :b1, "PAX" = :b2, "RATE_PAX" = :b3, "LEVEL_PAX" = :b4
Could someone help me?
Thanks

All it means is that you perhaps skipped selecting the columns for the detail table when creating the form.
Try creating again and this time select the columns appropriately for Master as well as Detail tables.
Regards
PS: Always mention the basic information like Apex version, DB version, etc
Edited by: Prabodh on Aug 18, 2010 2:12 PM

Similar Messages

  • Help about master detail form

    when i create the master detail form then in the detail report only foreign key column display on detail report.
    please help me

    All it means is that you perhaps skipped selecting the columns for the detail table when creating the form.
    Try creating again and this time select the columns appropriately for Master as well as Detail tables.
    Regards
    PS: Always mention the basic information like Apex version, DB version, etc
    Edited by: Prabodh on Aug 18, 2010 2:12 PM

  • ORACLE FORMS MASTER DETAIL HELP

    GOT 2 DATA BLOCKS. 1 REPRESENTING ALL EMPLOYEES, THE OTHER REPRESENTING ALL SALARIES. uSING A MASTER - DETAIL RELATIONSHIP WHEN TRYING TO SHOW ALL SALARIES BESIDE ALL EMPLOYEES IN A MULTI-ROW TABULAR VIEW I CAN'T SEEM TO LIST THE SALARY FOR EACH EMPLOYEE ONLY THE FIRST...EG.
    EMPLOYEE SALARY
    |||||||||||||||||||||||| ||||||||||||||||||||
    SMITH _____10000
    JONES
    REGERG
    SDGS
    SDFGSR
    HOWEVER, AS I MOVE THROUGH THE EMPLOYEES THE SALARY CHANGES BUT STAYS AS THE FIRST ENTRY.... THANKS FOR ANY HELP OFFERED
    Message was edited by:
    user445629
    Message was edited by:
    user445629
    Message was edited by:
    user445629

    You have master - detail relationship here. So unless you click on second employee it won't show you salary for second employee.
    You can create a control block and capture values in this block through cursor. You can also create a view and get values from view. In both cases you need only one block not two.
    Are you showing this only for display or user can also modify these values?

  • Form Master-Details

    Hi , I have Master-Details form and it have 2 tabs Rawda & option , Rawda tab have 1 block and option tab have 4 blocks and when i click query button in option tab for any block it is display the result but when i try navigate the reslut by keyboard arrow's the form give me a message ( do you want to save the changes )
    i get this message only every time i navigate a used record by rawda block , how i can stop this message without i break the Master-Details between option blocks & rawda block .

    Hi,
    I tested it on JDev12c and also works:
    Couple of tips:
    - Try to keep your payload as small as possible. Check this post: http://avioconsulting.com/blog/decoupling-oracle-bpm-process-instance-information If you put all your information on XML is like you have two databases and is annoying to keep them sync.
    - if you decouple your data, you will be able your UIs, so you could create an ADF app with bounded taskflows (e.g.: Master-Detail) and embed it on your ADF-HumanTask app.
    Hope this helps,
    Jorge

  • Help! Master-Detail-Detail problem!

    Dear all,
    I am using Jdev.10.1.3, ADF + BC.
    I have 3 tables: table1(Master), table2(Detail, foreign key set, reference to tabel1) and table3(Detail, foreign key set, reference to table2).
    I created an edit form by the following steps:
    1) Selected table1 from the Data Control Palette --> Forms --> ADF Form....
    2) Selected table3 from the Data Control Palette --> Master-Details --> ADF Master Table, Detail Table
    3) Delete the "Submit" button in Master Table
    4) Change the "Submit" button to "Delete" (with backing bean) in Detail Table
    5) Added 3 buttons (with backing bean) at the bottom of the form (i.e. Save, Delete, Cancel)
    6) There is a menu at the top of the form
    7) e.g. there are 2 records in Master table and each record contains 3 Detail records
    The data retrieve is no problem.
    When I clicked the radio button for the first record in the Master table, and then click the Save/Delete button at the bottom of the form. No problem.
    However, when I clicked the radio button for the second record in the Master table, and then click the buttons at the bottom of the form.
    Duplicate Menu was displayed. Sometimes duplicate buttons were displayed. And the button didn't go to the backing bean.
    I don't know why and how to solve the problem??
    Hope someone can help me.
    Thanks for any suggestion.
    Regards.

    Hi All,
    Just in case anyone has same problem. Since I was not able to get help here I created a tar and we figured that the problem was with the system when I upgraded. System created triggers that were fighting with the sequences that I had manually created.
    Disabled triggers and all is working fine. You still need to watch future applications just in case.
    Later,
    d.

  • Some dummies need help in master detail jsp page

    We don't know how to use data control to generate a jsp master detail page in case of many-to-many relationships. We didn't find any info about this and our testcase never display the data of the last iterator.
    We have
    a collection that contains department object.
    a collection that contains the relationship between department and employee (the many-to-many relationship)
    an object that represent the employee
    The structure is correct in the data control.
    We are able the create our page for both first and second collection but it is not possible to display the detail of the corresponding employee in the detail table. When the table is generated from this level no data is displayed.
    Is it somewhere described how to solve such problem ?
    Does somebody know how to do ?

    Hm, your requirements sound like homework assignment from classroom. If so, is itn't better that you find the answer youself? There are plenty of very relevant references for how to use jsp to handle html forms or talk to a rdbms through a jdbc connection. For example, for jsp and html forms, you can google "jsp html forms"; for jsp and sql query, search for "jsp jdbc".
    Tell me if this is not helpful.

  • FORMS MASTER-DETAIL

    In my form I have three blocks. Block A and B are master-detail and Block Band C are master-detail. Now when i do any chages in block C ( insert, delete or update) and nevigate back to block B, form ask me to save the record. How can I stop this. I only want to save when I press save button.
    Thanks
    null

    use the command
    POST;
    when leaving the C block.
    null

  • Help on Master Detail relation

    Im using XSQL command line processor 1.0.2.0.
    How I can I write a SQL query To display master detil relation in the output?
    For example Department and Emp are two different tables with master detail relation...
    I just want to display the output some thing like..
    <Department>
    <Details>
    <Dep_name>Accounts</Dep_name>
    <Dep_no>10</Dep_no>
    <EMP>
    <EMP_NAME>AAAAAA</EMP_NAME>
    <EMP_NO>999999999</EMP_NO>
    <HRD>01/01/2000</HRD>
    </EMP>
    <EMP>
    <EMP_NAME>BBBBBB</EMP_NAME>
    <EMP_NO>100000000</EMP_NO>
    <HRD>01/01/2000</HRD>
    </EMP>
    </Details>
    <Details>
    <Dep_name>INVENTORY</Dep_name>
    <Dep_no>20</Dep_no>
    <EMP>
    <EMP_NAME>CCCCCCC</EMP_NAME>
    <EMP_NO>8888888888</EMP_NO>
    <HRD>01/01/2000</HRD>
    </EMP>
    <EMP>
    <EMP_NAME>BBBBBB</EMP_NAME>
    <EMP_NO>100000000</EMP_NO>
    <HRD>01/01/2000</HRD>
    </EMP>
    </Details>
    </Department>

    [list]
    [*]First, I'd recommend upgrading to XSQL 1.0.4.3, the latest production release that is part of the XDK for Java 8.1.7.1 at http://otn.oracle.com/tech/xml
    [*]Then, explore using the Oracle CURSOR() expression to create nested rowsets. This is documented in our SQL language reference info here on OTN. My book has several examples of using CURSOR() to produce master/detail results, too.
    [list]
    Steve Muench
    Development Lead, Oracle XSQL Pages Framework
    Lead Product Manager for BC4J and Lead XML Evangelist, Oracle Corp
    Author, Building Oracle XML Applications
    null

  • Need help with master detail from different datasets

    I have xml data from three different datasets that I want to use in a master detail region. 
    So initially, a list of model codes is displayed. When the user clicks on a specific model, the model inputs appear in the detail region.  One of these inputs is a list of map units. I also want a real name description of the map unit to be displayed.  It's working for one map code, but not for all of them. 
    My question is: "How do I get the description to disply for each of the map codes?"
    Here is my code: 
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="/SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="/SpryAssets/SpryData.js" type="text/javascript"></script>
    <link href="/SpryAssets/SprySpotlightColumn.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    var DSpresence = new Spry.Data.XMLDataSet("/SpeciesReview/Copy of tblSppMapUnitPres.xml", "dataroot/Copy_x0020_of_x0020_tblSppMapUnitPres");
    var DSancillary = new Spry.Data.XMLDataSet("/SpeciesReview/ModelingAncillarywname.xml", "dataroot/Sheet1", {sortOnLoad: "CommonName", sortOrderOnLoad: "ascending"});
    var DSpresence2 = new Spry.Data.XMLDataSet("/SpeciesReview/Copy of tblSppMapUnitPres.xml", "dataroot/Copy_x0020_of_x0020_tblSppMapUnitPres[strSpeciesModelCode='DSancillary::strSpec iesModelCode']");
    var dsMUDescription  = new Spry.Data.XMLDataSet("/SpeciesReview/tblMapUnitDesc.xml", "dataroot/tblMapUnitDesc");
    var dsMUDescription2= new Spry.Data.XMLDataSet("/SpeciesReview/tblMapUnitDesc.xml", "dataroot/tblMapUnitDesc[intLSGapMapCode='{DSpresence2::intLSGapMapCode}']");
    </script>
    </head>
    <body>
    <div style="width: 100%">
    <div id="Species_DIV" spry:region="DSancillary DSpresence dsMUDescription" width="50%" style="float:left">
      <table id="DSancillary">
      <tr>
      <th>Species Code</th>
      </tr>
      <tr spry:repeat="DSancillary" "DSpresence" "dsMUDescription" spry:setrow="DSancillary" >
      <td>{strSpeciesModelCode}</td>
      </tr>
      </table>
        </div>
      <div id="Species_Detail_DIV" spry:detailregion="DSancillary DSpresence dsMUDescription" style="float:right; margin-top:20px; width: 40%">
        <table id="Species_Detail_Table"  >
          <tr width="100%">
          <th style="font-family:Verdana, Geneva, sans-serif; font-size:14px; background-color:#CCCCCC; font-weight:bold">Modeling variables used for {strSpeciesModelCode}</th>
          </tr>
            <tr>
              <td spry:if="'{memModelNotes}' != ''">Hand Model Notes: {DSancillary::memModelNotes}</td></tr>
               <tr>
                <td spry:if="'{DSancillary::ysnHydroFW}' == 1">HydroFW: {DSancillary::ysnHydroFW}<br />Buffer from flowing water:  {DSancillary::intFromBuffFW}<br />
                Buffer into flowing water:  {DSancillary::intIntoBuffFW}
                </td></tr>
                <tr>
                <td spry:if="'{DSancillary::ysnHydroOW}' == 1"> Buffer from open water: {DSancillary::intFromBuffFW}<br />Buffer into open water:  {DSancillary::intIntoBuffOW}</td></tr>
          <tr><td><br /></td></tr>
           <tr><th>Mapcode:</th></tr>
        <tr spry:repeat="DSpresence">
                <td spry:if="'{DSpresence::ysnPres}' == '1'">{DSpresence::intLSGapMapCode}</td><td spry:if= "'{DSpresence::intLSGapMapCode}'=='{dsMUDescription::intLSGapMapCode}'">{dsMUDescription: :strLSGapName}</td>
            </tr>
            <tr><td><ul>
                <li spry:repeat="DSpresence" spry:if="'{DSpresence::ysnPres}' == '1'">{DSpresence::intLSGapMapCode}{dsMUDescription::intLSGapMapCode}</li>
            </ul></td></tr>
        </table>
        </div>
    </div>
    </body>

    The best way to do this is to use xPath filtering. This http://labs.adobe.com/technologies/spry/samples/data_region/FilterXPath_with_params.html example will give you the general idea.
    The example uses a URL variable but there is no need for that if you use a procedure similar to
    function newXPath(cat){
      DSpresence.setXPath("dataroot/Copy_x0020_of_x0020_tblSppMapUnitPres[strSpeciesModelCode=' {DSpresence::strSpeciesModelCode}']");
        DSpresence.loadData();
    The function can be triggered with an onclick event placed on {strSpeciesModelCode}
    Gramps

  • Oracle Forms : Master Detail : Cannot query detail block

    MY requirement is: when user enters records in master block, the corresponding records should be displayed in the detail block. (Detail block is just for viewing).
    Master block is a database block based on a custom table. All fields are enetereble in this block.
    Detail block is a a database block based on view which is built joining the custom table(on which master block is built) & a standard table. None of the fields in detail block are editable. they are just display only. For detail block, set the Key Mode=Non-Updatable, Enabled a field as Primary Key.
    I have created a relation between the 2 blocks. (Deferred=No, AutoQuery=No, Delete Record Behaviour=Isolated.). There is a join between master table & this view.
    But when I enter record in master block & save. the detail block records are not displayed. (Message : No Navigable Items in Detail Block).
    Yes, there are no navigable items in detail block, because its just for viewing purpose. How can this be achieved.
    Thanks,
    Naveen

    Thanks for your inputs. I got the solution for this. Earlier all items in the block were DISPLAY_ONLY. Now, I have selected them as TEXT_ITEMS (even though they are not updatable). It is working fine now. Thanks.

  • Wizard based forms Master-Detail

    I was wondering how I could used the Browse/Edit forms generated by the wizards for BC4J-JSP and UIX-JSP pages to create a "tabbed page" Mater-Detail type application.
    Suppose I have a PurchaseOrderMaster (POM) vo and a PurchaseOrderDetail (POD) vo. The wizard generates me two pages. Now if I remove the POD link on main.jsp/main.xml and create a link on the POM.jsp how would I browse/edit only the rows for the active POM.jsp on the POD.jsp? I'm thinking I would like POD.jsp to look/act similar to the FkDeptnoLink page that is generated by the wizards for the scott schema. Hmmm maybe, maybe not.
    It seems like passing the POM.jsp current row data (like PO_NUMBER that is the FK in POD to POM) is the answer but I'm just too new to this J2EE stuff to "gleen" from the documentation on how to do that. Can anyone provide or point me to explicit exapmples of this type of activity?
    TIA,
    Ed.

    Found it in the How To's.
    Ed.

  • Help with Master-Detail implementation

    I'd like to create one table with summary info with each row linked to the details about the items in that row. How can the application figure out which master table row the user selected and make the corresponding details available for display?
    I tried the example provided in "Accessing DB with databound components" tutorial and it was Ok, but it used a dropdown list as Master table. I need to use a "real" table with a chekbox to select the row and a button to submit the request.
    Have anyone ever deal with this issue?
    Thanks,
    Marco

    Yep - the example application mayagiri is referencing should show you what you are describing... there is also a new tutorial you might want to check out:
    http://devservices.sun.com/session/login.jsp?goto=/premium/jscreator/standard/learning/tutorials/inserts_updates_deletes.pdf
    Please be sure to get the update to the product as well for these examples - see the readme:
    http://developers.sun.com/prodtech/javatools/jscreator/reference/docs/updateREADME.pdf
    v

  • Change primary key field in Master-Detail Form (Urgent)

    Hi,
    Can some experts share your valuable experience on the problem below?
    We have created a form Master-Detail relation. For some reasons, we have to allow the primary key field to be editable. But we couln't achieve it in Form 6i. It gives update error during commit.
    Your kind help will be highly appreciated.
    Regards,
    YM

    Hi there,
    I think the problem is because u are updating the primary key in the master block but since it is a master detail block u need to update it in the detail block as well.so what i suggest u to do is in the pre-insert trigger assign the value of master primarykey to the detail primary key....
    just check this out hopefully this shud help u.
    Bye
    Atul

  • Master detail report/form FK problem

    Anyone...anybody!!!
    I'm using APEX 4.0.1... and Oracle 10g.
    I have two tables that are linked with FK in the detail table
    Master table
    ID_ENDURGR     NUMBER --PK populated with a trigger
    KT_UMSAEKJANDI     VARCHAR2(10 BYTE)
    TIMABIL     NUMBER
    NUMER_UMSOKN     NUMBER
    HEILDARKOSTNADUR     NUMBER
    Detail table
    ID_EIGENDUR     NUMBER --PK populated with a trigger
    KENNITALA     VARCHAR2(10 BYTE)
    EIGNARHLUTI     NUMBER
    KOSTNADUR_VINNA     NUMBER
    ENDURGR_ID_FK     NUMBER -- FK on ID_ENDURGR in the master table
    If I create a application with a master detail page using the wizard, pages with a report and a tabular form are created. This works fine and the FK field in the detail table is automatically populated with the PK from the master table.
    If I create an application with a blank page an on that page create a region > form > master detail > same tables >use existing triggers > default > Edit detail on separate page ... three new pages are created: Report, master form and a detail form.
    If I create a new detail record with this application the FK field is not automatically populated.
    Why? What am I doing wrong?
    The trigger on the detail table:
    create or replace
    TRIGGER "bi_RSK_541_EIGENDUR"
    before insert on "RSK_1018_EIGENDUR"
    for each row
    begin
    if :new."ID_EIGENDUR" is null then
    select "RSK_541_EIGENDUR_SEQ".nextval into :new."ID_EIGENDUR" from dual;
    end if;
    end;
    Do I need to add something here... or what?
    Please help.
    Edited by: 805740 on 2.12.2010 07:14

    Thanks for your reply. I have created my pages on apex.oracle.com
    ws: RSK_APEX
    user: demo
    pwd: demo
    There are two tabs. Different solutions on each one.

  • How to create Master Detail Form in htmldb 2.0

    This option use to be available in 1.6 but I can't see it anywhere in 2.0.

    Anonymous - Create Page>Form>Master Detail Form.
    Scott

Maybe you are looking for