Does not delete child records - ADF-BC

I am using ADF-BC to display data from three tables.
I have a main view and a two view links to the children. when I try to delete the master record it says - Integrity constraint violated - child record found. And one more thing even though it does not delete the child records it deletes the master record from the view (only form the view, not from the database).
How can I make it delete the child record first.
Thanks

I did the while exercise one more time and it started working. thanks.
Now I have another problem. I have to keep that commit button on the page. If I delete the comit button from the page it gives me nullpointer exception at the line
operationBinding = bindings.getOperationBinding("Commit");
How can I solve this
Thanks

Similar Messages

  • Delete child record

    hi is there a quikestt way i can delete child record of the parent table,lets say i have 100 record in child record related to one parent how can i delete the 100 record in smart way not by deleting one by one vale

    You coluld find it easily by googling..
    create table test_dept(dept_id number primary key,dep_name varchar2(50));
    create table test_emp(emp_id number primary key,
          dept_id number references test_dept on delete cascade,emp_name varchar2(50));

  • XSD does not generate child vo

    Hie
    I am using latest adf 11g jdev and doing following:
    1. Created two EOs based on emp and dept tables and created association between these.
    2. Created Emp and Dept VOs and created view link based on the association
    3. Exposed accessor of dept as well as emp vos in vl
    4. Added this into AM data model.
    5. Went to service interface and generated it and selected Dept instance
    After doing all this I am expecting in DeptVO.xsd the child empVO as well but it is not generated.
    Am I missing any step?

    yes thanks i could find it and then posted at: http://adfjsf.blogspot.com/2010/12/adf-11g-my-xsd-does-not-include-child.html
    By the way a question regarding your comment on: Re: Passing complex object to adfbc based ws
    Here you said nested objects are not supported. Here, I can now generate parent VOSDO to contain child reference and so pass the nested object as well from client proxy.
    So, is that comment still holds good or some gap in my understanding? Please advise

  • Data Arrives to PSA but does NOT add any records to ODS.... WHY?

    Hi Gurus:
    I have a unique isseu.  My dada form an info-object arrives successfully to PSA.  But this data does not get added to ODS.  I know that ODS does not contain these records and PSA does show these records.  There are no errors but zer records are added to the ODS.  Has anyone come across this before?  Am I missing somethign??
    Joe-Smith

    r u loading parallelly to PSA and data target (or) PSA and then into Data target..
    which flow u r following...
    otheriwse u delete that request in DSO as anyhow it got 0 records from PSA...
    and go to PSA(data source) manage and select the request u need to update and click on UPDATE WITH SCHEDULER option in that window and start...
    let us know the status...after that...
    rgds,
    nkr

  • Form does not display all records from table

    Hi guys
    I modified one form that was based on a signle DB table. I removed certain fields from the table and added some extra fields to that table. Then based on the new table I also modified the form and removed the text items related to old fields in the table and added new text items pointing to the new fields now. II have checked all the new items properties and they have don't seem to be wrong or so. But now the problem is the form does not display all the records from the table. before it used to display all records from the table when qureied but not now. It only certain records from the table containing all new data and also old data but the form does not display other records though I don't see any obvious discrepancy. Remember that the before doing the modifications, I have table back for the old, created another table that contained new records for the new fields, and then I inserted the old records and updated the new table data in the new table with these new table values. So this way I have got my new table. Could someone help why the new modified form fails to display all records from the new table updated table though it display some of them successfully.
    Any help will be appreciated.
    Thanks

    hi
    Set the block property of "Query All Records" to "YES"
    hope it will work.
    Faisal

  • Form does not show "new" records from SQL Database

    I have a PDF form that pulls data from a SQL Server.  The fields in
    the PDF are populated from the database after selecting a specific
    record from a drop down and then clicking on a button labeled "Fill".
    The problem is that the dropdown does not display new records that
    have been recently added to the database.  I have to open the form up
    in designer then save it, (*note - I change nothing at this point.)
    Then when the form is opened back up in Adobe the dropdown show all
    the records including the new ones.  I even put a manual refresh on
    form to try and fix this an it did not help. Seriously stumped.
    Any help is greatly appreciated.
    Here is my code for the dropdown.
    ++++++++++++++++++++++++++++
    topmostSubform.Page1.JobSelect::initialize - (JavaScript, client)
    var sDataConnectionName = "BBCC"; // example - var sDataConnectionName
    = "Test";
    var sColHiddenValue = "ContractAdmin_Key"; // example - var
    sColHiddenValue = "Dept_ID";
    var sColDisplayText = "JobDescription"; // example - var
    sColDisplayText = "Dept_ID"
    // Search for sourceSet node which matchs the DataConnection name
    var nIndex = 0;
    while(xfa.sourceSet.nodes.item(nIndex).name != sDataConnectionName)
    nIndex++;
    var oDB = xfa.sourceSet.nodes.item(nIndex);
    oDB.open();
    oDB.first();
    // Search node with the class name "command"
    var nDBIndex = 0;
    while(oDB.nodes.item(nDBIndex).className != "command")
    nDBIndex++;
    // Backup the original settings before assigning BOF and EOF to stay
    var sBOFBackup =
    oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("bofAction");
    var sEOFBackup =
    oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("eofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayBOF",
    "bofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayEOF",
    "eofAction");
    // Clear the list
    this.clearItems();
    // Search for the record node with the matching Data Connection name
    nIndex = 0;
    while(xfa.record.nodes.item(nIndex).name != sDataConnectionName)
    nIndex++;
    var oRecord = xfa.record.nodes.item(nIndex);
    // Find the value node
    var oValueNode = null;
    var oTextNode = null;
    for(var nColIndex = 0; nColIndex < oRecord.nodes.length; nColIndex++)
    { if(oRecord.nodes.item(nColIndex).name == sColHiddenValue)
    { oValueNode = oRecord.nodes.item(nColIndex); } else
    if(oRecord.nodes.item(nColIndex).name == sColDisplayText) { oTextNode
    = oRecord.nodes.item(nColIndex); } }
    while(!oDB.isEOF())
      this.addItem(oTextNode.value, oValueNode.value);
       oDB.next();
    // Restore the original settings
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sBOFBackup,
    "bofAction");
    oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sEOFBackup,
    "eofAction");
    // Close connection
    oDB.close();
    ++++++++++++++++++++++
    Here is code for the refresh button
    +++++++++++++++++++++
    topmostSubform.Page1.Button27::click - (JavaScript, client)
    sourceSet.BBCC.requery();
    +++++++++++++++++++++

    pguerett wrote:
    The other thing that might be happening is a refresh issue on the DropDownList. Try adding the command xfa.layout.relayout() after the database connection has been closed.
    Paul
    Good catch Paul!  Would you believe that I have been trying to get this resolved for almost two years! Works perfect now.
    Thank you,
      - Eric

  • My new iphone 5 email is synched with my home office computer Outlook email using a POP account, but deleting an email on my computer does not delete it on my phone and vice versa.  Is there any way to get a true synch?.

    My new iPhone 5 email is synched with my home office computer Outlook email using a POP account, but deleting an email on my computer does not delete the email on my phone and vice versa.  Is there any way to get a true synch?.

    POP does not support synchronization between the server and clients. You will need to use IMAP or Exchange Active Sync if your email provider supports it.

  • Equium A60 does not see a recording drive

    Sadly more help is needed with my Equium A60 following on from the earlier fault of the missing CD\DVD drive. Thanks for the help earlier, I did get my cd drive back in 'My Computer' and it does read cds..
    Today I tried to put some mp3s on a known working CDRW and my DVD writer is not seen. I get a error message saying you don't have a cd writer.. I have CD Creator 6 which I have been using ok before, that too does not see a recording drive on my laptop.
    I can no longer format a blank cdr or drag and drop on a cdrw formatted previously.
    Any ideas anyone.?? Thanx.!!

    Hi,
    in 'My Computer' right-click on the DVD drive and select properties. Check if on the record tab CD-recording is activated.
    Bye

  • Please i want to remove the old version of itune, the new version does not delete it for some reason , what i should do?

    please i want to remove the old version of itune, the new version does not delete it for some reason , what i should do?

    See https://support.mozilla.org/en-US/kb/firefox-no-longer-works-mac-os-10-4-or-powerpc
    Since you have a Intel Mac, if you can upgrade to OSX 10.5.x then you may be able to use more current releases.
    jscher2000, You should link to http://www.mozilla.org/en-US/firefox/all-older.html for 3.6.28 since the ftp is not mirrored.

  • Deleting mail on pop server does not delete mail on phone

    I have two Andoid phones:
    1. My Personal Samsung Galaxy Note/AT&T
    2. My Employers Motorola Droid RAZR/Verizon
    They are both running Android 4.0.4. I have set up pop mail on both. My personal ISP is X/O and a pop3 account. I typically have it deliver mail to Outlook at my home and turn off Outlook to read mail when away. The first phone correctly reconciles the delete of the mails delivered to Outlook and no longer on the server. The Verizon Droid does not delete the mail from the phone when it is gone from the server. I deleted and readded the pop account and experience the same behavior. How do I get the phone to delete the mail that has been removed from the server?
    Since it is a company phone but a personal e-mail account I am not sure where to get support.

    I found that there was a slight time lapse from when I managed a message on my iPhone (with .Mac) to when it showed the same status on my Mail.app (.Mac). For example, I deleted a message directly from my Inbox (iPhone) and it moved to trash. But it took about 2 minutes for that same message to show up in my trash on my machine. It just sat as a new, unread message on my laptop and then suddenly during the next send/receive interval it was put into the trash (still marked as unread, though).
    Have you allowed any sort of time lapse? Or are you viewing the webmail view of your .Mac account simultaneously as your actions on the iPhone?

  • The authentication information provided does not match our records. Please verify your personal information and try again.

    i keep getting this error when i try to change my password.
    the authentication information provided does not match our records. please verify your personal information and try again.

    I have totally forgotten the answers to "security" questions.  Please help - I am 84 years old and somewhat lacking recall intelligence about what I might have declared earlier.
    <Personal Information Edited by Host>

  • When I upload photos to iPhoto from my iPhone and then press delete from iPhone it does not delete them, how do I fix this?

    When I upload photos to iPhoto from my iPhone and then press delete from iPhone it does not delete them, how do I fix this?

    I am having the same problems as this person. I see that someone said there is no way to retrieve the pictures once it gets stuck in recovery mode.
    Then further along someone said that there are data retrieval methods except they have something to do with jail breaking a phone.
    My phone is already jail broken. It was kind of a gift from the company I work for- it was a fellow employees before. He jail broke it and then it was given to me. After I got it I activated the 4 and tried to back up everything. It didn't work and "Springboard" forced the phone into safety mode. So I could use it with the old dude's apps and my contacts. I made the mistake of using the phone for wedding dress shopping with a friend. I took tons of pictures.
    After this I found out the messages I was seeing meant it was jail broken. At&t said to force restore the phone - iTunes wouldn't recognize it in safety mode. I'm an idiot and didn't realize what this meant for my pictures. It didn't work (error 1611) - thankfully. Now it is stuck in recovery mode (iTunes icon and USB cable picture).
    Can I access that media in any way? It never suceeded restoring itself so is it still there? The phone is jail broken already so is there a method I can use?

  • Emptying trash securely does not delete all files? Any ideas?

    When I try and empty trash (securely) it does not delete all files, so I am left with files in the Trash?  Any ideas?

    Select one of the items in the Trash and open the Info window. What does it show for Where?

  • An infopackage does not delete privious requests though its set to

    Hi experts.
    An infopackage is set to delete repeating requests, but it does not work when it in a process chain. If i run infopackage itself it does, but in chain it does not delete requsts. Why?
    Regards Tigr_Z

    Hi,
    I think that If you want to use this option while loading the data through process chains, you would need to Add a Process Variant u201CDelete Overlapping Request From InfoCubeu201D to the process chain, position of this variant will be after the data load (Execute InfoPackage). For more detailed procedure refer to this document ::
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0431c48-5ba4-2c10-eab6-fc91a5fc2719?QuickLink=index&overridelayout=true
    Regards,
    APK

  • CSAP_MAT_BOM_MAINTAIN does not delete BOM

    Hi Friends,
    FM CSAP_MAT_BOM_MAINTAIN does not delete BOM when we use DELETE_IND = X
    in STKO_API01 in import parameters of this FM.  Do you have any idea ?
    Regards,
    Gaurav

    Hi,
    you should use instead CSAP_MAT_BOM_DELETE.
    Regards,
    Andrea

Maybe you are looking for