One master many details

Hello,
I've a problem with ADF: I've a View object (comunication) create as union of 2 entity with the same ID and another table with key ID and ID1 and a different table of attributes of this table that depend from the type of ID1.
I have an edit page in wich I create a new comunication and with check box I choose the type of ID1.
My problem is write the record in the table of attributes: can I do this automatically as Master-detail insert or have I to write this with instruction "INSERT INTO xxx VALUES XXX"?
Help me as soon as possible!
Thanks

Hi Steve,
This is not a composition association. Actually, this is an association from a table to an intersection (many-to-many) table. The code in my service is based on the SRDemo, see SRServiceImpl#updateSkillsForCurrentStaff(List) and is called on a save button from a shuttle page.
The current master is the master I want it to belong to. The link to the master gets correctly saved in the database (just as in the SRDemo). We can also navigate from the master view row to the find the detail view row using the generated RowIterator. However, this does not work from the master entity row to the detail entity row. The problem is really at the entity level.
Thanx
Olivier

Similar Messages

  • Layout components - One master, many detail

    Jdev 11...2
    I've been trying to figure out what type of components to use to display one master table and many detail tables at the same time. I have a panel splitter with the master table in facet one then the second facet is split several times so I can display up to eight detail tables. I only see three detail facets when I run the application. Maybe the facets need to be surrounded by something else or formated so that can all display. I don't want to use the paneltabbed since I want to see the all together. Is there a better way to do this? Any tips wold be appreciated.
    LB

    Frank,
    I ended up using nested panel splitters since I wasn't able to stretch the tables inside the panelGoupLayout (I think). Initially I wasn't able to see the content in he panelsplitters, but I had better luck using the second facet for content and using the first facet to hold a nested panelsplitter. Also using positionedFromEnd = true and adjusting the splitter position helped the formatting although I think that will depend on the size of the user's browser window.
    LB

  • One Master Many Detail Tables

    Does anyone know how I can use XE to create a Master-Detail Form using one master table and multiple detail tables? Currently it seems to only allow one detail table.
    Thanks.
    Pat.

    Hello,
    I created the following tables (Location, Dept, Emp ). The master table is Location Table and detail tables are emp and dept.
    I created view for emp and dept tables then I created the master detail form which was include the location table as the master and the created view as the detail.
    But I need to create 3 blocks like in the oracle developer that helps me to insert the records in 3 tables at the same time.
    Best Regards,

  • Problem with one master two details

    Hi,
    I have to create a form with one master and two detail blocks, both related via the same primarykey to the master block.
    Both detail blocks shall be based on joins (as shown in the white paper).
    First I have the master block with its items on the form.
    Then after creating the first detail block, I put the items on the form, too, and everything is fine.
    Next I create the second detail block (without join), rename it and create a master detail relation to the master block.
    To look after result I run the form - and all items off the master block are invisible!
    I checked it - its the creation of the second relation.
    What does this mean?
    What can I do?
    Silke

    Hi Frank
    forms 6i, database 9i
    'Cursor' = 'Datablock'?
    That means, forms cannot built the cursor?
    What do you mean with System Navigator?
    I first created the same form with the same construction, the two detail datablocks based on views, and there is no problem.
    I had to change, because some items should be updatable that I cannot achieve with views.
    There is a diffrence in useing the datablock wizard.
    Working the Views, datablock wizard cannot automatically find suitable master blocks.
    Working without views, he suggests the suitable master block. Even the dialog box for selecting the master block is different, it shows both the master block and its first detail block in ONE line.
    Silke

  • Multi-query report. One master, 2 detail. BI Publisher/PDF/APEX

    I am creating a report which has a master and two detail sections. I used 3 querriies. When I test each query in the report query with bind variables, data is returned, when I run the report no data is returned. Not even the application session state fields that I included. Here are the querries:
    select     "RPC_PURCHASE_ORDER"."DOCKET_NUM" as "DOCKET_NUM",
         "RPC_PURCHASE_ORDER"."PO_NUM" as "PO_NUM",
         "RPC_PURCHASE_ORDER"."DATE_ORDERED" as "DATE_ORDERED",
         "RPC_PURCHASE_ORDER"."DATE_REQUIRED" as "DATE_REQUIRED",
         "RPC_PURCHASE_ORDER"."PREV_DOCKET_NUM" as "PREV_DOCKET_NUM",
         "RPC_PURCHASE_ORDER"."QUOTE_NUM" as "QUOTE_NUM",
         "RPC_PURCHASE_ORDER"."SALES_PERSON" as "SALES_PERSON",
         "RPC_PURCHASE_ORDER"."PROOF_REQD" as A,
         "RPC_PURCHASE_ORDER"."DYLUX" as B,
         "RPC_PURCHASE_ORDER"."DIGITAL" as C,
         "RPC_PURCHASE_ORDER"."SHERPA" as D,
         "RPC_PURCHASE_ORDER"."PDF" as E,
         "RPC_PURCHASE_ORDER"."PLATE_FILE_NUM" as "PLATE_FILE_NUM",
         "RPC_PURCHASE_ORDER"."DISC" as F,
         "RPC_PURCHASE_ORDER"."FTP" as G,
         "RPC_PURCHASE_ORDER"."PLATE_1_SIDE" as H,
         "RPC_PURCHASE_ORDER"."PLATE_2_SIDE" as I,
         "RPC_PURCHASE_ORDER"."KOMORI_26" as J,
         "RPC_PURCHASE_ORDER"."KOMORI_28" as K,
         "RPC_PURCHASE_ORDER"."HEIDELBERG" as L,
         "RPC_PURCHASE_ORDER"."TOKO" as M,
         "RPC_PURCHASE_ORDER"."ENV_PRESS" as N,     "RPC_PURCHASE_ORDER"."M_COM" as O,
         "RPC_PURCHASE_ORDER"."DIGITAL_COLOUR" as P,
         "RPC_PURCHASE_ORDER"."DIGITAL_COPIER" as Q,
         "RPC_PURCHASE_ORDER"."PADDING" as R,
         "RPC_PURCHASE_ORDER"."PUNCHING" as S,
         "RPC_PURCHASE_ORDER"."FOLDING" as T,
         "RPC_PURCHASE_ORDER"."SCORE" as U,
         "RPC_PURCHASE_ORDER"."PERFORATING" as V,
         "RPC_PURCHASE_ORDER"."GATHERING" as W,
         "RPC_PURCHASE_ORDER"."TABBING" as X,
         "RPC_PURCHASE_ORDER"."R_CORNER" as Y,
         "RPC_PURCHASE_ORDER"."SADDLE_STITCH_BNDNG" as Z,
         "RPC_PURCHASE_ORDER"."PERFECT_BOUND_BNDNG" as PB,
         "RPC_PURCHASE_ORDER"."NUMBERING" as NU,
         "RPC_PURCHASE_ORDER"."DIE_CUTTING" as DI,
         "RPC_PURCHASE_ORDER"."LAMINATING" as LA,
         "RPC_PURCHASE_ORDER"."SAVE_PLATES" as SA,
         "RPC_PURCHASE_ORDER"."INK" as "INK",
         "RPC_PURCHASE_ORDER"."FINAL_FOR_BINDERY" as "FINAL_FOR_BINDERY",
         "RPC_PURCHASE_ORDER"."TAB_IN" as "TAB_IN",
         "RPC_CUST_TABL"."CUST_NAME" as "CUST_NAME",
         "RPC_CUST_TABL"."CUST_ADDR1" as "CUST_ADDR1",
         "RPC_CUST_TABL"."CUST_ADDR2" as "CUST_ADDR2",
         "RPC_CUST_TABL"."CUST_CITY" as "CUST_CITY",
         "RPC_CUST_TABL"."CUST_PROVINCE" as "CUST_PROVINCE",
         "RPC_CUST_TABL"."CUST_POSTAL_CODE" as "CUST_POSTAL_CODE",
         "RPC_CUST_TABL"."CUST_TEL_NUM" as "CUST_TEL_NUM",
         "RPC_CUST_TABL"."CONTACT_NAME" as "CONTACT_NAME",
    "RPC_CUST_SHPNG_ADDR"."SHIP_TO_ADDR1" as "SHIP_TO_ADDR1",
         "RPC_CUST_SHPNG_ADDR"."SHIP_TO_ADDR2" as "SHIP_TO_ADDR2",
         "RPC_CUST_SHPNG_ADDR"."SHIP_TO_CITY" as "SHIP_TO_CITY",
         "RPC_CUST_SHPNG_ADDR"."SHIP_TO_PROVINCE" as "SHIP_TO_PROVINCE",
         "RPC_CUST_SHPNG_ADDR"."SHIP_TO_POSTAL_CODE" as "SHIP_TO_POSTAL_CODE",
         "RPC_CUST_SHPNG_ADDR"."SHIP_TO_TEL_NUM" as "SHIP_TO_TEL_NUM",
         "RPC_CUST_SHPNG_ADDR"."SHIP_TO_FAX_NUM" as "SHIP_TO_FAX_NUM"
    from     "RPC_CUST_TABL" "RPC_CUST_TABL", "RPC_CUST_SHPNG_ADDR" "RPC_CUST_SHPNG_ADDR",
         "RPC_PURCHASE_ORDER" "RPC_PURCHASE_ORDER"
    where "RPC_CUST_TABL"."CUST_NUM"="RPC_PURCHASE_ORDER"."CUST_NUM"
    and "RPC_PURCHASE_ORDER"."CUST_NUM"="RPC_CUST_SHPNG_ADDR"."CUST_NUM" (+)
    and     "RPC_PURCHASE_ORDER"."SHPNG_SEQ_NUM"="RPC_CUST_SHPNG_ADDR"."SHPNG_SEQ_NUM" (+)
    and "RPC_PURCHASE_ORDER"."DOCKET_NUM" = :P37_DOCKET_NUM
    select     "JOBS"."ORDER_QTY" as "ORDER_QTY",
         "JOBS"."SHIPPED_QTY" as "SHIPPED_QTY",
         "JOBS"."SIZE" as "SIZE",
         "JOBS"."DESCRIPTION" as "DESC"
    from     "JOBS" "JOBS",
         "RPC_PURCHASE_ORDER" "RPC_PURCHASE_ORDER"
    where "JOBS"."DOCKET_NUM"="RPC_PURCHASE_ORDER"."DOCKET_NUM"
    and     "JOBS"."PO_NUM"="RPC_PURCHASE_ORDER"."PO_NUM"
    and "RPC_PURCHASE_ORDER"."DOCKET_NUM" = :P37_DOCKET_NUM
    and "JOBS"."PO_NUM" = :P37_PO_NUM
    select     "MATERIAL_FOR_PO"."QUANTITY" as "QUANTITY",
         "MATERIAL_FOR_PO"."TYPE_STOCK_COLOR_FINISH" as "TYPE_STOCK_COLOR_FINISH",
         "MATERIAL_FOR_PO"."SIZE_WGHT" as "SIZE_WGHT",
         "MATERIAL_FOR_PO"."CUT_TO_SIZE" as "CUT_TO_SIZE",
         "MATERIAL_FOR_PO"."OUT" as "OUT",
         "MATERIAL_FOR_PO"."UP" as "UP",
         "MATERIAL_FOR_PO"."ORDER_DATE" as "ORDER_DATE",
         "MATERIAL_FOR_PO"."SUPPLIER" as "SUPPLIER"
    from     "MATERIAL_FOR_PO" "MATERIAL_FOR_PO",
         "RPC_PURCHASE_ORDER" "RPC_PURCHASE_ORDER"
    where "MATERIAL_FOR_PO"."DOCKET_NUM"="RPC_PURCHASE_ORDER"."DOCKET_NUM"
    and     "MATERIAL_FOR_PO"."PO_NUM"="RPC_PURCHASE_ORDER"."PO_NUM"
    and "RPC_PURCHASE_ORDER"."DOCKET_NUM" = :P37_DOCKET_NUM
    Any help would be appreciated. Also, can a report have 2 detail sections?
    Thanks
    Albert Woolery

    Found it, it's possible.

  • How to create one master table and two detail for it

    I have one table , imagine it like mastertable( empid,deptid );
    and two different tables like employeetable(empid ) , departmenttable ( deptid )....
    I dont have any relation on database side. I need to create view link and ı need to use only one master table for two detail tables.
    How can ı manage this scenerio ?
    thanks...

    yes Shay ı really want to use two detail table in one UI as you suggest in your blog. But in that scenerio probably tables have link in database side with foreign key. My detail tables dont have any connection in database side with my master table. How can ı link them under one mastertableVO ?
    I am really sorry about my bad explanation. I am a newbie and probably ı dont know the correct words to tell my problem.
    Thanks for your time...

  • How to create one master with more than one detail

    Hi
    I am using jdev 11.1.2.1.0
    I want to add more than one detail view object under one master view object in application module
    Please solve this asap
    Thanks

    Hi Frank
    I have 5 view objects (Suppose A,B,C,D,E) and I have created view links between them like
    A->B
    A->C
    A->D
    A->E
    Then I am shuttling views in Application module (In Data model Tab) to create A as master and rest as details.
    But it is not creating as i want.
    I add new instance of view object independently.
    Please solve this
    Thanks
    Edited by: 7668489779 on ३० अप्रैल, २०१२ ४:०७ अपराह्न

  • HT204387 Hello!  Can anyone teach me how to connect iphone 4S to ipad retina using bluetooth. I tried, but the devices won't discover each other at all. I just wanted to connect to share contact details so I don't have to key in one by one.   Many thanks

    Hello!
    Can anyone teach me how to connect iphone 4S to ipad retina using bluetooth. I tried, but the devices won't discover each other at all. I just wanted to connect to share contact details so I don't have to key in one by one.
    Many thanks
    Injin

    You need to go to the App stores and find compatible apps. iOS device do not natively have to ability to transfer info to a computer via BT to a computer.
    With iOS 8 you can use AirDrop

  • Master with many details

    Hello Marvel team and Others,
    Is it possible with thee html db wizard to create a page contaning a master with more than one details ?, I think no , please if No, can I do it manually ? Any ideas are welcome.
    This is my need :
    The same page mmust contain :
    udpatable items for the master
    updatabee report for each detail
    insert details for an existeing master
    delete details from an existing master
    insert a new master with his details
    deletee a master, of course with his details
    Jina.

    The Add Rows button submits the page and re-renders it with additional N rows in that region. Any changes made in that region will be saved.
    Perhaps what you need is some client-side DHTML/Javascript to dynamically add some rows in your tabular form.
    See
    Re: Copy Values From Tabular Form for a discussion about that and an example at http://htmldb.oracle.com/pls/otn/f?p=24317:227
    But all this is straying far outside the out of the box functionality and you have to write everything yourself. You should re-evaluate some of your business requirements before going down this path.
    In other words, having a master-detail-detail, all of them editable, one global SAVE button for all of them, client-side Add Rows functionality, and all on the same page...is a highly unusual UI.
    Good luck.

  • Master with many details form best layout

    Hi,
    I have one master table, and 5 detail tables.
    I need to build a form (or more) to maintain these tables .
    What is the best layout for this form ? should I use tab pages (generally not friendly) ? should I use separate forms ?
    Any best practices? Any samples available?
    Thanks in advance
    AK

    What other options do you expect?
    1. 5 detailed tables - each updated on a single page
    2. 5 detailed tables - all updated on one page
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How to create a JClient form with one master block & multiple detail block?

    Hello,
    I am using Jdevelopver 10.1.2
    I want to have a JClient Form with one master table A and two detail tables B, C.
    But in the JClient Form wizard, I can only create a one master with one detail relationship. Can I create multiple details in that wizard ?
    Thanks
    Stephen

    Create a JPanel based on the second detail table with the wizard and add manually the JPanel to the Master-detail Form.
    Regards
    Fred

  • How to create one Oprations button (Create Button Or CreateInsert Button )for all master And Detail block?

              hi
       I have master And Detail with 4 level ,I want to have on operations button for all block in data control .
      (similar to Oracle form toolbar)
    how to do it ?

    Well, if you tell us your jdev version and what exactly you try to do, without just telling us 'as in forms' we might be able to help.
    Most of us don't know how it's done in forms. So be specific when you describe your use case.
    Timo

  • ONE-to-MANY relationship between tables and forms in APEX

    I recently started using APEX and I have run into an issue.
    I have a ONE-TO-MANY relationship between two tables, A1 and A2, respectively.
    A1:
    A1_ID
    Item
    A2:
    A2_ID
    SubItem
    A1_ID
    I have 2 forms (lets call it F1 and F2) that I use to capture data for A1 and A2.
    On F2, I have the following fields that are setup to capture data:
         A2.A1_ID
    **A1.Item (this is a drop down that is populated using a SELECT statement where the select uses A1.Item field)
         A2.SubItem (user would enter SubItem)
    Note: A2.A2_ID is populated using a SEQ
    Everytime I pick **A1.Item on F2, is there a way to link to A1 table and display A1.A1_ID for every **A1.Item selected on F2?
    If so, I want to store the value captured in F2 for the A1_ID field into A2 table to maintain my 1-to-MANY relationship.
    If this will work, how do I go about implementing this solution?
    Can someone help me?

    I think it sounds like you are asking for a Master-Detail form. Try that and see what you get.
    chris.

  • Displaying the master and detail records ....

    Hi ,
    There is a master - detail form. The end-user make some insertions/updates in the detail block...
    How is it possible to display these detail records and its master when the user presses a custom button 'refresh' which just requery the records in both master and detail blocks...?????
    When i write "to display these detail records and its master " i mean that the current record (the one which the cursor would be focused in ) would be this master record... however,all other records would be displayed as well....
    Many thanks,
    Simon

    From what I understand you want to re-query and go to the record where you were just before re-querying??
    Interesting requirement, why you wanna do this? if for the user to see the changes of the updates, that is the default behavior.
    You can do this in two ways.
    1- in your "Refresh" button save the :system.trigger_record in a parameter :parameter.record_num, for the Master block and after the query you do a go_record(:parameter.record_num) .
    BEGIN
         GO_BLOCK('EMP'); --Master Block
         :PARAMETER.RECORD_NUM := :SYSTEM.TRIGGER_RECORD;
         EXECUTE_QUERY;
         GO_RECORD(:PARAMETER.RECORD_NUM);
    END;2 you can loop through the block with next_record built-in and an exit condition of a key value you saved in a parameter.
    BEGIN
         GO_BLOCK('EMP'); --Master Block
         :PARAMETER.EMPNO := :EMP.EMPNO;
         EXECUTE_QUERY;
         FIRST_RECORD;
         LOOP
              EXIT WHEN :EMP.EMPNO = :PARAMETER.EMPNO;
              NEXT_RECORD;
         END LOOP;
    END;Tony

  • ADF One to Many relationship

    I'm a bit confused on how to create one to many relationships with ADF. Let's say I have a make and model table. One make can have many models. Now let's say I create a Business Facade like this (I'm using JavaBeans):
    public Collection getMakes () { ... }
    Ok, my data control now has the collection for makes. And I want to do something like this
    public Collection getModels (Make make) { ... }
    I can't make this work because ADF will detect it as a method accesor. How does this work?
    Regards,
    Néstor Boscán

    Maybe looking at how TopLink does it, can help you.
    Try creating TopLink objects for a master detail set of tables (dept-emp).
    This will create two beans that should be similar to your beans. Look at their structure to see how they work.
    The ADF TopLink workshop has the steps to show you how to do this.
    http://www.oracle.com/technology/obe/obe9051jdev/ide1012/adfworkshop/buildingadfapplicationsworkshop.htm

