Cannot delete record in master detail form in apex 4.0.1

Dear all,
I've created a master detail form in apex 4.0.1. Inserting and updating records is working. But when i want to delete a detail or master record, nothing is happening. The delete button is just not working.
Can someone please tell me if this is a bug, and if so, is there a work around to solve this problem?
Thanks,
Diana

Hi,
Am I the only one having this problem?
Thanks,
Diana

Similar Messages

  • Can't add new detail record in Master Detail form

    Hi ,
    I've created a simple database application from scratch by initially selecting a Master Detail page. This generated a report page (for the parent ) and a form page (for the child ). On using the form to add a new child record the following error was generated:
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-01400: cannot insert NULL into ("STUDENT1"."DELEGATE"."DELEGATE_ID"), insert into "STUDENT1"."DELEGATE" ( "DELEGATE_ID", "CLIENT_ID", "SURNAME", "INITIALS", "SEX", "SPECIAL_NEEDS") values ( :b1, :b2, :b3, :b4, :b5, :b6)
    Error Unable to process update.
    The 'child' field listed in the error message is automatically hidden on the form and I had presumed that on generating this form using the wizard that I would have had an opportunity to link the delegate_id field to a trigger or a sequence as seems to happen when creating a database application scratch using other page types. I'm new to Apex so I'd be grateful if anyone could let me know as to why this default behaviour occurs,
    regards,
    Kevin.

    I tried it for Apex 4.0.2 (my version) and 4.1 (on apex.oracle.com) and I am asked for master and detail PK generation in both versions.
    What are your steps exactly in the wizard? Like this?
    Create page -> Form -> Master Detail Form
    Now you see a whole list of sub steps including "Primary Key Source".
    Oh I see "Create Application wizard." in your post. Start with an empty application (blank page) and use the Create Page wizard instead. Maybe that's the difference.
    Edited by: InoL on Nov 18, 2011 9:27 AM

  • Inserting records in master detail form

    I am moving an existing Webdb Application to portal. In the application there is a master detail form along the following lines
    Dept Id: 10
    Dept Name: IMS
    Employee ID Employee Name etc
    1586 Julie Wilks
    Currently users can insert/update/delete detail lines. When inserting, the dept_id foreign key is automatically inserted into the dept_id column in the detail table. My understanding is that for some reason this does not happen in portal. Instead, the user is expected to input any foreign keys manually. As this could lead to all sorts of problems I'd rather not have to do this.
    Has anyone found a means to get around this problem?
    If solutions have already been posted, please point me in the right direction as a search on the forum hasn't come up with anything.
    Many thanks,
    Julie Wilks

    Hi,
    Am I the only one having this problem?
    Thanks,
    Diana

  • Creating Detail record in Master Detail form

    I have created a Master Detail form with the Detail form being on a second page.
    I have no problem editing an existing detail record. However, if I attempt to create a new Detail record (insert). I get an error. It appears that the value of the field that I am linking the Master and Detail records with, does not get passed to the second (detail) form when I press the 'Create' button and I have not been able to ascertain where I may need to modify the parameters of the page.
    Any guidance would be appreciated.

    Hi Judy,
    It's been 5-6 months since I've created a Master/Detail APEX application, but I don't remember having to create any special trigger or anything. I created a few maintenance appls over tables I created, and created an inquiry appl using Oracle vendor tables. All of them have worked nicely.
    If the PK/FK's are set up correctly it just works. :-) Like magic. If I recall correctly, as you create the appl you define the the key fields to use. If the tables are defined correctly, and you 'tie' them together using the correct key fields in the application everything should work nicely.
    Tony

  • Unable to insert detail record using Master- Detail Form

    Hello All,
    I am new to Apex and we are using Apex 2.2.
    I am trying to create a Master-Detail page using the Wizard. Unable to insert the detail record as the foreign column value is not inserted. How can i assign this value to the child record before inserting? Hope you got my query.
    Pls reply asap
    Thanks
    Biju
    P.S - Can't upgrade to 3.0 yet

    G'day Guys,
    We just had to create a Child Tabular for Master Detail manually ourselves and finally worked out how to set the PARENT_ID field (Foreign Key fields). It was quiet easy after we finally found the little bugger :)
    Under The Reports Attributes for the tabular report, located the PARENT_ID field and edit it (column attributes). Goto the "Tabular From Element" and modify the following values:
    Default Type: Item (Application or page item name)
    default: PXX_FIELD_NAME
    Thats it, so when a new row(s) is added this field defaults to PXX_FIELD_NAME.
    Told you it was easy, but I've just got to glue my hair back in after near tearing it out.
    Reagrds
    Mark

  • Master Detail form in APEX 3.1

    Hi,
    I am a bit new to the wonders of APEX (Only 1 project behind me).
    On my current project I need to make a Master-Detail so I used the APEX template for that. However I have trouble setting my foreign key value in the detail table.
    Table setup is like:
    TABLE A(col_a pk, col_b)
    TABLE B(col_a pk, col b)
    TABLE C(col_aa, col_ba, col c)
    I want to make a Master Detail between table A and table C. As I said I used the template and everything looks good - however no values are put into col_aa when I push the button to add a new row.
    I want to initialize col_aa with the value from col_a when I add a new detail row - but I see no way to do this in a report column.
    Can anyone provide me with some hints on how to do this ?
    Kind regards
    Bo Normann

    First, how do you want this interaction to work? If you just put a button at the top of your detail section for creating new detail records, you could trigger this calculation via that button.
    If I understand correctly, you don't really need values from the detail report. You need the primary key of the master record. If that's true, then you might try this.
    1) Identify the name of the item on your master page that holds the primary key.
    2) Identify the name of the item on your detail page that needs to get the value of the primary key from your master form.
    3) Set the value of the detail item using a page branch that gets fired by your new record button.
    Page branches provide declarative methods to set page items when the branch gets fired.
    There are a lot of ways to do what you want. If either of these don't suite your needs you might want to be more specific about how you would like this operation to work.
    Earl

  • Master Detail Forms with 2 composite primary keys - Is there a workaround?

    Hello All,
    I have been searching for a workaround to the maximum 2 part primary key restriction on the multi-row updates, and master-detail forms, and am hoping that someone can help me. I am using HTMLDB v2.0.0.00.49 with IE 6 against a 9.2 DB.
    I successfully implemented the workaround of Fred Stoopendaal's (see Updata PK on HTML DB ) and it works fine for single page multi-record updateable forms, but alas I haven't been able to extend it to master detail forms (I think it is something to do with Oracle not allowing the "returning" clause on views).
    Here is what I tried:
    two tables, one with a 2 part composite primary key, which is the master table, and a detail table with 3 part composite primary key -
    --------- BEGIN SQL ---------
    create table master_table
    ( master_col1 number
    , master_col2 number
    , master_col3 varchar2(30)
    , constraint master_pk primary key (master_col1,master_col2));
    create table detail_table
    (detail_col1 number
    ,detail_col2 number
    ,detail_col3 number
    ,detail_col4 varchar2(30)
    , constraint detail_pk primary key(detail_col1,detail_col2,detail_col3)
    , constraint master_detail_fk foreign key (detail_col1,detail_col2) references master_table(master_col1,master_col2));
    create or replace view v_master_table as
    select rowid mata_rowid,mata.*
    from master_table mata;
    create or replace view v_detail_table as
    select rowid deta_rowid,
    (select rowid from master_table mata where mata.master_col1 = deta.detail_col1 and mata.master_col2 = deta.detail_col2) deta_mata_rowid
    , deta.*
    from detail_table deta;
    create or replace trigger mata_ins_upd_trg
    instead of insert or update on v_master_table
    referencing new as new old as old
    for each row
    begin
    if inserting then
    insert into master_table (master_col1, master_col2, master_col3)
    values (:new.master_col1, :new.master_col2, :new.master_col3);
    end if;
    if updating then
    update master_table
    set master_col1 = :new.master_col1,
    master_col2 = :new.master_col2,
    master_col3 = :new.master_col3
    where rowid = :old.mata_rowid;
    end if;
    end;
    create or replace trigger deta_ins_upd_trg
    instead of insert or update on v_detail_table
    referencing new as new old as old
    for each row
    begin
    if inserting then
    insert into detail_table ( detail_col1, detail_col2, detail_col3, detail_col4)
    values (:new.detail_col1, :new.detail_col2, :new.detail_col3, :new.detail_col4);
    end if;
    if updating then
    update detail_table
    set detail_col1 = :new.detail_col1,
    detail_col2 = :new.detail_col2,
    detail_col3 = :new.detail_col3,
    detail_col4 = :new.detail_col4
    where rowid = :old.deta_rowid;
    end if;
    end;
    --------- END SQL ---------
    Then I created a master-detail form in Apex on the two views, using the mata_rowid and deta_rowid as primary keys, and mata_rowid=deta_mata_rowid as the link. I realise that using a function to fetch the master rowid within the detail view query is costly, but it was my intention to modify the record fetch queries to use the real FK columns once things were up and running.
    It seems to generate the pages ok, and I can insert/update master table records, but as soon as I modify records in the detail table things go a bit haywire. I can't find any documentation on how the inbuilt MRU/MRD logic works, so can't figure out the issue.
    Can anyone out there tell me what the problem is with the logic above, or if they have come up with a neat solution to this annoying limitation. I know that many will say that I should modify the data model to use surrogate primary keys, but many of the uses for HTMLDB are new interfaces for old schemas, so a workaround that doesn't involve wholesale data model changes would be preferable.
    Thanks in advance,
    Mike Cretan

    Hi, this is likely not the most elegant way...but perhaps the simplest -- and I didn't have much time to play.
    I used Wizard to create two separate Master Detail forms, each with a separate detail table. Thus I ended up with four pages:
    Page "A" - "Selector" page for Master (Report), with Edit link driving to Detail-1
    Page "B" - Editable Master/Detail-1 page (HTML / Report)
    Page "C" - "Selector" page for Master (Report), with Edit link driving to Detail-2
    Page "D" - Editable Master/Detail-2 page (HTML / Report)
    Then I selected the primary key column TWICE on the Report on Page A. Modified the second instance of this column to navigate to Page D (passing primary key) exactly the way the original instance of this column navigates to Page B. Then I deleted Page C.
    Since you can have only one Tabular Entry form per page, this seemed the best way to drive two separate detail tables from a common interface.

  • Can any Oracle Forms developer show what a master-details form is?

    I created a master-detail form in APEX. However, the MD form really made me laugh because I needed to SAVE the master record and the detail tabular form separately. There was one SAVE button associated with the master record and one SAVE button associated with the detail tabular form. A master-detail form should let the user to SAVE the master record and the detail tabular form together - one SAVE button saves everything. This is what we can easily do in Oracle Forms - one master and several details (tabbed). I am just frustrated with all the current thin-client technologies including JDeveloper. I cannot simply tell the users that they need to nagviate between pages many times to finish data entry. It doesn't make sense to have the user requirements to fit the current "limited" technologies.

    Not quite Forms functionality but master detail is shown in the Southwind demo on htmldb.oracle.com studio link.
    The details need the master id, and hence the save is done prior creating details.
    Forms of course relied on top down processing such that the header would be inserted before the details would be.
    I know its not exactly what your looking for but it might be the best you can get..
    Daryl...
    ah those are the days of forms 2.3 and what were they called exit triggers ..

  • How to create Insert & Update on master-detail form JPA/EJB 3.0

    Is there any demonstration or tips how to Insert record on master-details form for JPA/EJB 3.0 with ADF binding?

    I have master-detail forms (dept-emp). I drag the dept->operations->create method to JSF page. But when I click create button, only dept form is clear and ready for insert. But emp form is not clear. How can I add create method for this?
    Can you give some example how to pass the right object to the persist or merge method so that it can save both the two objects (master-detail tables)
    Thanks
    Edited by: user560557 on Oct 9, 2009 8:58 AM

  • Master detail form Error in mru internal routine: ORA-20001

    Hi,
    i created a master-detail form with apex standrad wizard.
    Master e datail are on the same page.
    All works fine.
    My detail form contain some fields of my detail table.
    Now i added a link on detail form for call a form with all fields of my detail table.
    The link work fine.
    When i try to add row or update my detail form i receive the 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 = "D472A2BF636CA11122F196B8A32B3DC8", item checksum
    Any help?
    Thanks in advance
    Lukx

    Lukx,
    I've just reproduced your what I believe you wanted and didn't receive any errors. Here are the steps I took.
    1) Used the wizards to create a Master Detail form (with Detail edit on the same page as the master and only showing 2 of the detail columns)
    2) Used the wizard to create a FORM ON A TABLE for my detail table allowing the user to edit all detail columns
    3) Created a "column link" column on the detail form of the Master Detail form which links to the FORM ON A TABLE, passing across the ID of the detail record.
    When I do this, everything seems to work perfectly as expected.
    Is there something I'm missing in the steps you performed to create your scenario?
    Thanks
    Doug
    http://www.sumneva.com

  • Master Detail Forms

    Can somebody please explain to me how to set up a Master Detail form using Apex 3.1.0?
    The help system is not very helpful.
    I have a Master table whose PK is based on a sequence.
    I have a Detail table whose PK is the concatenation of the Master table's PK with a VARCHAR2.
    Here is how the form is supposed to work: I enter data on the master and detail sections, click an Insert button and 1 record should go into the master and 1 or 2 records into the detail.
    But now I am on the pages that ask me to choose the source for the PK's.
    The source for the master is easy -- it's the sequence.
    But how do I enter the source for the detail table primary key columns?
    The first part of the PK comes from the same sequence number that the master table is based on, so I do not want the sequence to increment once to populate the master table and again to populate the detail table.
    The second part of the PK comes from a value that was entered on the form.
    So how do I accomplish this?
    Do I choose "Existing sequence" for the first PK source and "Custom function" for the 2nd?
    Or what?
    Thanks for your help. Please be as specific as possible in your answer.

    I tried creating a master detail form using a view of the current date's attendance(from the MASTER table) as the detail table AND and the table of all date's attendance as the MASTER table. If I want just the current date's attendance from the MASTER table..how do I get those records the show in the detail of the form?

  • Master - Detail Form with multiple children

    Hi,
    I have managed to create a Master - Detail form in APEX with 2 child tables. For evey parent it brings back the associated child records from the
    2 tables in 2 regions.
    I am having a problem with the Add Row buttons. I copied the button from region 1 ( child 1) to region 2 (child 2). Re-named them (AddRows2).
    When I hit hit Child2 Add Rows, it adds the row to Child 1 region. I suspect it's got something to do with the MRU Process, so I created another
    one called MRU2, based on button Addrows2/ Child table 2. Seems logical, but it still creates the new record in Region 1 ( Child 1).
    Any ideas or examples,
    Thx.

    Hi,
    I am from the Oracle Forms background too and I have been using Oracle Apex for a while. Oracle Forms is just like client-server application although it uses the Forms servlet to render its Web front-end. I think...if you're really trying to develop true-Web application, you should try to forget such features as "master with many details" in Oracle Forms. Loading all the details in a single page will cause overheads anyway. When you discover more about ajax and such third-party javascript libraries as jquery and mootools, you'll have a different mind of Web development.
    Thanks.
    Andy

  • Apex - Error in Checksum in Master-Detail Form Page

    The following error message is thrown in a Page with a Master-Detail Form in Apex ,
    ORA-20505: Error in DML: p_rowid=362, p_alt_rowid=ID, p_rowid2=, p_alt_rowid2=. ORA-20503: Current version of data in database has changed since user initiated update process. current checksum = "71064C738DA3DADD5500149404378CFF" application checksum = "0"
         Error     Unable to process row of table "table-name".
    Somebody can tell me what is happening ? Thanks.

    Please check this thread ORA-20505: Error in DML : ORA-20503: . There is a detailed discussion on the same error.

  • Primary key updation in the Master details form.

    Hi All,
    I am struggling with Master Detail form in apex 3.12.
    I have two tables.
    SaleMaster ( TRN_ID as PK ) Created from Sequence.
    SaleDetail ( TRN_ID , TRN_TYPE as PK) TRN_ID FK from SaleMaster , TRN Type is user Input in SaleDetail.
    What is best simple way to create the master details form for the above master details tables.
    Thanks.

    I found a way. I dont like it - but it works.
    I made a column link in the detail with the following:
    javascript: doSubmit('NAVIGATE@#ROWNUM#);
    This way I obtain information in the :REQUEST object about which row was clicked.
    In a After submit process on the page I then parse this :REQUEST object like this:
    DECLARE
    v_row NUMBER;
    v_pos NUMBER;
    BEGIN
    v_pos := instr(:REQUEST,'@',-1);
    v_row := substr(:REQUEST, v_pos+1);
    IF APEX_Application.g_f02(v_row) IS NOT NULL THEN
    :P_PRIMARY_KEY_ID:= APEX_Application.g_f02(v_row);
    ELSE
    :P_PRIMARY_KEY_ID:= -1;
    END IF;
    END;
    I know that my "Id" column is named f02 in the form, so this way I can find the id. I then assign this id to a kind of global variable - on the page I redirected to I can now find the Id.
    Talk about ugly code :P

  • Apex Master Detail Form error

    I have created a master detail form. Detail table's primary key consists of 3 columns. When i am updating anything it gives the following 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 = "BC743AF059FDFE4F2814A5EF2A03AC84", item checksum = "7B54748980DD8AB6BF30D538843F520F"., update "APEX_DEV"."V_DATA_STRM_VLDT_CNFG" set "VLDT_SEQ_NUM" = :b1, "DATA_STRM_SID" = :b2, "VLDT_TY_SID" = :b3, "VERI_CTG" = :b4, "LAYT_DEPN_I" = :b5, "REC_FLD_SID" = :b6, "BG_EFF_D" = :b7, "END_EFF_D" = :b8, "CRE_USR_ID" = :b9, "CRE_TMST" = :b10, "UPD_USR_ID
    Can any body tell me what's wrong with the form ?
    Thanks in advance.
    Best Regards,
    Prakash

    Prakash,
    The built-in master-detail forms in APEX currently only support primary keys with one or two columns. Also, neither one of you primary columns can be part of a foreign key. We're considering extending this in APEX 4.0. Until then, you will have to write your own update routines as a page process on the master-detail page.
    Regards,
    Marc

Maybe you are looking for

  • Data loading

    Requirement is that enhanced the extractor by adding fields mapped the fields in bw in DSO,added in dimension in cube and also mapped in multiprovider ,on multiprovider report is build. Now for testing need to reflect the data in report. How can it a

  • Usage reports are not getting in site collection level

    Verifiedthatusage data collection is enabled. Verified that Analytics Usage, Feature Use, and Page Requests are selected under the Events to Log. Verified that jobs Microsoft SharePoint Foundation Usage Data Import and Microsoft SharePoint Foundation

  • Can I buy a new battery somewhere?

    Playbook is a great tool when it works, which is hardly ever. Battery won't hold a charge and won't charge. Is there a place to buy a new battery or should I just chuck this thing and get in  iPad?

  • DISPLAY PAST YEAR ON REPORT DESIGNER

    Hi Guys I Need To display the actual and past year of entry in the header of a report. For Example, if the user entry it's year 2008, in the header of my report i have to display YEAR 2008 & 2007. im using the Report Designer. can somebody help me  h

  • How can I see WHY a message was encrypted?

    On our Postx box, I used to be able to see specifically what caused a message to become encrypted (for example a social security number). It would report what keyword(s) triggered the encryption. We just replaced the Postx with an IronPort C150 (love