Master-Child relations with ODP??

I don't understand why I am having problems trying to build a simple master-child table relation with cascade delete using ODP .NET. With microsoft's providers, in the FILL command, you can specify the relationship in the fill command - Fill(dataset_name,relation_name). But in ODP .NET, it doesn't accept the relation_name as the second parameter, just the datatable. Why is that? are there any good examples out there that show working with Master-Child relations populated with Fill()? Any help would be greatly appreciated.

bump

Similar Messages

  • Script for master child relation

    we need script for maste child relation
    if i insert or delete or update in master table it should reflect in child table after running procedure (not trigger).
    fetch the value from master table and insert into child table using cursor.
    for ex:
    if i insert value in master table tab1 with column name emp_id, it should reflect other child table with the same column name emp_id.
    insertions should only be done in master table. not in child table..
    notes:it should be in cursor

    hallo
    This is our procedure.the procedure works fine for loop 3 with cursor c3.
    The other cursor 1 and cursor 2 are not working fine. they are fetching duplicate values(ex:D10,D10........).
    In this procedure we are fetching values from 3 tables and putting values in a single table.
    please find the solution the code is given below.
    code
    create or replace procedure employee_insert
    is
    cursor c1 is
    select * from department where
    not exists (select null from employee where employee.department_id=department.department_id);
    p1 department%rowtype;
    cursor c2 is
    select * from jobs where
    not exists (select null from employee where employee.job_id=jobs.job_id or employee.job_title=jobs.job_title);
    p2 jobs%rowtype;
    cursor c3 is
    select * from project where
    not exists (select null from employee where employee.proj_id=project.proj_id or employee.proj_name=project.proj_name);
    p3 project%rowtype;
    begin
    for p1 in c1
    loop
    for p2 in c2
    loop
    for p3 in c3
    loop
    insert into employee (EMPLOYEE_ID,EMPLOYEE_NAME,
    department_id,department_name,
    DATE_OF_BIRTH,job_id,job_title,
    HIRE_DATE,
    SALARY,proj_id,proj_name,
    PHONE_NUMBER,
    ADDRESS,EMAIL) values('E'||employee_id_seq.nextval,
    dbms_random.string('A', 8),
    p1.department_id,
    p1.department_name,
    TO_DATE(TRUNC(DBMS_RANDOM.VALUE(2452641,2452641+364)),'J'),p2.job_id,p2.job_title,
    TO_DATE(TRUNC(DBMS_RANDOM.VALUE(2452641,2452641+364)),'J'),
    Round(DBMS_Random.value(10,50)),
    p3.proj_id,p3.proj_name,
    '98'||'42'||Round(DBMS_Random.value(1000,5000)),
    dbms_random.string('A', 20),
    dbms_random.string('A', 8));
    end loop;
    end loop;
    end loop;
    Exception
    When others then
    raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
    End;
    execute employee_insert;
    /

  • Af:tree , have drill down to 10th level,Master child relation.

    Hi ,
    Am using adf 11.1.1.5
    I have two read only vo . which i have created a view link to make Master - Details relation .
    Now i have to show tree structure up to 10th level .
    I have table were one column provided with check box where user select a record like accid and fire menu command button.
    On that fire i wanna show a pop which show a parent id as Parentnode and its related child ids as child node .Again if child has sub child id, i have to show them upto 10th level.
    Any suggestions ..

    i knew somewhere i was messed up .
    There is only viewlink between, Parent and child .NO FK ,these are not related database table (Entity Object.).
    simple query's which are made from same table , but base on Parent/Root col i have show data in tree structure way.
    Just like
    ParentId Chilld id
    100 jhon
    100 max
    100 adam
    101 jack
    103 jill
    103 marven
    Now it will show in table like
    jhon
    max
    adam
    jack
    jill
    marven
    If i click max i mean check box and fire button , i have to show tree structure like below
    100
    jhon
    max
    adam
    As max parentid is 100 , i have to show all the childid which have 100 as parentid.
    any suggestion plz , me struck here to handel

  • Material Master Data related with an Asset

    Hi Guys
    I was told that the material master data that I am creating needs to be related with an asset hierarchy, any one know where Do I relate material master data with the asset hierarchy?
    thanks
    Carlos

    Hi,
    Though you Material grade is time dependent and sequentially changing.
    You can create 4 different DTP with Grade selection (only 1 Transformation).
    For example, 1 DTP with filter Grade A, another DTP with grade B, so on.
    and executive all 4 dtp sequentially and activate master data after every DTP run.
    Hope it will workout.
    Thanks,
    Balaram

  • Af:tree Master child relation ,but showing child id's as parent node vice

    Hi ,
    Am using adf 11G 11.1.1.5
    I have a small requiement .
    Am using af:tree , where i display childId's . Onclick of child it i have to show popup with tree structure where i will show parentid as node and childId's as child nodes
    i have created view link between child and parent views.
    Now isssue is when i selected childId in table (i mean a checkbox is given where user check the child Id and fire button ).On dat action am calling popup with tree structure .BUT here childId's are displaying like Parent nodes and parentId's as child node.
    any suggestion . if want i will drop the code

    i knew somewhere i was messed up .
    There is only viewlink between, Parent and child .NO FK ,these are not related database table (Entity Object.).
    simple query's which are made from same table , but base on Parent/Root col i have show data in tree structure way.
    Just like
    ParentId Chilld id
    100 jhon
    100 max
    100 adam
    101 jack
    103 jill
    103 marven
    Now it will show in table like
    jhon
    max
    adam
    jack
    jill
    marven
    If i click max i mean check box and fire button , i have to show tree structure like below
    100
    jhon
    max
    adam
    As max parentid is 100 , i have to show all the childid which have 100 as parentid.
    any suggestion plz , me struck here to handel

  • Master Tables related with CRM Billing

    Can some one list out the master tables of CRM Billing process.

    Hi
    Check This Tables
    CRMD_ORDERADM_H      Sales Order Header Details
    CRMD_ORDERADM_I      Sales Order Item Details
    CRMD_ORDER_INDEX Index      table for one-order document (Contains Header, Item, and Partner info)
    COMM_PRODUCT      Product details
    CRMD_PARTNER      Partner Function details
    CRMD_SALES      Business Transaction Sales set
    CRMD_SCHEDLIN      Schedule line info
    CRMD_LINK      Transaction u2013 Set u2013 Link (Helps link some sales order tables to the main Sales Header and Item tables)
    CGPL_PROJECT      Project Planning: Project Headers Attribute Table (Shows Campaign IDu2019s)
    /1BEA/CRMB_BDH      Billing Header data
    /1BEA/CRMB_BDI      Billing Item of application
    CMPB_MAP      Conversion Table CAIMPAIGN CRM <> CMPGN_ID (in ECC only)
    Refer This Link
    http://www.sap-img.com/general/find-the-table-names-for-a-crm-transaction.htm
    Ranga

  • How to implement Master-Slave relation

    i have no idea of how to implement a master slave relation, with jdbc i mean if i select "123" from a field in one table, all others fields in another table with the same value in the same field are selected...

    I am certain that this has nothing to do with JDBC. Your query should take care of it. Read: http://www.w3schools.com/sql/sql_join.asp

  • Master Child Table

    Hi,
    I am using JDeveloper 11.1.1.4 version.
    In my page I have master child relation to be displayed.
    I am displaying this by following the standard adf-bc master child example.
    i.e add the id of the master child as partialTrigger to the child table.
    But my requirement is that, multiple row selection is enabled for the master table and when multiple rows are selected in master table,
    child table should not display any records.
    How can I achieve this??
    Also,I have a details panel displayed right under master table which displays selected row values in a form.
    Here also,when multiple rows are selected,I should not display any values in the details panel.
    Please advice on how to achieve this.
    Thanks,
    Praveen

    Hi,
    have a selection listener set on tabe to bean method and in bean getAllSelectedRowKeys from table. If you get more than or equal 2 entries hide the detail panel or write code so that u reresh ur detail vo to contain no rows

  • Serious problem with previous / next record in master-details relations

    I have master-details relations like this (if master is A) :
    A-B
    A-C and C-D
    When I move down with do_key('next_record') all values of all records in all blocks are OK. But when I move up, it doesn't work : all D block values are erased and I don't understand why ?
    Thank you for your help.
    Antoine LEFEBVRE.

    Blocks A and B are in the first canvas and blocks C et D are in the second canvas.
    On next_record action from A the B is updated, C too and D too. But on previous_record action, D is not updates.
    To display the second canvas I use a command button and into the WBP trigger there is :
    go_block(C);
    execute_query;
    to be sure to execute query, but it's null.
    What's your suggest ?
    Thank you,
    Antoine.

  • Issue with Master Detail relation in OAF page -- Help

    Hi,
    I am developing an OA page with a master detail relation. The detail records are displayed in the subtab region.
    The issue that I am facing is as follows:
    If there are 2 detail records in the detail table, then my page is displaying these 2 records twice i.e.
    Detail Records:
    Header Id Line Id
    2 1
    3 1
    Header Id Line Id
    2 1
    3 1
    If the number of detail record increases, then again the display also increases that many times i.e. 3 records gets displayed thrice.
    Kindly help to figure out the issue.
    Thanks In Advance.

    Hi,
    Take the following actions.
    1. Try to display your records in simple Table and remove it from subtab,
    2. check relations as well, you can delete and re-create all the relations with EOs and VOs and recreate them.
    3. Also check when your VO get popluated that how many rows are there in Detail VO ?
    For example.
    int x = yourViewObject.getRowCount();
    System.out.println("Number of rows in detail view Object"+x);
    Haroon.

  • Relation with Master Recipe

    How Process order is related with master recipe?

    Hi Debasish,
    Master Recipe is a task list used in the process orders like routing in the production orders.
    In master recipe, we define operations and phases required for manufacturing a finish or semifinish product.T code for creation of master recipe is C201.
    Regards,
    Rajarao.

  • Relation with parent components view with child component

    Hi All,
    Can a view controller of  one component can use his child component with the component usage declaration?
    Regards
    Chandra
    Edited by: Chandra Sekhara on Jan 4, 2008 4:26 AM

    Ok got it.
    Nothing much you have to do.
    (1)Go to C1's used component and add C2 as used component.
    (2)It will give you two options manual or CreateOnDemand, if you do not need any kind of values to initiate the C2's view then choose 2nd one.
    If you need some iteration before initiating the view then use manual option.
    you need to write this statement to create the compoment:-
    wdThis.wdGet<used component name>ComponentUsage().createComponent();
    (3) Now go to the window of C1 and embed interfaceview, when you click on this you will get C2's interface view.
    (4) If you want some methods or events to be declared then declare in C2's component controller and copy it to the interface controller.
    Now run your application

  • Master-Detail Relation- Detail records not displaying

    Hi All,
    I am working forms(10g) customization for an oracle applications. our requirement is to develop a new window(screen) which should display all the related child records for the master record in the main form on a button press.
    i have developed a new database block based on a vew and provided the relation with master block, and done the required customization.
    But, when i run the form, and clicked on button, it is giving an error
    FRM-40350 Query caused no records to be retrieved.below is the code that i have written on button click
    BEGIN
              IF event = 'WHEN-BUTTON-PRESSED'
              THEN
              SHOW_VIEW('XXSCP_GBL_CUST_PEGGING_CON');
              SHOW_VIEW('XXSCP_GBL_CUST_PEGGING_STK');
              app_window.set_window_position('XXSCP_GBL_CUST_PEGGING_WIN',
                                             'CASCADE',
                                             'XXSCP_GBL_EXCEP_DETAILS_WIN');
          SET_BLOCK_PROPERTY('XXSCP_GBL_EXP_DETAIL_V',NEXT_NAVIGATION_BLOCK,'XXSCP_GBL_CUST_PEG_V');                                        
          GO_BLOCK('XXSCP_GBL_CUST_PEG_V');
         -- fnd_message.DEBUG('before execute');
          EXECUTE_QUERY;
          :parameter.p_excep_detail := 'FALSE';
              ELSE
                   NULL;
              END IF;
              EXCEPTION
                   WHEN OTHERS
                   THEN
                   fnd_message.DEBUG('other error at button press'||SQLERRM);
              --     NULL;
    END;I am able to query records in my view from database, but not working when i run the form.
    ANy suggestion will be helpful.
    Thanks in advance,
    pavan

    Duplicate post -- Re: Master-Detail Relation- Detail records not displaying

  • Forms Builder Master Child relationship --- column datas gets hided.

    Hi All,
    I have a screen which have 5 columns. Out of which first 3 columns belong to Table A and 4th column belong to say Table B and the 5th column belong to Table C. There is a master Child relationship between Table A and Table B also between Table A and Table C.
    The issue is, i enter the data for these columns in row wise. I enter all 5 columns with value and when i switch to next row, the 4th and 5th column's value gets hided.
    Please suggest.
    Thanks and Regards,
    KirthiRavi

    KirthiRavi wrote:
    Hi All,
    I have a screen which have 5 columns. Out of which first 3 columns belong to Table A and 4th column belong to say Table B and the 5th column belong to Table C. There is a master Child relationship between Table A and Table B also between Table A and Table C.
    The issue is, i enter the data for these columns in row wise. I enter all 5 columns with value and when i switch to next row, the 4th and 5th column's value gets hided.
    Please suggest.
    Thanks and Regards,hI KirthiRavi
    You have relation with
    Table A with Table B
    Table A with Table Cwhen you switch a record to another record at bloc/table A, it's normal forms behavior it's will hide value of block/table B and C. when your click on associate row of block/table A it will show.
    It's the form normal behavior for relationship.Hope you understand.
    Hamid
    Mark correct/helpful to help others to get right answer(s).*

  • Help on Master Detail relation

    Im using XSQL command line processor 1.0.2.0.
    How I can I write a SQL query To display master detil relation in the output?
    For example Department and Emp are two different tables with master detail relation...
    I just want to display the output some thing like..
    <Department>
    <Details>
    <Dep_name>Accounts</Dep_name>
    <Dep_no>10</Dep_no>
    <EMP>
    <EMP_NAME>AAAAAA</EMP_NAME>
    <EMP_NO>999999999</EMP_NO>
    <HRD>01/01/2000</HRD>
    </EMP>
    <EMP>
    <EMP_NAME>BBBBBB</EMP_NAME>
    <EMP_NO>100000000</EMP_NO>
    <HRD>01/01/2000</HRD>
    </EMP>
    </Details>
    <Details>
    <Dep_name>INVENTORY</Dep_name>
    <Dep_no>20</Dep_no>
    <EMP>
    <EMP_NAME>CCCCCCC</EMP_NAME>
    <EMP_NO>8888888888</EMP_NO>
    <HRD>01/01/2000</HRD>
    </EMP>
    <EMP>
    <EMP_NAME>BBBBBB</EMP_NAME>
    <EMP_NO>100000000</EMP_NO>
    <HRD>01/01/2000</HRD>
    </EMP>
    </Details>
    </Department>

    [list]
    [*]First, I'd recommend upgrading to XSQL 1.0.4.3, the latest production release that is part of the XDK for Java 8.1.7.1 at http://otn.oracle.com/tech/xml
    [*]Then, explore using the Oracle CURSOR() expression to create nested rowsets. This is documented in our SQL language reference info here on OTN. My book has several examples of using CURSOR() to produce master/detail results, too.
    [list]
    Steve Muench
    Development Lead, Oracle XSQL Pages Framework
    Lead Product Manager for BC4J and Lead XML Evangelist, Oracle Corp
    Author, Building Oracle XML Applications
    null

Maybe you are looking for