Developing Master-Detail Through Wizard

When creating master detail form or a single form through Wizard ,it creates the form loads the data But if you try to modify or add a new row it gives following errors
JBO-26041 Failed to post data to database during update :.....
DAC-305 Dbaccess commit transaction failed .
Session1
JBO-26041 Failed to post data to database
Please Help

Sandeep,
Which version of JDeveloper are you using? Also, which version of the database are your tables on, and do they both have a primary key?
I know there were restrictions if your database is before 8.0, and your tables do not have primary keys.
Laura (JDev Product Management team)

Similar Messages

  • Master Detail Form - Problem using built in wizard

    Hi There
    We are working on Application express 2.2.
    We are facing problems for a master detail form using Wizard. The
    details are as follows : >>
    1) Master table : TS_ENTRY_TXN
    trans_id P.K.
    2) Detail table : TS_ENTRY_TXN_DETAIL
    a)trans_id
    b)sub_trans_id Composite P.K.(trans_id,sub_trans_id) & these are
    based on sequences.
    If i try to build a master detail form using the Wizard, the options
    for providing P.K. for master & detail are listed which we used.
    As it is a master detail form, we want to carry trans_id to the detail
    for updations/insertions which doesn't happen.
    The MRU fails with oracle error :
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1,
    ORA-01400: cannot insert NULL into
    ("TS_APEX"."TS_ENTRY_TXN_DETAIL"."ENTRY_ID"), insert into
    "TS_APEX"."TS_ENTRY_TXN_DETAIL" ( "ENTRY_ID", "SUB_ENTRY_ID",
    "SMR_ID", "TASK_ID", "SUB_TASK_ID", "TIME_SPENT", "REMARKS") values (
    :b1, :b2, :b3, :b4, :b5, :b6, :b7)
    Is there any other way to build master detail wihout wizard.
    Could you please suggest us better way to complete this task.

    If I'm reading this correctly, then one of the columns in your detail tables' primary key is also the foreign key pointing to your master table? If that's the case, then that's not supported by the wizard. For the wizard generated master-detail form to work properly, you'll have to have a foreign key column in your detail table which is not part of your detail table's primary key.
    Hope this helps,
    Marc

  • Master detail relation in the ADF Jdev10g sample application

    Hi,
    I have to develop Master detail relation in the ADF Jdev10g. Need sample application...Can anybody help me..

    Lots and lots of tutorials [url http://www.oracle.com/technetwork/developer-tools/jdev/overview/index-100269.html]here
    Note: 11g has been out for some time now, and if you are doing new development, it really makes sense to be using the latest software. If, by chance, you happen to be talking about doing development for the E-Business Suite, you want to be asking on the OA Framework forum.
    John

  • IR Master Detail

    Hello ,
    I am newbie , I've tried to use Master Detail by wizard , i want to use IR report as a master report , and in the detail page add new region tabular form for the detail table , how can i do that ?
    Thank you
    Maie

    Hi Maie,
    By default, when you create a 2-page Master Detail form via the Create wizards, the first page contains a Classic Report, and the second page contains a form region for editing the master table data, and a Tabular form region for modifying the detail table data. If you wish to use an Interactive Report instead of a Classic report on the first page, use the "Migrate to Interactive Report" option in the Tasks region to the right of the Edit Region (pg 4000:4651) page to switch the Classic to an Interactive Report.
    I hope this helps.
    Regards,
    Hilary

  • Master detail problem in HTML DB

    We created a master detail page using master detail page wizard.
    But when we create a detail record, master column's values which supporting relation (Foreign Keys) aren't transfered to detail block.
    So detail record cannot created. How can we solve this.
    Where we can control coordination information between master detail page .
    Thanks for your help.

    We have solved this problem regenarating FK.
    But We are facing other problem too.
    when creating master detail form using wizard if we choose "Edit detail on separate page" option the detail page not working correctly
    When we try to create detail record " PK value cannot be null" error occurs. It means PK value not transfered this detail page.
    It seems like a bug ???
    How can we solve it. How can we manually support this Item value.
    Thank You.

  • Master Detail form - Problems

    We are facing problems for a master detail form using Wizard. The details are as follows : >>
    1) Master table : TS_ENTRY_TXN
    trans_id P.K.
    2) Detail table : TS_ENTRY_TXN_DETAIL
    a)trans_id
    b)sub_trans_id Composite P.K.(trans_id,sub_trans_id) & these are based on sequences.
    If i try to build a master detail form using the Wizard, the options for providing P.K. for master & detail are listed which we used.
    As it is a master detail form, we want to carry trans_id to the detail for updations/insertions which doesn't happen.
    The MRU fails with oracle error :
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-01400: cannot insert NULL into ("TS_APEX"."TS_ENTRY_TXN_DETAIL"."ENTRY_ID"), insert into "TS_APEX"."TS_ENTRY_TXN_DETAIL" ( "ENTRY_ID", "SUB_ENTRY_ID", "SMR_ID", "TASK_ID", "SUB_TASK_ID", "TIME_SPENT", "REMARKS") values ( :b1, :b2, :b3, :b4, :b5, :b6, :b7)
    Is there any other way to build master detail wihout wizard.
    Could you please suggest us better way to complete this task.

    Hi San Mat,
    I would never recommend having a composite PK on any table. Use the sub_trans_id as the PK in its own right and have trans_id as a Foreign Key pointing to the master table.
    However, given your existing table structure, what you need to do is add a Default value for the ENTRY_ID field on the child table that points to the Page Item used for the PK field on the master table (you've said trans_id but do you mean ENTRY_ID??). On the column's Column Attributes page, set Default Type to Item (Application or page item name) and the Default to P1_ENTRY_ID (or whatever the name is of field is on the master table's form that holds the PK)
    When a new row is added to the child table, the ENTRY_ID from the master table is inserted automatically.
    Regards
    Andy

  • Master/Detail Development Issues

    Hi All,
    Could you please share your expertise if you faced the problem listed below
    1)I have a form based on a single table with two fields (org_id ,org_name) to maintain organization
    a)org_id is getting value from sequence.when I open the form,I see the sequence getting populated,
    looks good for insert mode,but for Query/Reset Mode ,it doesn't work,because the value(new sequence number) doesn't exists
    WorkAround : Go to that field and nullify the value for the org_id and then do Query/Rest ..
    Result : It works.
    Is there way I can clear the Value for the field Org_Id(which is populated by sequence) after Reset Button is pressed.
    If So ,please share your ideas
    b)With the above form,,If I hide the Column Org_id (still sequence is generated to insert value)
    the form works fine for Insert mode..but it errors out for Update/Query/Rest Mode ...
    Any solution for this ?
    The user doesn't want to see the Org_Id.
    2) I have a column called Requested_By in the form..where I want to populate LastName,FirstName
    How can I achieve it ?
    3)How to set format mask for the field that represents dollar amount ?
    For Eg :for $100,000.00 should i say --> $$$,$$$.nn ????
    4)I have created a Master /Detail Form...I am displaying 5 lines on the detail block.If the user wants to enter more records how do I accomplish it .? In other words I am not seeing Next/Previous button on the detail block ...where as I see those buttons in the Master Block in Query Mode.. ...
    5)I have a LOV (to list items)..When the user selects the item from the LOV in the ,is there a way ,I can store the Item_Id which is a hidden column for that row in the detail block
    6)In which directory I can see the archive files to delete physically which I no longer needed?
    Thanks in Advance
    Babu

    A couple of very quick answers for now...
    1. You can write code in the PL/SQL section of the Save button to populate the Org_Id. Loop through the details and if the action = 'INSERT' then A_ORG_ID := the next sequence value.
    2. More coding can do the trick. Where do you want to get the FIRST and LAST_NAME values from?
    4. It doesn't exist, you cannot (by default) change the number of detail lines at run time.
    You can code a button for it but in the meantime, this workaround works:
    - User enters all details, clicks Save. The form will be cleared
    - User enters same Master entries, but new Details entries and Saves again. It will append the new details to the Detail table.
    6. Are you referring to the old code versions for your M/D form? If so, click Manage next to your M/D form. On the Develop tab, click Delete. It will bring up all the versions you can delete.

  • Developer Mode Error: Stale Data -- Master Detail OAF Page

    Dear Members,
    I have created a simple master detail OAF Page by following the below steps:-
    1/ Created a MasterEO
    2/ Created a DetailEO
    3/ Created a MasterDetailAO
    4/ Created a MasterVO based on MasterEO
    5/ Created a DetailVO based on DetailEO
    6/ Created a MasterDetailVL (view link) based on MasterDetailAO
    7/ Created an AM
    7/ Attached the MasterVO and MasterDetailVL to the AM
    8/ Created a simple Master Detail Page in which user can enter the master and detail records. After entering the details user can click on the save button.
    Code in AM_
    public void createHeader()
    +{+
    OAViewObject vo = getMasterVO1();
    if (vo.getFetchedRowCount() == 0)
    +{+
    vo.setMaxFetchSize(0);
    +}+
    Row row = vo.createRow();
    vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    +}+
    public void createLines()
    +{+
    OAViewObject vo = (OAViewObject)getDetailVO1();
    if(!vo.isPreparedForExecution())
    +{+
    vo.setWhereClause("1=2");
    vo.executeQuery();
    +}+
    vo.setWhereClause("1=2");
    vo.setWhereClauseParams(null);
    vo.executeQuery();
    Row row = vo.createRow();
    vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    +}+
    Code in ProcessRequest method of CO_
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("createHeader");
    am.invokeMethod("createLines");
    I am facing the below error when trying to save the master detail records in the respective OAF Page_
    Developer Mode Error: Stale Data_
    The requested page contains stale data. This error could have been caused through the use of the browser's navigation buttons (the browser Back button, for example). If the browser's navigation buttons were not used, this error could have been caused by coding mistakes in application code. Please check Supporting the Browser Back Button developer guide - View Object Primary Key Comparison section to review the primary causes of this error and correct the coding mistakes.
    Cause:
    The number of displayed records, 1, exceeds the actual number of records, 0, in view object AstfAM.DetailVO1. Some of the displayed records may have been deleted.
    To proceed, please select the Home link at the top of the application page to return to the main menu. Then, access this page again using the application's navigation controls (menu, links, and so on) instead of using the browser's navigation controls like Back and Forward.
    I request the members to help me in resolving the above error.
    Many thanks in advance.
    Regards,
    R4S.

    Hi user11991972,
    I just faced the same issue and I managed to fixed it using this thread:
    Developer Mode Error: Stale Data
    In my case, I amended the "Change indicator" checkbox on some of EO attributes.
    One of the master attributes was updated by the AM from the detail page, but when navigating back, the master page was not refreshed due to a customer requirement.
    But I wonder if it could be of any help in your case...
    Regards,
    Olivier

  • Master-Detail Form in Form6i Developer

    First of All Hi to all Respected Gurus.
    I am stuck in a very basic element and that is Primary-Key/Foreign-Key relation. I am trying to create a Master-Detail Form based on following structure. Records in Master Table and Child Table are saving (inserting) but Primary Key of Master Table is not saving (inserting) as "Foreign Key" in Detail Table.
    Here is Table Structure(s)
    Master Table Name : MGTC_EDM
    CREATE TABLE MGTC_EDM
    EDM_ID NUMBER, -- PRIMARY KEY
    BILLING_DATE DATE,
    CONSTRAINT PK_MGTCEDM_EDMID PRIMARY KEY (EDM_ID)
    CHILD TABLE : MGTC_EDD
    CREATE TABLE MGTC_EDD
    EDD_ID NUMBER; -- PRIMARY KEY
    EDM_ID NUMBER; -- FOREIGN KEY RELATION WITH MGTC_EDM
    MEM_ID NUMBER;
    AMOUNT NUMBER;
    CONSTRAINT PK_MGTCEDD_EDDID PRIMARY KEY (EDD_ID),
    CONSTRAINT FK_MGTCEDD_EDMID FOREIGN KEY (EDM_ID)
    REFERENCES MGTC_EDM (EDM_ID)
    TRIGGER OF "BEFORE_INSERT" IS APPLIED ON BOTH TABLES TO AUTO-POPULATE INCREMENTAL ID
    IN FORM6I, I'VE APPLIED A 'KEY_NEXT_ITEM' TRIGGER ON BILLING_DATE FIELD OF MASTER TABLE TO COMMIT THE RECORD AND TO MOVE THE CURSOR TOWARDS DETAIL BLOCK
    AND THERE ARE NO MORE TRIGGERS IN THE FORM.
    AS CURSOR MOVES TOWARDS DETAIL BLOCK, RECORD IN MASTER TABLE SAVES (COMMITTED) ON AUTO AND WHEN I PRESS "SAVE" BUTTON TO SAVE THE RECORD IN CHILD FORM DETAIL TABLE ALSO COMMITTED
    BUT WHEN I PRESS F8 TO EXECUTE THE QUERY ONLY MASTER RECORD SHOWS AND NO RECORD SHOWS IN THE DETAIL TABLE. WHEN I CHECKED IN DETAIL TABLE IN TOAD, IT FOUND THAT PRIMARY KEY OF MASTER TABLE (EDM_ID) NOT SAVED IN DETAIL TABLE.
    PLEASE HELP.

    Dear Mr. O.Developer, Many thanks for your reply.
    Yes, I've created relationship. Relationship exist in Master_Block and below is the detail
    Relationship Name = MGTC_EDM_MGT_EDD
    Relation Type = Join
    Detail Data Block = MGTC_EDD
    Join Condition = MGTC_EDD.EDM_ID = MGTC_EDM.EDM_ID
    Delete Record Behavior = Non Isolated
    Prevent Masterless Operations = No
    Deferred = No
    Automatic Query = No

  • Data block wizard breaks master-detail

    I've encountered the following situation, and I'm wondering if it's a known bug or if I'm doing something wrong:
    1. Open the data block wizard on an existing block that is the "detail" block of a master-detail relationship.
    2. Add one new field to the block. No other changes are made.
    3. When the form is recompiled and run, the master-detail relationship is broken. The detail block contains all the rows in the detail table. Clicking on the rows of the master block does not change the detail.
    Adding a field to the block manually does not cause a problem. The relation is not impacted, and we see no property settings that are wrong. We tried downloading and installing all of the latest patches for forms 6i, and the problem occurs with that release as well. Any ideas?

    I think you do something wrong because I add many fields many times and it works fine.
    Thanks
    Abubakr
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Swartzlander:
    I've encountered the following situation, and I'm wondering if it's a known bug or if I'm doing something wrong:
    1. Open the data block wizard on an existing block that is the "detail" block of a master-detail relationship.
    2. Add one new field to the block. No other changes are made.
    3. When the form is recompiled and run, the master-detail relationship is broken. The detail block contains all the rows in the detail table. Clicking on the rows of the master block does not change the detail.
    Adding a field to the block manually does not cause a problem. The relation is not impacted, and we see no property settings that are wrong. We tried downloading and installing all of the latest patches for forms 6i, and the problem occurs with that release as well. Any ideas?<HR></BLOCKQUOTE>
    null

  • Master Detail Wizard: Cannot Redirect Detail Form to Detail Form 2

    Dear all,
    I created a Master Detail Report Forms using wizard where Master Report has a link to its Detail1 form, which has a link to its Detail2. However, the page redirection didn't work from Detail1 to Detail2 whereas Master to Detail1 worked.
    I checked the region button in Detail 1 that did the redirection, I didn't find anything wrong (I think).
    Suppose Detail1 is page 210 and Detail2 is page 220, The following is my configuration:
    - Under "Action When Button Clicked" tab:
    1. Action is set to "Redirect to Page in this Application"
    2. Page is set to 220
    3. Request is left blank
    4. Clear Cache is set to 220
    5. Set These Items is set to
    P220_TICKET_ID6. With These Values is set to
    &P210_TICKET_ID.7 Database action is set to
    - No Database Action -Is there any other place that I should check that might effect the redirection? Please advice.
    I'm using Apex 4.0.2
    Best regards,
    Val

    The answer to this problem appears to be that there is a bug in HTMLDB 2.0 (at least thats what I'm thinking) in that it is not handling dates correctly when passing them to the detail form. Once I modified the date column in the detail form, and formatted it with TO_DATE, it all worked fine. I would think the wizzard would do this. Oh well...
    Robert

  • Master Detail Wizard and User Interface Defaults

    Trying to create a master/detail form (on one page, no report).
    1. Wizard is giving the option to use User Interface Defaults for the master table, but not for the detail (I don't want to for either) - is this the expected behaviour? If so, why the inconsistency? Will/can this be changed in the future?
    2. Despite selecting NOT to use UI defaults, and entering new region titles, wizard is creating default region titles using the UI defaults. Is this a bug?
    3. Supplementary: Is it possible to get rid of UI defaults?
    HTML DB 1.6.0.00.87

    I asked about this last month:
    Master Detail Wizard and User Interface Defaults
    with no response.
    Anyone?

  • 3 Page Master Detail Wizard

    Using the Create Page wizard to create a 3 Page Master Detail by selecting the "Edit detail on a separate page. Resulting pages are:-
    1. Report on Master page,
    2. Master Detail page (allows maintenance of Master row)
    3. Maintain Detail page
    However the linkage between the Master Detail and Maintain Detail pages are suspect along with the resulting Maintain Detail page.
    On Master Detail page, displaying an existing master row, the user wants to create a detail row - pressing the [Create] button for the detail does navigate to the Maintain Detail page BUT it does not pass the primary key ID value of the Master row which was displayed.
    Also when the user presses the edit details from the Master Details page then why should the displayed detail's lookup master primary key value ID updateable, if APEX is shielding the users/developers from the alleged problems of natural keys and leaning (supporting) surrogate keys then why is the detail's master key value ID updateable?
    Also is there any examples out there which show the best way to implement Master with many details and also Master > Detail And Detail of the Detail. In the tutorials we are only exposed to simple data models that only have one level of details.
    Thanks

    Hi,
    I am using the Create Page wizard, specifically the Form, Master Detail with Edit detail on separate page (as opposed to edit details on same page as master using a column report) to create a "3 Page Master Detail" as per wizard feedback.
    Take for example the table Suppliers (master) and Supplier_Contacts (details) as a simple example.
    Page 1 - Lists Suppliers as a column report on the Suppliers table with an edit icon on the P1_SUPPLIER_ID page item. Pressing edit icon will navigate to page 2 passing the P1_SUPPLIER_ID value as a parameter. Pressing the create icon will also navigate to page 2 but will not pass a P1_SUPPLIER_ID value.
    Page 2 - Supplier & Contacts (Master Detail) page, permits edit (insert, update and delete) of Suppliers (master) and also displays the Supplier_Contacts (details) rows for the supplier_id of currently displayed suppliers row. The displayed Supplier_Contracts have an edit icon that will navigate to page 3 passing the supplier_id and contact_id for the selected supplier_contacts row. Also has a create button on the detail Supplier_Contracts region which will navigate to page 3 BUT the wizard has not passed the P2_SUPPLIER_ID value as a parameter as the data model and user action dictates.
    Page 3 - Supplier Contacts (edit details on a separate page). My observation is that the Supplier_ID (foreign key to Master Suppliers table) is displayed as text item and is updateable when navigated from page 2 as an edit details transaction/event. Why on earth allow a user to select and navigate the Supplier and then the Contact to edit and then allow the user to update the master foreign key? Similarly if the user has selected and navigated to the Supplier (master) to which they wish to add a Supplier Contact (detail) why is the supplier_id (master PK ID) not passed to the edit details page and the supplier_id also non-updateable.
    Hope this explains it a bit better.

  • HTMLDB 1.6 Master Detail Wizard???

    Hi People,
    Is there any wizard to create a master/detail application in HTMLDB 1.6???
    Thanks

    "403937"
    You can create master detail forms in 1.5, but you'll have to do it manually. Here is viewlets that shows one approach:
    http://www.oracle.com/technology/products/database/htmldb/viewlets/master_detail_short_viewlet_swf.html
    Sergio

  • Wizard generated Master-Detail form issues

    The wizard-generated master/detail forms have several severe usability issues when the "Choose Layout" option is set to "Builder master detail with: edit detail as tabular form on same page".
    Some of these issues are:
    - The form has two Apply Changes buttons, one to save the master row and one to save the detail row. Users find this very confusing. If you save the master row changes, any changes to the detail rows are lost and vice versa.
    - The form has two Delete buttons, one to delete the master row and one to delete the checked detail rows. Users find this confusins also. Clicking the lower delete button discards any other changes that were made.
    - The Add Row button also discards any other changes that were made.
    The first two issues are easily fixed. With a few simple changes to the generated page, I can make it so there is a single "Apply Changes" button that 1) saves any changes to the master row, 2) saves any changes to detail rows and 3) deletes any checked detail rows.
    I cannot figure out how to solve the third issue (that the add row button discards any changes). I can make it so the "Add Row" button saves the changes, but this isn't user friendly either; I don't think any changes should be comitted unless the user specifically presses 'Apply Changes'.
    So far, I thought of several ways to possibly fix this but can't get any of them to work. Some of the ideas were:
    1. The 'Add Row' button could run the automatic row processing and MRU processes, but not do a commit untill/unless Apply Changes is pressed. I don't think this is feasible because http is stateless and connection pooling may be used, so we can't have a transaction that spans http requests.
    2. Move the Add Row process to page rendering so that the detail table always has an empty "add row" row thereby making the Add Row button unnecessary. I tried this, but it looks like the add row process was designed to run during the page processing, not during rendering, and it fails with a divide by 0 error when it is run during page rendering.
    3. Use client-side DHTML (instead of the HTML DB add row process) to add an empty row to the html table (i.e. add row button does not do a submit, it is handled entirely on the client). I tried this, but the MRU process fails because it doesn't expect the added row.
    If anyone has any other ideas on how to fix this problem, they would be greatly appreciated.
    HTML DB solves this problem in the SQL workshop create table wizard.
    In HTML DB 1.6, the "Add Column" button does a submit but somehow saves any changes that were entered.
    In HTML DB 2.0 beta, client-side DHTML is used (my approach 3 above).
    Can someone from Oracle share how the HTML DB create table wizard solves this problem?

    Eric,
    Thanks for your feedback. I’ll add your suggestions to our list of tabular form enhancement request.
    The wizard generates a regular form for the master record and a tabular form for the detail records. As you pointed out, it’s quite easy to customize this to your individual needs.
    Unlike regular forms, there’s currently no session state concept for tabular forms, so you either need to write your data to the database, or you will loose any changes if you e.g. paginate. For the same reason, the “Add Row” button and the associated process is generated so that any changes are saved to the database before adding a new row. Of course the MRU process that is executed on “Add Row” can be removed, if that is the preferred behavior.
    A work around would be to code the DML processes for tabular forms manually, and temporary store the data in HTML DB collections to simulate a stateful behavior.
    In HTML DB 2.0 we started adding DHTML features, such as the create table wizard you’re referring to. Some features, like the pull down menus, will be available to be used in your own applications. Other features, like the DHTML tabular form, won’t be available for custom applications in 2.0.
    Regards,
    Marc

