Failed to add new detail in the form of master detail record

Hello

I created a simple database application from scratch by selecting the start a page master detail. This has generated a report (for the parent) and a page of form (for the child). On using the form to add a new record to the child, the following error is generated:

Internal error in the routine mru: ORA-20001: error in MRU: line = 1, ORA-01400: cannot insert NULL into ("Student" 1.) "" DELEGATE. " "" ""DELEGATE_ID"), insert"Student"1." DELEGATE values' ('DELEGATE_ID', 'CLIENT_ID', 'NAME', 'INITIAL', 'SEX', "SPECIAL_NEEDS") (: b1,: b2,: b3: b4,: b5,: b6)
Error failed to process the update.

The field 'child' in the error message is automatically hidden on the form and I guess on the generation of this form using the wizard I would have had the opportunity to link the field delegate_id to a trigger or a sequence like this seems to happen when you create a scratch from application database using other types of page. I'm new to Apex then I would be grateful if someone could let me know why this default behavior occurs.

Kind regards

Kevin.

I tried for Apex 4.0.2 (my version) and 4.1 (on apex.oracle.com) and I'm wondering for the production of main PK and details in both versions.

What are your steps exactly in the wizard? Like this?
Create page-> form-> form detailed Master
Now you see a list of steps sub whose "Source of primary key.

Oh I see "Create an Application Assistant." in your message. Start with an empty application (blank page) and use the wizard to create a Page. Maybe it's the difference.

Published by: InoL on November 18, 2011 09:27

Tags: Database

