Master-Detail Form - only the first detail record is saved in database

Hello,
I have created APEX master-detail form with detail tabular form on the same page.
I tried to enter data to the several detail rows (using Add Row button) and then press Apply Changes button.
Unfortunately, only the first detail row is being inserted into the database.
What could be the reason?
Thanks in advance,
Erik

Hi,
I had a similar problem.
Problem with addRow(); function in tabular forms - only first line saved
Maybe it will help to you.
Regards
J :D

Similar Messages

  • How do you print only the first ten rows in a table?

    Hi everyone:
    I am trying to print only the first ten records by using <?for-each: <group name>?> and <?end for-each?>. Is there any stop tag that I could use to stop printing after the printing the first ten records without modify the XML data file? I am using XMLP Desktop 5.6.2. Thanks for your help!

    You are right kkretser. However, if your report have 2 or more layouts pages. You may want to output the necessary records to each page like the first 10 records to the first page the next the to the second page. Like you said I figure out now that you can use <?if:position()<10?> print out the rows and then on the second page layout, you can do <?if:position()>=10?>. Thanks to all of your replys, guys!

  • What is the proper way to record line numbers in Master/Detail records?

    Guys and Gals,
    Been thinking about this for awhile, but thought it best to ask the people who really know what they are doing.
    What is the proper way to record & show line numbers in a Master / Detail record set?
    For example, take Master/Detail relationship Orders and OrderItems. Orders has a column Document_Number and OrderItems has Document_Number, Line_Number. Line_Number should contain the row number 1,2,3,4 ... etc. for each row in a document.
    Should I ...
    <ol><li>Add a sequence and a trigger in the database? The FusionOrderDemo does this, but then the sequence never "resets" and I've got row numbers that keep incrementing. So one document has rows 4,5,6 and the next document has 7,8,9 when they should both have 1,2,3.</li>
    <li>Programmatically take care of the row numbers? This seems like I'm asking for trouble. Anytime an insert or delete operation gets done, I'll have to iterate through rows and re-assign row numbers.</li>
    <li>Is there a way to assign row numbers in a table iterator (or data collection?) to an entity?</li></ol>
    Any suggestions would be appreciated. It's looking like #2 is my only option, but if anyone knows different I'd love the input.
    Will

    Thank you both guys.
    As John said, I believe I'm looking for a gap-free sequence per master record.
    The line number of the OrderItems table is the second half of the primary key. The first half of the primary key (DocumentNumber) is the foreign key to the Orders table.
    Think of it like line items on an order or invoice. For example, if you were talking to someone on the phone concerning an invoice, you might say, "The pricing for line item #3 is incorrect." In this case, it's good to have a common reference. Or imagine a Microsoft Excel spreadsheet with no row numbers displayed! You'd never get anywhere if you had to explain something over the phone.
    If this is tricky to perform, I take it using a sequence and trigger such as the Fusion Order Demo is the best way to approach the challenge for simplicity's sake?
    Will

  • Using EJB creating Master/Detail Record

    Hi All
    I would really in need of your help regarding how to show the information of master detail records in a single form
    eg: one text field with department Id and a Search button which should give relevent employees details working in that particular department.
    I tried with ADF business components it works fine..
    I need to do through pure Session Beans and Entity Beans(note : not thru using EJB:UseBean Tag)
    Please i will really appreciate your valuable help..
    Thanks All
    Have a Nice day
    Mohamed Anez

    Kunal:
    Use a code snippet like the following:
    --- Assuming you're in the detail EO's create method ---
    oracle.jbo.server.EntityDefImpl eDef = oracle.jbo.server.EntityDefImpl.findDefObject(<package-qualified-name-of-the-master-Entity-Object>);
    oracle.jbo.Row masterRow = eDef.findByPrimaryKey(this.getDBTransaction(), <foreign-key>);
    If the row does not exist, masterRow will be null.
    findByPrimaryKey first checks the entity cache (which will include your new master row(s)) and then go out to database (if it's not in cache).
    Thanks.
    Sung

  • Foreign key validation while creating master/detail record in document mode

    I am creating master/detail records in the document mode. And I am generating the master primary key in the create() method of the master Entity Object. Now I valdate the foreign key in the detail Entity Object's validateEntity() method by doing a query to the master table through some View Object.
    But since the master record has not yet been posted (since it hasn't been committed) to the database, this query does not return any record and the validation fails in detail object.
    And thus the create fails.
    Please let me know if this is the right approach for doing this. If so where I am going wrong? Else please let me know if there are any better approach to do this.
    Kunal

    Kunal:
    Use a code snippet like the following:
    --- Assuming you're in the detail EO's create method ---
    oracle.jbo.server.EntityDefImpl eDef = oracle.jbo.server.EntityDefImpl.findDefObject(<package-qualified-name-of-the-master-Entity-Object>);
    oracle.jbo.Row masterRow = eDef.findByPrimaryKey(this.getDBTransaction(), <foreign-key>);
    If the row does not exist, masterRow will be null.
    findByPrimaryKey first checks the entity cache (which will include your new master row(s)) and then go out to database (if it's not in cache).
    Thanks.
    Sung

  • Generate file with a master-detail records

    Hi everyone,
    I need your help, one more time.
    I want to generate a file in ODI that have two distincts records of the detail, a master-detail records. The first one record contain general data and second one contains a second level information about the previous.
    I got the result using a bad solution, loading the file line by line, but the file is so large and performace was very slow.
    The expected result is:
    001Purchase Order id 99
    002Item 1
    002Item 2
    001Purchase Order id 150
    002Item 1
    002Item 3
    001Purchase Order id 4870
    002Item 3
    Anyone has an alternative for that?
    regards.

    hello
    i belive you need to use pivot operator
    check out this blog
    https://blogs.oracle.com/warehousebuilder/entry/pivoting_data_in_owb
    rgds

  • Master-details records

    Hi Everybody,
    i have a requirement to show master detail records.to show data i have 3 tables
    they are 1) Flat_Master(flat_id,flat_desc,pic)
    2)Flat_Detail(flat_id,flat_face_id,flat_loc)
    3)face_tab(face_id,face_desc)
    in my jsf page i displayed flat_master as master records and flat_detail as detail records
    here flat_detail is updatable.so for flat_face_id i created a lov choice list based on face_tab table(ADF BC level).
    so when master record i changed, my choice list is not getting changed amd even when page load also for the first record also it is not selecting..
    How can i set this choice list value programatically based on master records?
    Any ideas can you please share with me?
    thanks
    KM.
    Edited by: Mr. Murali on Sep 13, 2011 3:21 AM

    pls provide me the detailed view.,
    what ur trying to say and wat s ur use case?

  • Master-Details Record

    I have a Master and two details records. I need to generate report for the Master-Details record.
    I need to include some details from the Master table and some details from each of the detail tables.
    For example :
    In Master table: Employee_Number
    Employee_Name
    Company_Code
    Company_Name
    In Application Detail table: Application_Code
    Application_Name
    In Non-Application Details table: Non-Application_Code
    Non-Application_Name
    I need to include Employee_Name, Company_Name, Application_Name and Non-Application_Name in my report. How should I go about creating the report?and may I know what type of report style should I use?Should I use Tabular or Group Above?
    Thank for your help

    hello,
    you might want to start off with a regular master detail layout and then modify the layout manually to fit your needs.
    when running throught he wizard, you just select whichever fields you want to display.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Form with six field types. Firefox sends only the first type. Safari sends all.

    I use Ancestry.com. The 'advanced search' form has six data types - name, location, family member, etc, which are 'and'ed together. Starting about two weeks ago, the search function returned data from only the first data type, that is, if name and location are filled in, only name is returned; if location and family member are filled in, only location is returned. I am using a MacBook Pro running Yosemite. Firefox is version 33. Safari works without a problem but I prefer Firefox.

    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox > Preferences > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox > Preferences > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • WebService problem: only the first element of a string array is returned

    Hello,
    i did the J2EE QuickCarRental tutorial and extended it by some features: I created another entity bean and implemented four new methods in the QuickOrderProcessor. Then i deployed it as a WebService and accessed it using the Visual Composer.
    Everything works fine except the return value of one WebService method. I created a method with the return value String[]. But the Visual Composer reads it as String. Only the first element of the resulting string array is displayed. Although the test at the web-page http://<server>:<port>/QuickCarRentalService/Config1 displays the whole string array with all its elements. What did i wrong?
    Another problem is that after deploying the J2EE-Application with new WebService methods the changes are not visible inside the visual composer. Although the test at the web-page http://<server>:<port>/QuickCarRentalService/Config1 displays the changes. Do i have to restart the WebService system in the portal content? If yes how can i do that?

    Here are details about setting up and using web services and some examples:
    /people/prakash.darji/blog/2006/10/10/external-web-service-proxy-configuration-for-visual-composer

  • Capturing only the first vendor code (not all) associated with user

    Hi All
    I have several tables that helps me try to capture the unique number of vendors that are active from the users table as shown below in the SQL script. However, ther is an exception where users may be associated with multiple vendors. I feel that my script captures all associated vendor codes associated with my users. Is there a way of capturing only the first vendor code associated with the user. Thanks for your help.
    Gautam
    SQL SCRIPT:
    select count(distinct(d.vendor_id))
    from SSPE.PG_FORM_SUBMIT a, SSPE.SP_USER_AUX b, sspe.pg_supplier_vendor d
    where a.SOURCENAME = 'wvInventoryForecast' and
    a.PROFILEID = b.ID and
    b.SUPPLIER_ID = d.supplier_id and
    a.CLOCKTIME between to_date('15-Mar-06','DD-MON-YY') and to_date('04-Apr-06','DD-MON-YY')

    you need to have a common criteria to determine which vendor should be selected for an user, if it is by lowest vendor code or if it is the first entered vendor in which case you should have a date (or someother) column to identify which vendor was first associated with the user. In either case you could use the analytic function row_number() to accomplish what you want to do. here is an example
    select * from (
    select user_id, row_number() over (partition by user_id order by vendor_cd) rn, vendor_cd
    from user_table, vendor_table
    where <condition>)
    where rn=1;
    refer online docs for more details on this function (link provided in my earlier post)

  • TestStand database logging problem: only the first character is put in the table.

    I am using TestStand 2.0.1 and Microsoft SQL server database. There is a weird problem when I use database logging. At first, all the database logging ran good.
    Then one day after I moved the test equipment to production line, TestStand only logs the first character of each string field in the tables! There is no error message.
    I setup another SQL server running locally on the same machine as the TestStand is and move the database to the local server, database logging has no problem. Schemas in TestStand Dabasebase Options are the same.
    I tried to run TestStand from another computer on the network. There was no problem before, too.  But now, TestStand always shows a Run-time error message like this:
    Details:
    An exception occurred calling 'LogResults' in 'ITSDBLog' of 'DBLog 1.0 Type Library'
    An error occurred executing a statement.
    Schema: New.
    Statement: STEP_RESULT.
    Connection failureMultiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
    Source: TSDBLog
    Error Code:
    -2147467259; User-defined error code.
    Location:
    Step 'Log Results to Database' of sequence 'Log To Database' in 'Database.seq'
    I have checked that the connection is good and also the table UUT_RESULT has been logged correctly.
    Anyone can help?
    Thanks.

    Thank you very much, Santiago.
    Yes, I have a customized schema, but it is based on the pre-existing schema. I tried the schema:TS 1.x Access/SQL (NI), which  came with TestStand, the results were the same. 
    I have tried to run different sequences. On one computer, I always get only the first character of each string entry logged in the remote database, however for the local server, everything is fine. On the other computer, there is no local SQL server, I always get similar error message as I mentioned in my post. The sequence step reports error is  "Log Results to Database".
    Any more suggestion?
    Thanks again.
    Best regards,
    Jaso

  • Drop Down Box Choose A Name and Have only the first name show up

    I am creating a form for health care.
    I have a drop down box with names of Physicians... their full names so they can be easily identified. And then subsequent fields that will be populated based off of the choice. However What I need is that after the full name from the drop down list is selected than only the Dr's First name shows up in the box to be distributed through out the file. All the rest of the information is already in using this Java:
    switch(this.rawValue){
        case "MD":
            form1.Page1.Physician1LastName.rawValue = " Acccc";
            form1.Page1.Physician1Number.rawValue = "1111111111";
            form1.Page1.Physician1Fax.rawValue = "2222222222";
            form1.Page1.ClientEmail.rawValue = "[email protected]";
            form1.Page1.Physician1Address.rawValue = "xyz suite ";
            form1.Page1.Physician1City.rawValue = "XYY CIth";
            form1.Page1.Physician1State.rawValue = "XZ";
            form1.Page1.Physician1Zip.rawValue = "11111";
            form1.Page1.Physician1NPI.rawValue = "111111111";
            form1.Page1.Physician1License.rawValue = "ABBB111111";
            form1.Page1.Physician1UPIN.rawValue = "A11111";
            form1.Page1.Physician1Specialization.rawValue = "Internist";
            break;
    And is working beautifully thanks for previous help everyone.
    Here is the example from the Drop Down list choices:
         Dr. Aaaaa Abb Accccc
         Dr. Baaaa Bbb Bccccc
    I would like to choose :
         Dr. Aaaaa A Aaaaa
    and upon chosing it have it show only the first name in that field so it can be processed correctly through out the rest of the fields.
    ie:    Aaaaa   (Only nothing else)
    I am a horrible at this stuff I just surf around until I find something that works and copy and paste and play until it works
    So Please be specific:
    Java vs FOrm: Client: Choice   and code ....
    Thanks SO much ....

    Take a look at the attached. The script assumes the name is a three-part string such as Dr. Frank Burns. You can modify it according to your needs.
    // form1.page1.dd::exit - (JavaScript, client)
    if (this.rawValue != null) {
      var doc = this.rawValue;
      var i = doc.indexOf(" ");
      doc = doc.substring(i+1,doc.length);
      this.rawValue = doc.substring(0,doc.indexOf(" "));
    Steve

  • Missing parts list shows only the first material.

    in case of MTO cycle, when i create a plnd order to prod order,in material availability check, system is not displaying all the materials for which shortages are there, instead its showing only the first material.
    any help

    You need to ensure that these materials are actually missing. You check this in transaction CO09 (SAP Note 89362). The checking rule will be whatever you assigned to the production order type in OPJK.
    Also, you need to ensure that the "missing" materials are actually checked for availability - The checking group is assigned in the MRP3 tab of the material master. In OVZ2, look at the entry for this checking group and ensure that "No Check" is not ticked.

  • Attach 2 adobe form with the first adobe form

    Hi All, 
         Can we merge the multiple adobe form into a single adobe form in CRM. 
    I appended both the adobe form content in a single internal table and tried to download PDF file using FM "GUI_DOWNLOAD" I was able to see only the first form. Could any one guide to solve this issue.
    Regards,
    S.Balaji.

    Hi Balaji,
    You can concatenate more than one form together if you us Adobe-forms for the processing. Just have a look inside the functiongroup. It is very similar to the Smartforms solutions...
    Of course, you have to process the pdf-forms by yourself and not want to concatenate given ones, but that should be the case.
    Regards
    Florian

Maybe you are looking for

  • Previewing FLA in HTML file

    Hello I have an FLA file and movie and wish to upload the movie file to a server. However, when I click File | Preview in HTML the HTML file fails to generate (I see only the background colour of my FLA in my browser). What could be the problem there

  • Windows 7 installation on a Pavillion mod. a1620y CTO

    I would like to find out if Windows 7 will install on my HP Pavillion a1620y CTO computer. It has XP Pro presently.  It seems as though the system would work but I would like to be certain if possabil. This question was solved. View Solution.

  • Forcing output via VGA on a MBP

    So I have four monitors hooked up via an active VGA splitter, only problem is that while my MBP recognizes the VGA adapter (screen fades blue for a second) it refuses to actually output any image to the VGA port.

  • Message Type HRMD_A or HRMD_B or HRMD_ABA

    Hi,                                                                                We have a requirement to update HR Master Data into our SAP System from  an External System via Middleware (TIBCO in this case)                                        

  • How to view the previously saved filtered view on relogin?

    Hello friends, I have already posted this question before few days but may be my question was not framed well. Its a very basic question, may be but i am still finding the way to solve it. My question is as I ones as a participant logs-in in the work