Maybe you are looking for

  • Since downloading Security Update 2012, Word for Mac no longer able to save or save as documents;  program freezes after clicking save

    Since downloading Security Update 2012, Word for Mac 2004 is no longer able to Save or Save As documents.  After clicking Save or Save As, the program ceases to respond and must be Force Quit.  Any tips on making Word functional again?

  • Linking data across PDF's in a portfolio

    Morning All, I am looking for a way to be able to copy data input into a form in one PDF in my portfolio and have it appear in mutliple other forms sharing the same fields. For example I have a portfolio full of forms to be filled by our clients, man

  • Acrobat printer stops working

    I am seeing a problem where the Acrobat virtual printer stops working after my system has been running for a while.  The symptom is that when printing to the virtual printer, the file appears in the queue, then disappears as if it was successfully pr

  • Bulk changes to Common Resource Parameters

    Hi, I need to make changes to many disks and file server resources at once in my cluster. The settings I need to change are in the common properties for resources: http://msdn.microsoft.com/en-us/library/aa372230(v=vs.85).aspx RestartPeriod RestartTh

  • Hyperion Performace Scorecard

    Is there a sub-forum for HPS? I have one simple question for Performance Scorecard. How to change the trend indicator? I know the performance indicator can be add or edit in the object view, performance indicator list. But for the trend indicator, an