Similar Questions

  • Can I add new members of the sketch in a line of a form?

    Hello
    I thought I heard we can add new members of the sketch in a line of a form in V11?
    So if a I have an account called 'Expense of CapEx' computer in a row, I can add new members "Computer CapEx Depr 2 years", 'Computer CapEx Depr 4 years' etc.
    I am in Version 9.3.1 and need to migrate to v11 if this feature is available.

    You could also consider supporting detail as this type of data capture method. I've written a few applications where we have provided a "class" of assets in the accounts, but when people entered data in a specific asset class, they used retail support to specify exactly what they were buying. You can report on the support of detail, but it does not require a change for hierarchies.

    Hope this helps,
    -Jake

  • How to add radio buttons to the form

    Hello

    I want to add option buttons to the form.

    I wrote the following code:

    Rbg RadioButtonGroup = new RadioButtonGroup();

    RadioButtonField r1 = new RadioButtonField ("first option button");

    RadioButtonField r2 = new RadioButtonField ("second radio button");

    RadioButtonField r3 = new RadioButtonField ("third option button");

    RBG. Add (R1);

    RBG. Add (R2);

    RBG. Add (R3);

    mainScreen. Add (RBG);

    When I run this, I get uncaughException.

    I am doing wrong?

    can someone help me please.

    Thank you

    Maury.

    On the screen, we can add that the fields. RadiButton group will hold all Radiobutton Fields.

     RadioButtonGroup rbg = new RadioButtonGroup();
            RadioButtonField r1 = new RadioButtonField("first radio button");
    
            RadioButtonField r2 = new RadioButtonField("second radio button");
    
            RadioButtonField r3 = new RadioButtonField("third radio button");
            rbg.add(r1);
            rbg.add(r2);
            rbg.add(r3);
            add(r1);
            add(r2);
            add(r3);
    
  • How to add a BUTTON in the form of a report in report Page last column

    Hi friends,

    I created a form with Page report. Now, I want to ADD a button in the last column named Add in the last column of the Report.that would be a new column added to the report.

    How can I add a button to the form with Page report in the report and tell me how PK as ORDER_ID of a particular LINE with this button to add a reference ELEMENT.
    When I click on the button Add ELEMENT, then command to go to the next Page with ORDER_ID.


    How can I do that.


    Thank you

    Hello

    Modify your report and click the report attributes. On the right under 'Tasks' is "Add the link in the column" - click that. This creates a new column. Scroll down to the links section of this new column and add in the following:

    Link text: Add article
    Target: Page in the present application
    Page: (enter the number of the form page)
    Clear the Cache: (enter the number of the form page)
    Point 1 (name): (enter or select the name of the element of the form for the primary key page - for example, P2_ORDER_ID)
    Point 1 (value): (enter or select #ORDER_ID #-which should be the ORDER_ID column on the table for the report)

    Click on apply changes to save and run the report

    This creates a normal hyperlink in the column - each line will have a different value of ORDER_ID, so every link will be slightly different. If you want to make the link look like a button, you can do it with style if necessary

    Andy

  • Add new values for the axis desabscisses when adding a new series

    Hi all

    I work with and I found myself with a problem when I try to add new series.

    < mx:ColumnChart id = "cChart" height = "100%" width = "100%" dataProvider = "{dataChart}" showDataTips = "true".
    >
    < mx:horizontalAxis >
    < mx:CategoryAxis id = "cAxis" categoryField = "{name}" / >
    < / mx:horizontalAxis >
    < mx:series >
    < mx:ColumnSeries yField = xField "{field}" = "{name} field" displayName = "{displayName}" / >
    < / mx:series >
    < / mx:ColumnChart >

    DataProvider is a table something like this:

    -Datachart - > [nameField:A, area: 20;]

    nameField:B, field: 30;

    [nameField:C, field: 80]

    In my application, user boxes add new series after the graph is created. For example, imagine that he wants to put on the table of following values:

    -Datachart - > [nameField:A, area: 13;]

    nameField:B, field: 62;

    nameField:D, field: 30

    [nameField:E, field: 92]

    Now, start the problem:

    When the graph is (adding series with ACE) refresh the values on the axis desabscisses are the same 'old'. In these cases ('A', B', 'C'), but the new do not appear (',' E').

    Is there anyway to fix this?

    Replace this part:

    var currentChart:Array = cChart.series;
    currentChart.push (series1);
    cChart.series = currentChart;  This code do nothing!

    with

    var currentChart:Array = cChart.series.reverse () .reverse ();
    currentChart.push (series1);
    cChart.series = currentChart; But this one does!

    This is to ensure that you will create a NEW array instead of use the reference to the former.

  • Right-click to add new folder on the desktop, is there

    I want to add new folders on the desktop
    (I use to be able to right-click and new folder was an option to add to the desktop)

    Hello sammyg11, you post to a support forum for the mozilla firefox browser. the question you asked is not really related to firefox but is a question about windows: in this case, please refer to the resources of foreign aid: www.sevenforums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html

  • Satellite L - can I add new accounts via the command prompt?

    Is it possible that I can add new accounts to the machine via the command prompt on the screen of "recovery"?

    (When you start in recovery mode and select command prompt)

    I tried the normal commands "net user username / add ', but the accounts are not added to the machine.

    Y at - it another command which can be used?
    Thank you.

    Hello

    I don't know if it will work using the in my opinion Mr. recovery console, it is not possible.
    As far as I know that you can add the user and the password using the CMD, but this might work only when the Windows operating system has been loaded.

    In this case, you can use this command to add the user account: + net user username / add +.
    If you want to add a password for the user account, then you must use this way: + net user username password / Add +.

  • I want to add text box to the form

    Hello

    Please help me to add text box to the form

    If the user can enter text

    I added the button with success

    cann't just add textbox

    Thanks gerard

    It works

  • I have to add new contacts in the database. Should what stage of treatment I add?

    I have to add new contacts to the database. Should what stage of treatment I add?

    Hello

    Please use "Save to the Contact Table" stage of treatment.

    Thank you

    edynamic Experts Eloqua

  • Add new data to the table in a log file

    Hi all. I am new to Oracle and I need to also write new data table in a logfile on Linux in order to live in the display screen. My first thought was to write a trigger, and after some research on googled around, I finally came to this:

    create or replace trigger foo_insert
    After Insert on foo
    for each line
    declare
    f utl_file.file_type;
    s VARCHAR2 (255);
    Start
    s: =: new.udate | '-' || : new.time | ' ' || : new.foo | ' ' || : new.bar | ' ' || : new.xyzzy | ' ' || : new.frobozz | ' ' || : new.quux | ' ' || : new.wombat;
    f: = utl_file.fopen ('BLAH_BLAH', 'current.log', ' a');
    UTL_FILE.put_line (f, s);
    UTL_FILE.fclose (f);
    end foo_insert;

    It seems properly to add new data in the log file as new inserts occur, but open and close the file each time are of course not optimal.
    In the app real new lines could have inserted every second or two. How can I optimize it? In addition, the log file will be archived and turned every day, so there must be a way to effectively report the relaxation of the oracle to reopen the case.


    Thank you!

    >
    I would like to pursue the optimization of the trigger
    >
    As Ed suggested you need to think this through a few others and refine the requirements.

    You said "I am new to Oracle. So you may not realize that anything a trigger didn't REALLY EVEN HAPPEN! The transaction can still be restored by Oracle or by the appellant. Want that all the 'hiccups' look too? If this isn't the case, then you can not use a trigger to do this. You need the process that translates the trigger being called to do logging after the data is stored.

    It should be noted that this requirement is before we can offer solutions to a problem.

    Assuming you want the trigger record all attempts change the data, then the best way I know to do that is to minimize the work does the trigger.
    Another fundamental principle is to follow the advice of the Ed and have a clear separation and distinction between "what" should be done and 'how' to do it.

    To minimize the trigger work change proposed Nicosa approach. Create an AUTONOMOUS_TRANSACTION stored procedure that handles the 'how' and just have the trigger to transfer data to the stored procedure values. The trigger provides data; He doesn't know, or care, what is done with the data.

    The stored procedure is then free to use the files, a table, write to a file or any other method is proving to be the best. You can change the methods without affecting the trigger.

    A queue or table may contain data, but again once you need to think about the obligation. Do you need fair access to data only once? Now, you want a "tail". But what happens if this requirement change tomorrow? You won't have to redesign the architecture.

    With a queue once you delete the queue data it won't here later if you want to get it again. With a table you can take as long as you want.

    I would like to start by using a table to store the data. If you use a sequence number or "insert_date" value, you can always query the data of interest. The table just collects data. He does not care how to use data.

    So, by using proven design principles and knowing that the requirements are for the most part unknown and may change unexpectedly, I would be:

    1. create an AUTONOMOUS_TRANSACTION stored procedure that accepts the parameter data and the thicket in a simple logging table.
    2. change your trigger to call the procedure to step #1
    3. create another procedure that performs a query of 'tail' for you will depend on 'insert_date' number or sequence. This query can write data to a file or return a cursor ref that your script can use to provide data for display.

    The approach described above takes each step in the process relatively independent of the other stages.

    Until put you the finishing touches to the requirements that you do not want to lock up your initial design.

  • Can I add a workflow to the form of update user details by default

    When we add the update user details by default to the Site Modules form / Secure areas... is it possible to trigger a workflow whenever somone fills out the form? I tried what was ercommended in section http://helpx.adobe.com/business-catalyst/partner/create-workflow-notification.html but it does not :-(

    Any help would be appreciated.

    Thank you

    Gavin

    Unfortunately it is not possible at this stage.

  • Unique constraint in the form of master detail error

    Hi all

    I need help, the following requirement.

    I have a master detail form developed on master-child table. the tables have the composite key.

    Old masters has a composite key on columns (A, B)

    Children table has a composite key on columns (A, B, C)

    Child block look something like below

    C       A          B

    10 AAA 1000

    20 1300 BBB

    30 CCC 1400

    40 DDD 1200

    Increments of column C with 10 for each record, and if a new record is insert in intermediaries the records it is incremented to 5.

    My requirement is when an end user attempts to insert record between 20 and 30 or 30 and 40 and clicks on save, the value of the C column must regenerate as shown below

    C       A          B

    10 AAA 1000

    20 1300 BBB

    XXX 30 900

    40 CCC 1400

    50 DDD 1200

    Button Save I wrote the following code

    Declare
      ln_Count NUMBER :=0;
      ln_c number :=0
      cursor c1 is
      select c
      from child
      where a=:child.a
      and b=:child.b
    Begin
      Go_Block('Child');
      First_Record;
      LOOP
      ln_Count:= ln_Count+10;
      :child.C := ln_Count;
      EXIT When :System.Last_Record = 'TRUE';
      Next_Record;
      END LOOP;
    
    
      For c_cur in c1 Loop
      update child
      set c:=ln_c+10
      where a=:child.a
      and b=:child.b 
      and c=c_cur.c
      end loop;
      Forms_DDL('commit');
         
         commit_prc('Commit');  -- We have our own program unit to call commit_form
    
    END;
    

    I tried above in a way because, before approving the changes to the table, I update the existing values in the table of the C column so I would not get unique constraint error.

    When you click the button Save, I get a constraint exception. Hope I made my requirement clear.

    Can someone give me a clue to this implementation.

    Thank you

    malandain

    With this update, all your C-columnvalue became negative. When you post the form thereafter, forms update agaion records one by one the new positive figures. Because the numbers of 'old' in the db are now negative, there will be no violation-UK.

  • Forms 6i insert the new line of the form

    Dear Sirs,
    I have the code button to insert values on the database on the form elements, and I just bring these values to new records in the form only without saving
    Here is the code, but he adds these point on some saved folder, this is the average that it replace and not add
    -----
    DECLARE
    v Number (15);
    BEGIN
    because me in 1... 15 loop
    : department_id: = i;
    : department_name: = "yasser";
    next_record;
    end loop;
    END;

    Please help me

    in the use of albums
    go_block ('blk');
    last_record;
    to add the records on the same shape and do not replace existing records.

  • problem in the form of master-detail when you use the ADF table for detail

    Hello

    jdev version - 11.1.2.1.0


    I create master shape detail using datacontrol drag as ADF master shape secondary Table.


    Now when I create a new line in the detail table using the key CreateInsert a new empty row created on top of the secondary table.

    and other show line that the previous record data based on the master.

    problem is I want to when I click on the createInsert button all the line of the secondary table must be empty and what line to fill two or three user then validate.



    Thanks in advance

    Hello

    If a secondary table has data, then createInsert adds to them. If you want to hide the existing lines, create a new instance of the View object and set the option "extract database" to "No. Rows. Use an af:switcher to change the specified table when the user clicks the createInsert button. There is some coding needed to have this use case in the ADF, but its essentially declarative. Bottom line, is that there is no option automated other than to create new lines in a separate page or dialog box if you are bothered by existing lines

    Frank

  • Need button to start a new page in the form

    This novice needs help in advanced techniques. The form has two main areas in which users must complete; a subform called HeaderSubform, where the user selects a box (drop-down menu field), into a goal of Campus (extensible text field) and the goal to reach the goal (another extensible text field). The second part is TableSubform, a nested under the HeaderSubform subform. It's a fluid table where users between the many actions to achieve objective the objective. Add a button in the row of the table adds more than lines in the table if necessary. The table can cover several pages. In my mind, I call these two subforms, the 'zone '. Below the table that I have an Add a new lens when you click on the button that adds a new 'area', the HeaderSubform and the nested TableSubform, so the user can select another area, and then add the new objective, the objective and the table. Now it all works perfectly, but he has a problem.

    Problem: Suppose that the user starts on page 1. As additional rows are added to the table, the table could end up at the bottom of page 2. When the user clicks on the Add a new goal button a second new 'area' is inserted, but the area menu drop-down and the field of the lens could be on page 2 and the objective area and new table could be on page 3. Basically, I need the new 'area', always start on a new page each time the button Add a new goal .

    An image of the hierarchy is attached, but in general this is how it is implemented:

    Hierarchy:

    (untitled subform) (page 1)     (Flowed, allow page breaks)

    CampusNameSubform (there is another problem that I will)

    Campus (text field)

    HeaderSubform (flowed, allow page breaks, Repeat subform, Min count = 1)

    Region (drop-down)

    Purpose (text field)

    Goal (text field)

    TableSubform (allow page breaks)

    HeaderRow

    Row1

    AddDelButtonSubform

    Button1

    Button2

    AddGoalButtonSubform (flowed, allow page breaks)

    Button3

    I am extremely grateful for your help. Of course, I need this ASAP. TIA!

    Jan

    It shouldn't be too bad...

    Select the HeaderSubform and access the object palette and tab Navigation.  Add a conditional jump, but by clicking on the "Edit" button next to the word "Conditional" and then the sign + at the top of the window that appears.

    Choose the JavaScript language.  In the 'Condition' field, type this expression:

    this.instanceIndex > 0

    It's going to say "when this is true, make this page break," where a "conditional" page break.

    Select pause 'Before', and where it says "To", select "top of Page" in the drop-down arrow.

    Basically, what this will do is whenever the HeaderSubform is NOT the first, stick it on the next page.

    I hope this helps!

    Ryan D. Lunka

    Cardinal Solutions Group

    [email protected]

Maybe you are looking for

  • That means 'rejected the main characters?

    When I try to open a link to my message college library Web site, "has rejected the main characters" appears. What does that mean? In the past, I could open this link and access the catalogues of the library without problem.

  • I want to close all tabs at once

    He always says he is advising me when I close the 2 tabs at the same time, but gives me no option to close one that is always what I want.

  • Toshiba virtual store - only blank white page

    Hi guys a friend recently gave me his Toshiba Journ.E touch.She had already unpacked and on listening. Well, when I got in, I tried to visit * Toshiba Virtual Store *.But when I did, I saw a blank page. I waited 30 minutes (!) but still nothing.I ask

  • My Satellite phone, A makeup restarts

    I have a problem with my laptop. When I turn it on everything seems just, but after a few seconds it turn off and reboot again. I did a format, but it does the same thing. Only in safe mode, it works without any problem. What can I do for this?

  • Translation preferably

    Hello Want to know what preference in the firewall does translation takes place. NAT static, sheep, PAT, NAT policy...