Maybe you are looking for

  • How many people can log into a G5 at the same time.

    Thanks in Advance. I am using a G5 as a server with external drives attached. I get a message from time to time that says "too many users are logged in at once", is there a limit to how many people can log into a G5 at once ? All are on different use

  • Log and Transfer - what happens to the source files?

    I'm an experienced FCE4 user, but am using Log and Transfer for the first time with my new Canon Vixia HF M30 camera. Icons for the converted files are showing up in the Browser in FCE4, but where are the underlying converted flies? I didn't copy the

  • Autoviewer slideshow problem

    Hi People, I have been trying to insert a simpleviewer slideshow into iweb, managed to do it eventually (i used the autoviewer format in iphoto export, but when I create a box to place the slideshow then insert the html link, it always cuts off part

  • POST FOLLOW-UP QUESTIONS FROM 1/21/11 DIRECTIONSMAG WEBINAR HERE

    We're trying something new. If you have any questions you didn't get to ask after the Directionmag.com Webinar "Maps, BI and Network Management-- Together at Last" aired on Jan. 21, 2011, please post them here and we will answer them. If you missed t

  • Sort PGA Area

    We are running Oracle 9.2 on Windows 2000 Advanced Edition with 8 GB of memory. There are 700+ Oracle sessions so I'm running MTS with the Windows /3GB and /PAE switches are enabled. The SGA is 2.8 GB and the buffer cache is 1 GB. To help boot perfor