Parent Child list

Experts --
Is it possible to use an evDRE() to get a parent/child list of all the elements in a dimension?  I want to see a long list of every element in the dimension with its associated parent alongside. 
If an evDRE() can't do it, is there another method?
Thanks...Marv

Brian --
Thanks very much!  As far as I could tell, the MEMBERS selection with EvDRE() didn't provide what I wanted.  It returned a list of all the members, but there was no indication of parent.
But using Administration and Dimension "View Member Report" I got just what I needed--Child and Parent in two separate columns on an Excel sheet.  Perfect...
Thanks...Marv

Similar Messages

  • Parent Child list form using infopath 2013

    Hi All
    I have two SharePoint list heaving parent child relation ship ( one parent have multiple child) now i want to create a single form in info path 2013 using code less solution . I am using SharePoint Online don't want to use c# code.
    Journey Man

    Hi,
    Please check this
    https://www.sharepointdrive.com/blog/how-to-establish-a-parent-child-relationship-in-sharepoint/
    http://sharepoint.stackexchange.com/questions/6493/how-to-automatically-link-parent-in-child-list-new-form
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Removing a child instance from a parent child list. - non L2 Caching

    I have a parent Entity
    Parent
    int id
    String name
    @onetomany
    List <Child> list
    and a child Entity
    Child
    int id
    String name
    First, let me say, I have L2 cache turned off.
    So lets say I have a parent record with three children and I want to remove child 2. I have found if you remove the child only in the EM then when you select the parent again, it shows the child still being there even though the child has been removed from the db. I liked only having to remove the child because its only one instance to pass and remove over the web. But with that said, how do I remove the entity our of the parents Children list so it no longer shows up in the front end in the list? I cant use the selected index in the front end because I sort the data.
    Or is it better to save the state of Parent too? But if so, what if Parents Children is hundreds of records. Thats alot of overhead for one record to be deleted. Could use some help here. Thanks in advance.

    You should always maintain bi-directional relationships. You need to remove the child from the parent.
    Since you are not caching, if you acquire a new EntityManager after commit, the parent's child will be gone.
    If you refresh the parent in the same EntityManager after commit, then it will be gone.
    If the collection is really big, then consider not mapping it, just query for it if you need it. There is no point having a relationship that is too big to read.
    Note that if you use weaving, and a List, then remove() will not trigger the collection to instantiate in EclipseLink (nor add, but contains or size will).

  • Parent/Child list passing variables.

    Hello All,
    I have a task that involves setting up a Parent/Child Relationship lists and takes it a step further and adds documents to a document library from both the Parent list and/or the Child list.   I have related web parts on both lists to the document library.
    I also have a related web part of the child list on the Parent display page. I followed this
    resource to automatically pass the ID: which is the Title Column of the Parent List to a Lookup Column in the Child List.   I would like to pass the Lookup Field item information from the child list to the document library, but the resource is using
    the "getParameterBYName('ID')" to create the variable passed into the cookie.   I cannot use the ID of the Child List because it is referring to the Child Item and not the Parent item. I am passing this item into a Lookup Field on the Document
    Library Form which filters related Child items when the Parent is selected.  Can anyone help me pass the Lookup Field item or get the url of the Lookup Item to pass into the cookie?
    I have tried:  "var ParentID = document.getElementByID('SPField').innerHTML"   This gets me the content for the field, but this does not work for setting the cookie.
    Any help is appreciated.
    James
    James Pruitt

    And here is the Document Library Upload from the Parent List:
    The pre-filled in Parent drop down filters the Child drop down.   I am trying to have the same action except from the child Display Form, I need both drop downs to be pre-filled based on the item being displayed:
    Here is the code that I am using.  It takes a cookie from the Parent List and pre-fills the first drop down.  From that we have a filtered second drop down.
    <script language="javascript" type="text/javascript" src="http://ai-seb03dev-001:5000/Shared%20Documents/jquery-1.11.1.min.js"></script>
    <script language="javascript" type="text/javascript" src="http://ai-seb03dev-001:5000/Shared%20Documents/jquery.SPServices-2014.01.min.js"></script>
    <script language="javascript" type="text/javascript">
    $(document).ready(function() {
    var ID = getCookie("ID");
    //alert(ID);
    if(ID != undefined)
    SetLookup("Parent", ID );
    function getCookie(name) {
    var cookieArray = document.cookie.split(";");
    for (index in cookieArray)
    var keyValuePair = cookieArray[index].split("=");
    var key = keyValuePair[0];
    key = key.replace(/^\s+|\s+$/g, "");
    if (key == name)
    var value = keyValuePair[1];
    return value;
    // Sets the value of a lookup field whether it is an input or select field
    function SetLookup( fieldTitle, lookupVal)
    // Set default value for lookups with less than 20 items
    if ( $("select[title='" +fieldTitle+ "']").html() != null)
    var element = $("select[title='" + fieldTitle +"']");
    $(element).val(lookupVal);
    // disable field to stop users from changing it if added from Parent list
    $(element).find('option:not(:selected)').attr('disabled',true);
    else
    var element = $("select[title='" + fieldTitle +"']");
    $(element).val(lookupVal);
    // enable field if adding a document manually
    $(element).find('option:not(:selected)').attr('disabled',false);
    //else
    choices = $("input[title='" +fieldTitle +"']").attr("choices");
    hiddenInput = $("input[title='" +fieldTitle +"']").attr("optHid");
    $("input[id='" +hiddenInput +"']").attr("value",lookupVal)
    choiceArray = choices.split("|");
    for (index = 1; index < choiceArray.length; index = index + 2)
    if (choiceArray[index] == lookupVal) {
    var element = $("input[title+'" +fieldTitle +"']");
    $(element).val(choiceArray[index - 1]);
    //disable field to stop pesky users from changing it
    $(element).attr('readonly',true);
    //hide the button that is used for the dropdown list
    $(element).next('img').hide();
    // Handle the filtering of the Parent Item and Related Child Items
    $().SPServices.SPCascadeDropdowns({
    relationshipList: "FundingRecordsLive",
    relationshipListParentColumn: "AgreementParent",
    relationshipListChildColumn: "Title",
    parentColumn: "Parent",
    childColumn: "Funding",
    debug: true
    </script>
    I am trying to set a cookie to the url of the SharePoint Lookup Field:
    <a href="http://ai-seb03dev-001:5000/_layouts/listform.aspx?PageType=4&
    ListId={FB7A87B6-0BA5-4764-B28C-B3B8A98218F7}&ID=3&RootFolder=*">
    If anyone knows how to do this, or can suggest another way to pass the Lookup
    Field info, I will very appreciative.
    Thanks, JP
    James Pruitt

  • Parent/Child Lists and Disabling Contextual Ribbon

    I have a display form for a parent list that is setup with web part connections to show list view web parts of some child lists.
    When you click the child list the ribbon displays a "New Item" button for the selected web part's list. How can I stop this from happening?
    I have my own custom new button for the child items, so on the child form I can pre-set the relationship drop down box (and hide it from the user) using a query string value I put in.
    I therefore need to stop the default new button appearing in the ribbon when the user selects the list items web part (because I can't put in the required query string value).
    Any ideas?
    Thanks,
    Richard

    Hi Richard,
    As I understand, you would like to remove New Item button in the display form page of parent-child relationship list. Please add a content editor to use the code below in the Default Display Form:
    <style>
    .ms-list-addnew
    display: none;
    </style>
    Here is the screenshot of my envrionment:
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Sum child list items and update parent total using javascript

    I have a SharePoint 2010 Parent/Child list setup using a lookup field to join both the lists, this is working well.
    The Parent list contains requisition requests and the child list contains related item details. Each of the related child list items has a 'Line Item Total' field. I need to aggregate the Line Item Totals in the child list and place the result in a 'Requisition
    Total' in the parent. So for any given parent record the sum of it's related child 'Line Item Totals' is reflected in the 'Requisition' total in the parent row.
    I am struggling with the JavaScript code below. I am trying to aggregate Line Item Totals for a given Requisition#? Could someone please review and advise?
    <script language="javascript" src="/Purchasing/Documents/jquery-1.8.2.js" type="text/javascript"></script>
    <script language="javascript" src="/Purchasing/Documents/jquery.SPServices-2014.01.min.js" type="text/javascript"></script>
    <script>
    $(document).ready(function()
     $('select[title=Requisition#]').children().attr('disabled',true);
     $("input[title='Old Amount']").attr("readonly","true").css('background-color','#F6F6F6');
       // Retrieve the name of the selected parent item.
       var strParent=$("select[title$='Requisition#'] :selected").text(); 
     splist li = web.lists["ReqDetails"]; // This is the child list
        spquery q = new spquery();
        q.Query= "<Where>" +
         "<And>" +
          "<Neq>" +
           "<FieldRef Name='ID'/><Value Type='Number'>0</Value>" +
          "</Neq>" +
          "<eq>" +
           "<FieldRef Name='LinkID'/><Value Type='Number'>ReqID</Value>" +
          "</eq>" +
         "<And>" +
        "</Where>" +
        "<OrderBy>" +
         "<FieldRef Name='LineItemTotal'/>" +
        "</OrderBy>"
        q.ViewFields = string.Concat("<FieldRef Name='LineItemTotal' />");
        q.ViewFieldsOnly = true; // Fetch only the data that we need
        splistitemcollection items = li.getitems(q);
        foreach(SPListItem item in items)
        sum += parseInt(item["LineItemTotal"], 10);
      alert(sum)
     </script>
    Rick Rofe

    I do something similar for a PO Header/PO Detail set of lists. I use SPServices to pull the data.
    I put this code in the child edit page - so any time any child is edited, the parent is updated. I get all children records and total them up (except for the item I'm displaying at the current time. I add that value in directly from the form itself.
    <script type="text/javascript" src="/Javascript/JQuery/JQueryMin-1.11.1.js"></script>
    <script src="/Javascript/JQuery/jquery.SPServices-2014.01.min.js"></script>
    <script>var poNumber = '';
    var poDetailID = '';
    $(document).ready(function() { var queryStringVals = $().SPServices.SPGetQueryString();
    poNumber = queryStringVals["PO"];
    poDetailID = queryStringVals["ID"];
    function PreSaveAction() {
    // update the PO header with the total of all items + shipping + adjustments
    var query = "<Query><Where><And><Eq><FieldRef Name='Title' /><Value Type='Text'>" + poNumber + "</Value></Eq><Neq><FieldRef Name='ID' /><Value Type='Counter'>" + poDetailID + "</Value></Neq></And></Where></Query>";
    var viewFields = '<ViewFields><FieldRef Name="Total" />';
    viewFields += '</ViewFields>';
    var poTotal = 0.00;
    $().SPServices({
    operation: "GetListItems",
    async: false,
    listName: "PO Details",
    webURL: "/po",
    CAMLViewFields: viewFields,
    CAMLQuery: query,
    completefunc: function (xData, Status) {
    //alert(xData.responseText);
    $(xData.responseXML).SPFilterNode('z:row').each(function() {
    if($(this).attr("ows_Total")) {
    //alert($(this).attr("ows_Total"));
    poTotal += Number(parseFloat($(this).attr("ows_Total").split(";#")[1],2).toFixed(2));
    // add in this changed line (we skipped it above)
    var qty = $('input[title="Quantity Ordered"]').val();
    var price = $('input[title="Price"]').val().replace(',','');
    var extend = Number(qty)*Number(price);
    poTotal += extend;
    //alert(poTotal);
    // update the PO Header
    $().SPServices({
    operation: "UpdateListItems",
    async: false,
    listName: "Purchase Orders",
    webURL: "/po",
    ID: poID,
    valuepairs: [["Total", poTotal]],
    completefunc: function (xData, Status) {
    //alert(xData.responseText);
    $(xData.responseXML).SPFilterNode('z:row').each(function() {
    return true;
    Robin

  • Sorting a List on Parent Child Relationship

    I have to sort a list on Parent Child relation
    say
    I have a following list
    Object(Id,ParentId,.........)
    obj1(1,1,........);
    obj2(2,1,........);
    obj3(3,3,........);
    obj4(4,1,........);
    obj5(5,3,........);
    obj6(6,1,........);
    obj7(7,3,........);
    obj8(8,4,........);
    Logic is such that
    If Id and Parent Id is same then It is Parent Record
    I want the Result like
    obj1(1,1,........);
    obj2(2,1,........);
    obj4(4,1,........);
    obj6(6,1,........);
    obj3(3,3,........);
    obj5(5,3,........);
    obj7(7,3,........);
    obj8(8,4,........);
    Suggect Some Logic...............
    Thanks in advance.............

    sAsho wrote:
    That's the question how to do that?????????????????????????One question mark is sufficient. If you're going to go out of your way to write like an idiot, people won't take you seriously.
    "How do I do that?" is way to broad a question. You need to do some research, take your best shot, and post a specific question about the specific parts that are giving you trouble.
    Suggest something. I did suggest something.
    I suggested what you should google for to get you started. Just like writing clearly and intelligently, if you can't be bothered to read what people suggest and put in the effort to follow that suggestion and do your own research, you'll find people will quickly lose interest in trying to help you.
    Now I am additionally suggesting that you 1) pay closer attention and 2) do your own research.
    Recurcive sort kind of a think.................No idea what you're saying here. See my first point in this reply.

  • Select List (Parent/Child) LOV

    I have the Easy Oracle HTML-DB book, they give an example of a
    Parent Child Select List using a query.
    Does anyone know how to apply the Parent/Child relationship with
    a List of Value generated from a table.
    Example
    Parent Child
    Car Pontiac
    Car Buick
    Car Cadillac
    Car Nissan
    Truck Tahoe
    Truck Silverado
    Truck F150
    Truck Titan
    The parent(s) in the above example are Car/Truck, the children are in the adjacent column.
    Objective: When the parent "Car" is chosen, only the "Pontiac/Buick/Cadillac/Nissan" will be available, once the child is selected,
    wish to submit to a empty table that can grow dynamically.
    OS: Windows: XP
    Oracle ver.: 10g
    Apex ver.: Release 2

    Hi,
    are you just having one table storing all the values?
    1) Create a "Select list with Submit"
    2) Lov query would be something like
    SELECT DISTINCT
           CAR_TYPE AS D
         , CAR_TYPE AS R
      FROM WHATEVER_TABLEThe distinct is only because you have mixed your parent and child values in one table instead of having two separate tables with a FK from the child to the parent.
    3) Create another "Select List"
    4) Lov query would be something like
    SELECT CAR AS D
         , CAR AS R
      FROM WHATEVER_TABLE
    WHERE CAR_TYPE = :P2_CAR_TYPE-> in the where clause you restricting the second lov with the value the user has selected in the first select list.
    The first "Select List with Submit" will trigger a full page refresh when you select a car type. If you want to avoid that you can use the AJAX based "Cascading Lov" feature of my ApexLib Framework (see http://apex.oracle.com/pls/otn/f?p=33231:4 ) or search on the forum for "cascading lov ajax" for other similar solutions.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • Parent Child dropdown list in ColdFusion

    Hi,
    I'm looking a CF/Javascript code with a functionality to show a parent dropdown list (ex. Country) and depending on the selected Country, need to show the child (State) dropdown list.
    Thanks.

    Cancelled Accounts
    AH099999 Hamilton Maurice Ralph
    Current Accounts
    AD099999 Greene Teresa L
    AH099999 Johnson Wm R
    AH099999 White Ben V Judith Ann
    AH099999 Jones Dean Edward
    AH099999 Smith Mary Carol
    This will create a tree just like Windows Explorer. The "Cancelled Accounts" and the "Current Accounts" are folders and the accounts are pages.
    <!--- list of all cancelled accounts --->
    <cfquery name="Accounts1" datasource="readprod" dbtype="ODBC">
    select accountinfo, ACCOUNT_NUM, web_acct_num_plain, value, code, category_code
    from directbilltext
    where (AGENT_NUM = '#SESSION.Usercode#')
           AND(CATEGORY_CODE = code)
           and (CATEGORY_CODE = '3')
      order by account_num
    </cfquery>
    <!--- list of all current accounts --->
    <cfquery name="Accounts2" datasource="readprod" dbtype="ODBC">
    select accountinfo, ACCOUNT_NUM, web_acct_num_plain, value, code, category_code
    from directbilltext
    where (AGENT_NUM = '#SESSION.Usercode#')
      AND(CATEGORY_CODE = code)
      and (CATEGORY_CODE = '4') and
       order by account_num
    </cfquery>
    <!--- beginning of tree. Parent levels are Cancelled Accounts and Current Accounts --->
    <cf_dccom component="TreeControl" width="400" height="250" usecookies="YES" title="Personal Lines Accounts">
         <cfset next_item = 1>
         <cfset current_parent = #next_item#>
         <cf_dccom id="#next_item#" parent="0" display="Cancelled Accounts" expand="false" ></cf_dccom>
         <cfloop query="Accounts1">
              <cfset next_item = #next_item# +1>
              <cf_dccom id="#next_item#" parent="#current_parent#" display="#accountinfo#"
                        HREF="/public/reports/Pers_history.htm?cftreeitemkey=#web_acct_num_plain#">
              </cf_dccom>
         </cfloop>
         <cfset next_item = #next_item# + 1>
         <cfset current_parent = #next_item#>
         <cf_dccom id="#next_item#" parent="0" display="Current Accounts" expand="false" ></cf_dccom>
         <cfloop query="Accounts2">
              <cfset next_item = #next_item# +1>
              <cf_dccom id="#next_item#" parent="#current_parent#" display="#accountinfo#"
                        HREF="/public/reports/Pers_history.htm?cftreeitemkey=#web_acct_num_plain#">
              </cf_dccom>
         </cfloop>
    </cf_dccom>
    So you could have a list of your countries with a list of your

  • Populate list from recordset on Parent/Child form

    We have a parent/child form and want to populate several lists from recordsets. We can populate the child canvas by calling a procedure from the WHEN NEW FORM INSTANCE trigger but the same code fails when trying to populate a list on the Parent canvas. If I move the code to a PRE-BLOCK trigger on the parent block, then it works. I just kept moving the code until I found something that works. Can anyone tell me why it wouldn't work from the WHEN NEW FORM INSTANCE trigger? Is PRE-BLOCK the correct place?

    WHEN-NEW-FORM-INSTANCE trigger
    Add_Orgs_Lists('HR_PERSONS.OFFICE_SYMBOL');
    PROGRAM UNIT
    PROCEDURE Add_Orgs_Lists (list_name VARCHAR2) is list_id ITEM;
         col_name VARCHAR2(80) := SUBSTR(list_name, INSTR(list_name, '.')+1);
         sql_stat VARCHAR2(2000);
         BEGIN
         --Find ID for list item.
              list_id := FIND_ITEM(list_name);
              IF ID_NULL(list_ID) THEN
                   MESSAGE('List Item ' ||list_name|| ' does not exist.');
                   RAISE FORM_TRIGGER_FAILURE;
              END IF;
         --Build the SQL statement.
         --     message('In Get_Org');
         sql_stat := 'SELECT Distinct Org_Name, Org_Name FROM HR_Organizations
         ORDER BY 1 ASC';
         Populate_the_List(list_id, sql_stat);
              EXCEPTION
                   WHEN OTHERS THEN
                        MESSAGE('Internal error occurred in Add_Orgs_List.');
                        RAISE FORM_TRIGGER_FAILURE;
    END Add_Orgs_Lists;
    PROCEDURE Populate_the_List (list_id ITEM,
                                                           sql_stat VARCHAR2) is
         group_id RecordGroup;
         outcome NUMBER;
         --List_Elements  VARCHAR2(40);
    BEGIN
              --message('In Populate_the...');     
    --Create temporary record group.
    group_id := CREATE_GROUP_FROM_QUERY('List_Elements', sql_stat);
    IF ID_NULL(group_id) THEN
         MESSAGE('Record Group could not be created in Populate_the_List.');
         RAISE FORM_TRIGGER_FAILURE;
    END IF;
    --Populate record group.
         outcome := POPULATE_GROUP(group_id);
         IF outcome <> 0 THEN
              MESSAGE('Record Group could not be populated in Populate_the_List.');
              RAISE FORM_TRIGGER_FAILURE;
         END IF;
    --Populate list item
         POPULATE_LIST(list_id, group_id);
    --Destroy the temporary record group to release resources
         DELETE_GROUP(group_id);
    EXCEPTION
         WHEN OTHERS THEN
         MESSAGE('Internal error occured in Popluate_the_List.');
         RAISE FORM_TRIGGER_FAILURE;
    END Populate_the_List;
    The error is FRM-41337 Cannot populate the list from record group. It happens when we open the form. We are using the same code to populate the lists on the child form (except the SQL statement is different) and it works correctly.
    I appreciate your help.

  • Dynamic Parent/Child Select List - Parent may have only a single entry

    Hello,
    I have a parent/child select list implemented using APEX only, ie no AJAX.
    The child list always has multiple entries, but the parent may only have a single entry, depending on who is running the application. When the parent has just one entry it can't submit, so the child list remains empty. Also when the parent has multiple entries, the user must select another entry from the parent list to cascade the child list.
    I have put a button to fire the branching to same page submit, but this is a little clunky. Is there a way of cascading the child list when the page opens? Preferably without ajax, but if has to be then ok
    I've looked for an answer to this but all threads I have followed seem to assume parent to have multiple entries, and that child list requires parent selection, but this not so in my application.
    Thanks, Jock

    Anyone?
    Even an acknowledgment that this should be obvious to me, or that it is not currently possible would be of assistance.
    Thanks,
    Jock

  • Does table STPOX contain parent-child relationship between components

    Hello
    I need to get a list of components of SO BOM.
    FM CS_BOM_EXPL_KND_V1 exports an output table STPOX.
    Does this table contain parent-child relationship between components? If yes , can somebody tell me which fields contain parent child id.
    thanks

    Hi,
    STPOX is not a table, it is a structure & hence there is no storing of data in a structure. The table which stores this info is STPO.
    To get the link you can refer to STPO-STLNR & pass this value to MAST-STLNR, this way you can link the child with its parent.
    Regards,
    Vivek

  • How to Differentiate between Parent & child item of material determination

    Hi Experts
    I have a list of material & the Business requirement is to found that whether a material is a Parent material , Child material or Both ( a parent to other children  and a child to another parent).
    I tried using table KONDD & KONDDP but I was not able to differeniate between Parent & Child item.
    I even cant use item category to diferentaite the two as by item categairy i can only find that it is a Prent material but cant find whether this material is a Child material or not.
    Is there any table in which i can enter the Parent material & the output would be child material or any other table which contain both parent & child material.
    Note : In Material determination ( VB11) , the material which is entered is Parent material & the material with which it would be replaced is Child material.
    Kindly Guide.
    Thanks in Advance

    Hi
    The wording of Parent and Child sounds like using a BOM material. In material determination...these two items can be called as Material entered and material determined or Main Item and Sub Item.
    In the sales order overview screen...at line item level check the field 'HLvItem' (Higher Level Item). It will show the POSNR of the main item to which this item is linked. Since this can also happen in the case of free goods and BOM...you have make another check for these items with the item category.
    If the substitue material is not determined as a sub item... you can check the material number in the field 'Material Entered' in the sales tab of the item and compare the material number with that exists in the VBAP-MATNR. If both are different, then this material can be considered as a determined material.
    Thanks,
    Ravi

  • Parent Child relation in one transaction throws error... (

    In nutshell, I have a parent->child relation ship in DB and due to the UI requirement, I created view link as Child->parent, it is giving a hack a lot of problems.... (it sounds silly but looks like I am loosing my mind over this)
    Let me explain my situation,
    - I have a table A with col-a and col-b. I have another table B with col-a (primary key) and col-c. (This way table A is a parent table)
    - ON UI side i created relationship like table B is parent and Table A is child using col-a
    - I need to create parent-child (one record for each) record programatically.........
    I tried following thing:
    - from backing bean, as soon as i create Table-B row first, i get error saying too many objects with same key (which is understandable because of table design..... and associaion must be throwing that error)
    - from EOImpl file, it doesn't even find the child record being created... so during commit I can't send the foreign key value from Table-a to Table-b
    Any suggestion is greatly appreciated?
    Thank you,
    -Raj

    that depends on how you implement the multiple selection of orders.. you have to pass the selectedValues to the backend or store the values in a map or list and pass it..

  • Parent Child Questions

    Hi All
    Fairly new at this and am a bit confused.
    I have been given the task of cleaning up certain tables in my DB. I am running into parent / child issues.
    I want to remove all entries from Table A. When i try and delete one row it gives me a constraint violation. It tells me there is a child record out there. So i go ahead and disable that constraint, go back to table A and try the delete again. I get a different another violation telling me that there is a child record on a different table. And on and on the story goes.
    Now I could keep doing this but the schema i am working on has 1051 tables and just over 6000 constraints. So as you can see this might take me a month to sit here and do that. Not very keen on that.
    What I am after is:
    1. A program / script that will lay out all the parent child relationships for me. Coming across each one as i try and delete is painful
    Would it be possible to get something like:
    Table A
    -- Table B
    -- Table C
    Table D
    -- Table E
    -- Table G
    -- Table F
    2. All the constraints have been created with a delete rule of 'No Action'. I think the easiest thing to do would be to go to the parent table (or what I think is the parent table) and change this to on delete Cascade. From what it looks like I don't think you can do this. Does anybody know how to? Or if its possible?
    3. The third option I am thinking of is:
    Disable All the constraints on what I think is the parent table. Remove entries from the child tables. Enable the constraints.
    Now my issue here is, how do i know all of the child tables? I guess that goes back to my question 1.
    Thanks in advance. Sorry for the story.
    The lack of documentation / diagrams here is driving me nuts :)

    You can use tools like Microsoft Visio to reverse engineer the tables and their relationships.
    You can also generate a list of parent-child related tables from user_constraints.
    something like:
    SQL> SELECT TABLE_NAME,
      2         (SELECT TABLE_NAME
      3            FROM ALL_CONSTRAINTS R
      4           WHERE R.OWNER = U.R_OWNER
      5             AND R.CONSTRAINT_NAME = U.R_CONSTRAINT_NAME) PARENT_TABLE
      6    FROM USER_CONSTRAINTS U
      7   WHERE U.CONSTRAINT_TYPE = 'R'
      8  /
    TABLE_NAME                     PARENT_TABLE
    EMP                            DEPT
    SQL>

Maybe you are looking for