Implement Master Detail type of form

Does anybody have tutorial or sample code to implement a master-detail kind of form?
I am really stuck here.
Could anyone please help?

I have looked into that topic, but still i could not figure out.
When we query display the form in Update mode, by just querying the Master record, the Detail records don't show up.
I have used a Simple table for my detail records, but the master record is just some text field.
The rows dont appear in the Simple Table.
This is the problem that i am getting.

Similar Messages

  • How to implement Master-Detail Search in TopLink without using DataControl

    Hi,
    I am using TopLink and EJB in our requirement. But we are not creating any data controls. Without data controls how to implement master detail search using TopLink and EJB. I did search for a single table. It is working fine. The way i implented is as follows.
    1) Taking search parameter from UI and passing it to A delegator class's method.
    2) Delegator class's method calls the EJB's NamedQuery which i already created using expression builder.
    3) EJB executes the NamedQuery with the parameter we are passing. And it returns the results back to UI.
    But as i am new to TopLink, can anyone tell me the procedure to implement Master - Detail search. Here we need to search based on Master table's column.
    Waiting for the replies regarding this.
    Thanks & Regards,
    Suresh Kethireddy

    Hi,
    I did it successfully. Following is the code.
    Session session = getSessionFactory().acquireSession();
    UnitOfWork uow = session.acquireUnitOfWork();
    ReadAllQuery raq = new ReadAllQuery();
    Dept d = new Dept();
    d.setLoc(loc);
    raq.setExampleObject(d);
    List<Dept> res=(List<Dept>)uow.executeQuery(raq);
    for(int i=0; i<res.size();i++){
    System.out.println("Dept DeptNo ---"+res.get(i).getDeptno());
    System.out.println("Dept DeptName ---"+res.get(i).getDname());
    System.out.println("Dept Location ---"+res.get(i).getLoc());
    List<Emp> eRes=res.get(i).getEmpCollection();
    for(int j=0; j<eRes.size();j++){
    System.out.println(" Emp No ---"+eRes.get(j).getEmpno());
    System.out.println(" Emp Name ---"+eRes.get(j).getEname());
    System.out.println("Emp HireDate ---"+eRes.get(j).getHiredate());
    System.out.println(" Emp Job ---"+eRes.get(j).getJob());
    System.out.println(" Emp Mgr ---"+eRes.get(j).getMgr());
    System.out.println(" Emp Sal ---"+eRes.get(j).getSal());
    But now my question is, i want to search by providing Dept param as well Emp(Which is child table) param also. Is it possible?
    I tried in 2 ways like this.
    1) Emp emp = new Emp();
    emp.setEname(eName);
    dept.addEmp(emp);
    raq.setExampleObject(dept);
    2) Emp e = new Emp();
    e.setEname("ADAMS");
    List<Emp> list = new ArrayList();
    list.add(e);
    d.setEmpCollection(list);
    raq.setExampleObject(d);
    But in both cases i failed to search based on the values i am passing to Emp.
    Is there any other way to achieve my requirement?
    Any help on this is great.
    Thanks & Regards,
    Suresh K

  • Problem in implementing Master-Detail-Detail design in Forms 6i

    Hi, all technocrats!!
    Here i've problem in Master-Detail-Detail sort of design in
    Forms 6i..
    This thing i've implemented earlier in one form...and that is
    fine...and i could not track the root when i've got a problem in
    a new form...which of the same manner...
    The problem is that...
    When i enter data into the 1st detail block and navigate to the
    2nd detail which is a detail block to the 1st detail...and enter
    data, there is no problem, but when i navigate back to the 1st
    detail block and that to a new record in the 1st detail...form
    is showing indefinite behaviour( Hanging )...
    But when i navigate back to the same record in the 1st detail
    from the 2nd detail...there were no problems and it is working
    fine...
    And whenever i shift to a new record in the first detail it is
    asking to save that record...to solve this problem., i've used
    POST in the new block instance of the 1st detail...and i'm
    comfortably managing it...if i dont use this POST method...it is
    clearing the details in the 1st detail itself when i traverse
    back to it from 2nd detail after inserting records...
    But this hanging problem is really driving me to Hang myself...
    Plz do suggest me to get rid of this problem...

    Developing proper transactional behavior with Oracle Forms
    in Grandparent-Parent-Child case is a problem.
    We must use some 'container' for 'non-visible' Child records
    (Child records with Parent different from current record in
    Parent block).
    I try to solve this problem in 2 different ways:
    1. Using POST built-in. In this case 'container' is Child
    database table. But, problem can be because POST built-in
    actually executes DML statements (this locks records and fires
    database triggers - so a deadlock can occur) before COMMIT_FORM.
    2. Using a 'temporary container'. 'Temporary container' can be
    (for example) temporary database table, PL/SQL table of records
    (defined in Forms package or database package), Forms record
    group. This variant has not problem with record locks/database
    triggers, but is much more complex for programming than 1.
    variant.
    In my development, when I haven't problem with record locks or
    database triggers, then I use POST. In other cases, I use 2.
    variant, with PL/SQL table of records (defined in Forms package)
    as 'temporary container'.
    Further, when we use POST, we can do this in more ways.
    One method is to use POST in Forms level WHEN-NEW-RECORD-
    INSTANCE trigger.
    Different method is to change code in CLEAR_ALL_MASTER_DETAILS.
    Instead of:
    CLEAR_BLOCK (ASK_COMMIT);
    we can write:
    IF mastblk = "name_of_master_block" THEN
    CLEAR_BLOCK (ASK_COMMIT);
    ELSE
    POST;
    END IF;
    Which method you use?
    Regards
    Zlatko Sirotic

  • Multiple Master Detail Relation In Forms 6i

    I have tables as below
    1.Bill_Head
    Bill_No
    Bill_Date
    Fin_Year_Cd
    Remarks
    2.Bill_Tail
    Bill_No
    Product_Cd
    Amount
    Ded_Amount
    Net_Amount
    3.Bill_Tail_Det
    Bill_No
    Product_Cd
    Quantity
    Rate
    Interest_Percent
    Service_Charge
    Vat_Tax_Percent
    The Relation is like
    Between BILL_HEAD and BILL_TAIL is Master Details Relation
    Between BILL_TAIL and BILL_TAIL_DET is one to one relation
    In single form i am not able to insert record.
    If i build Master details between BILL_HEAD and BILL_TAIL, BILL_TAIL and BILL_TAIL_DET, when i run the for to insert data.
    I will put the data for BILL_HEAD data
    For this parent record there will be child record in BILL_TAIL block.
    For this BILL_TAIL parent record there may be a child record in BILL_TAIL_DET or may not. Suppose i put a child in BILL_TAIL_DET.
    Then i wanted put one more child record in BILL_TAIL block, if i say next record, it is asking me to "save the record first".
    Please help me in this regards
    my mail id : [email protected]
    Regards
    Mahaveer
    Message was edited by:
    user603318

    Thanks Kris, for your reply.
    Is there any way out to enter all the data at once and then commit, b'cse for every record asking to commit is tedius.
    Regards
    Mahaveer

  • Master-detail page with form layout -- insert only -- not in create mode

    JDeveloper 10.1.3.1 with JHeadstart
    I have the following master-detail structure in JHeadstart:
    Group 1, Table a, Layout: table-form
    Group 2, Table b, Layout: table-form
    Group 3, Table c, Layout: form
    Group 4, Table d, Layout: form (on same page as master table c)
    Table a, b and c are updatable (insert, update and delete).
    I have problems with the last page, tables c and d, master-datail both in form layout.
    The master-table (c) is not an insert-only table, the detail table needs to be an insert-only form on the same page as the master table c.
    Settings Table d:
    Advanced search and quick search: none
    Autoquery: disabled
    Single row insert allowed (other options in Operations disabled)
    In my view object I have used the settings in the JDeveloper guide 8.1.2 ('no rows...' in tab Tuning).
    I run my application in JDeveloper (with the option run in my ViewController-project, which means that I am not running my detail page directly in JDeveloper??) and when I open this last page, the detail form is not in create mode (I see no rows found and a create rows button).
    I have read several threads in this forum, but I do not know how to solve this problem.

    This does not work.
    In my first post I made an mistake in describing my application, it is not a table-form, but a tree-form application:
    Group 1, Table a, Layout: tree-form
    Group 2, Table b, Layout: tree-form
    Group 3, Table c, Layout: tree-form
    Group 4, Table d, Layout: form (on same page as master table c)
    If I override the executeQueryForCollection method in the ViewObjectImpl of table d I get a message ('JBO-27122: SQL-fout tijdens voorbereiding van statement' and 'java.sql.SQLException: OALL8 is in an inconsistent state').
    while clicking on the tree (with table b and c). It seems that the QueryForCollection method is being executed to early.

  • Master-detail insert records form?

    Hi,
    I want to be able to build a master-detail insert form based on a BC4J, any ideas on the easiest way of doing this?
    I tried using the Data Web Beans from the JSP Element wizards, and found it possible to build a master-detail form for viewing data based on a BC4J application, but not inserting.
    I know it is probably possible to do this by coding your own Data Web Beans but is
    there any way of doing it with the Web Beans available?
    Thanks in advance.

    If you have a ViewLink in your AppModule for the master/detail tables, then the JSP application wizard automatically creates a master/detail page for this view link. You may want to use the generated page and modify it.

  • Implementing master-detail link

    Hi experts,
    I am trying to set up a master-detail link between 2 pivot tables. I have defined a master column and a detail view and a channel. However, the link does not work.
    When I right-click on the cell that should link to the detail view, I get 'Send master detail event', but nothing happens, and the cell is not clickable with a hyperlink.
    What did I do wrong?
    Thanks Gurus

    https://docs.google.com/file/d/0ByRcrSFfteJQZDBweVY2VHIwQjA/edit?usp=sharing
    https://docs.google.com/file/d/0ByRcrSFfteJQNGo3dlJKU3E3dEU/edit?usp=sharing
    https://docs.google.com/file/d/0ByRcrSFfteJQZkNmbzJvNkdIRkU/edit?usp=sharing
    https://docs.google.com/file/d/0ByRcrSFfteJQTzBFXzhJX3RpcVU/edit?usp=sharing
    Here are some new screenshots. The master column is called 'Identifiant externe du contact'.
    Hope this helps!

  • How to implement Master - Detail relation between two table views in OBI11g

    Hi Gurus,
    I was able to create master- detail between table and graph.
    But between two tables not.
    I put the listening column on the table prompt and specified channel for the Listen to Master-Detail Events in the table properties.
    But did not work.
    Where is the mistake?
    I"d appreciate any ideas, help!
    Thanks
    Laszlo

    Thanks for the link!
    My question is :
    Are the same thinga the page edge and table prompt for the tables?
    If not how to add a column to the page edge (not to the table prompt)?
    Thanks
    Laszlo

  • Mapping Master/Detail type of information in a PDF form

    Hi there,
    I have a Web Dynpro Application and I am experiencing some difficulties in mapping the Web Dynpro Context to the PDF form to get the desired result. I hope you smart people can help me.
    In the Web Dynpro Context I have the following structure:
    - DataSource
    Customer (0..n)
    Name
    Address (0..1)
    some attributes like Street, City, etc.
    Orders (0..n)
    some attributes like description, amount, etc
    On the PDF form I want to generate 1 PDF that displays all the order details for all the customers.
    In other words a high-level layout for the PDF would be:
    Heading
    Customer 1
    -- Name and Address
    -- All Orders
    Customer 2
    -- Name and Address
    -- All Orders
    Customer n
    -- Name and Address
    -- All Orders
    By using a SubForm and binding the context I can easily repeat the display of all Customers, but I cannot manage to display all the orders for just a specific Customer.
    I believe that I am just not finding how to setup the binding for the PDF elements correctly. If I just drag-n-drop the Order elements onto the form I get a binding in the PDF form of $record.Customer[].Orders[].amount. This does not seem to be correct.
    Can any one help me with a solution to my problem? Any advice or a more advanced tutorial than the ones I've found will be much appreciated.
    Many thanks,
    Albertus

    Hello,
    Unfortunately I get an exception on the Orders Subform when I try that.
    The error message is "The SOM expression 'Orders[*]' for the dataRef specified on field 'Orders', resolved to an incompatible node value of 'dataValue'.
    I followed the tutorial "Unit: Interactive Forms Integration into Web Dynpro for
    Java, Topic: Dynamically generated forms" that suggested nesting Subforms. The structure I currently have:
    Customer SubForm             -> <b>Type:</b> Flow Content, <b>Flow Direction:</b> Table
    |--- Customer Row SubForm -> <b>Type:</b> Position Content, <b>Binding:</b> $record.Customer[*], Repeat for Each Data Item
    Up to here it works and it repeats for all Customers, but the next subform is the problem. After your reply I set it up as follows:
         |--- Orders Subform         -> <b>Type:</b> Position Content, <b>Binding:</b> Orders[*]
              |--- Description          -> <b>Binding:</b> Description
    But I then get the exception above. Any ideas?
    Thanks,
    Albertus

  • Master detail: select in form (newbie)

    I've been looking at this example:
    http://labs.adobe.com/technologies/spry/samples/data_region/DataSetMasterDetailSample.html
    The bit of code I cannot understand is this:
    onchange="document.forms[0].citySelect.disabled = true; (That's in
    the first "select" element.)
    Indeed, when I test this on a page of my own, I must remove
    this bit of code to get the second select list to work properly.
    That is, in my trials that bit of code seems to inhibit the second
    list from populating per the selection from the first data set.
    This seems logical: the element with id="citySelect" is somehow
    "disabled". But in the Adobe example it works just fine... so I
    guess I am asking under what circumstances is the "disabler"
    disabling...
    TIA,
    Greg Smith

    Hi,
    what you initially did should work. However, a master may have many children and the attribute you move into the form is the one of the first detail row. So if the master does not have details then you only see the label.  I don't know why you have to build this construct, but wouldn't it be better to add the attribute on the View Object directly (adding a second entity object rerference)?
    Frank

  • Help needed for implementing master details region on the search page

    Hi All,
         I am new to Jdeveloper and OAF. I need to develop a sales order search page, for which the VO query is
         SELECT ch.order_number order_number
         , ch.attribute97 order_detail
         , ch.attribute14 sold_to
         , ch.attribute50 business_group
         , ch.source_doc_type source_doc_type
         , ch.line_number line_number
         , ch.transaction_amount transaction_amount
         , ch.split_pct||'%' split_percentage
         , jrs.NAME resource_name
         , jrr.resource_number resource_number
         , ch.processed_date processed_date
         , cq.NAME quota_name
         , ch.attribute34 transaction_type
         , ch.attribute35 order_type
         , ch.attribute51 product_line
         , ch.attribute54 city
         , ch.attribute55 state
         , ch.attribute56 district
         , ch.attribute57 area
         , ch.attribute61 salesrep_number
         , ch.attribute62 region
         , ch.attribute64 sales_org
         , ch.attribute68 terr_order_type
         , ch.attribute58 market_indicator
         FROM cn_commission_lines_all cl
         , cn_commission_headers_all ch
         , cn_quotas_all cq
         , jtf_rs_salesreps jrs
         , jtf_rs_resource_extns jrr
         WHERE cl.direct_salesrep_id = cl.credited_salesrep_id
         AND cl.commission_header_id = ch.commission_header_id
         AND cl.quota_id = cq.quota_id
         AND ch.direct_salesrep_id = jrs.salesrep_id
         AND jrr.resource_id = jrs.resource_id
         AND (NVL(ch.source_doc_type,'X') = 'EVEREST' OR NVL(ch.source_doc_type,'X') = 'SAP')
    AND (NVL(ch.attribute50,'X') = 'EMG' OR NVL(ch.attribute50,'X') = 'LSCA')
    I have 3 query parameters business_group, source_doc_type and sales order number.
    The results region should look like,
    Header region with order_number,order_detail,sold_to,business_group and the source_doc_type columns.
    The remaining fields go into the details region.
    Highly appreciate if anyone could help me on this.
    Regards,

    Hi,
    When I have a messagestyle layout for my header, I am not able to find the items in this region for the querycriteriamap. I need to populate the header region with values entered in the search region.
    For example: I create the OrderNumber messagestyledtext item in the messagecomponent layout of the header region. In simplesearchmappings, for the querycriteriamap, I am not able to find this item in the drop down for Results Item property.
    Please help me to understand.
    Regards,

  • ADF Desktop Integration - Can it Support Master Detail Information

    I reviewed the OBE and also the user guide. I could not see any specific details as to whether the ADF Desktop integration can support master detail relationship - either master table with detail table or Master form with detail form, to be linked with the excel sheet.
    Defining both the master and detail table as "tables" I was able to get the data into the excel sheet for the entire master and the child of the first master. The fetch of the child records for the second or third master records is not happening, obviously because I am missing suitable actions.
    Please let us know if:
    - the Master detail can be supported in a view only mode in the integrated excel sheet - with partial page functionality?
    - The master - detail page can be used to upload a header record (master) and many detail records.
    Appreciate any inputs.
    Thanks
    Ram.

    Yes. ADFdi can be configured for "master-detail" type use cases.
    You can create cases with a master form and a detail table. Or, you can create cases with multiple tables.
    ADFdi does not automatically manage the relationship between the form and table, or between the tables. So, the implementation details depend on your specific use case.
    For example, given two tables (one above the other), you might choose to make one column in the "master" table double-clickable. The double-click action set can then invoke the download action of the second, "detail" table.
    For a master form - detail table case, you can configure a "next" button to navigate to the next "master" record and download the details into a table.
    HTH

  • Master Detail Highlighting

    Hi,
    I have a master detail type form.
    When I select record 1 in my Master block and go to next block (detail), I would like to have the record 1 highlighted, so that my users now which record they are editing.
    I have tried to set the currect record visual attibute to DEFAULT for both blocks, but nothing seems to happen. Has anybody done this before?
    I am using Forms 9i
    Thanks in advance.
    VC

    You can set a visual attribute in the "Current record attribute" in the block property. This will show the current record in which you are.
    I have created a visual attribute named RECORD with the following properties:
    Foreground color: white
    Background color: blue
    Then in the property palette of a certain block, I have set property "Current record visual attribute group" to RECORD.
    In this way when I move from one record to another the current record is highlight.
    Hope it helps you,
    Fabrizio
    If this answer is helpful or correct, please mark it. Thanks.

  • ADF: Master Details Page

    Hello,
    I have just started out trying to develop an application in JDeveloper with ADF and I am coming from a Apex/Forms/PL SQL background. I am trying to develop an online application form for our Grants program.
    The problem I am having is I have a master detail type page where I have a section D (Master) and then I have a breakdown of cost (detail). I have created a creation page for the section D and I have then another creation section on the same page for the breakdown of the costs by dragging the view that is under the section D view.
    The problem is the detail section seems to be bring back the first record from the table. This is not what I expected as I would assume this to be blank record as we have a blank record in the master part.
    Is there anyway around this where on startup the detail section brings up a blank record instead of the first record in the view?
    Cheers in advance in any help on this matter.
    Paul.

    Most likely you dragged the wrong detail structure from the Data Control palette. When you created your Application Module, and added View objects to it, you would have seen a tree structure. Views will be listed separately, but if you have a View Link associating a detail view with its master, you will also see that view in the tree under the master. Something like this:
    MyMasterView
      MyViewLink
        MyDetailView
    MyDetailViewMake sure that this structure has been moved to the right side of your Application Module. There you will see something like:
    MyMasterView1
      MyDetailView2
    MyDetailView1This is what creates the tree structure in the Data Control palette. When you created your master/detail page, you dragged MyMasterView1 for the fields from your master view. But you probably dragged MyDetailView1 for the details. This does not use the View Link to associate your details with the current master record. To do this, you must use MyDetailView2, which you will find by expanding the tree under the master.
    Now, to get a blank record in the detail, you have to execute a Create action from that data control. You can drag a Create button to the page, and the user can press the button to get a blank record. Or you can cause a create action to happen whenever you enter that page.

  • Master-Detail Report

    Hi Gurus,
    I am trying to implement master-detail report in single window without navigating to other window in OBI 10g by following the below link
    http://108obiee.blogspot.in/2010/02/obiee-master-detail-requests-navigation.html
    but i am facing problem in creating iframe column and including that column in the report
    Can we achieve this requirement in OBI 10g if yes please suggest me how can we do this.
    Thanks,

    Hi Muram,
    For implementing Master-detail for the product report when we click on Prod-Cat from master report(Year, Prod-Cat, Tot-Sales) it as to show the detail report (Prod-SubCat,Tot-Sales) in the same window without navigation to the other window for this scenario I implemented the steps as per the below URL which was send in the previous post.
    http://obiee10grevisited.blogspot.in/2012/05/master-detailed-report-on-same-page.html
    but I am facing problem in 5th,6th,7th steps could you please suggest me on these.
    1>First I created master report with columns (Year, Prod-Cat, Tot-Sales)
    2>Second I created detail report with columns(Prod-SubCat,Tot-Sales)
    3>I have created two prompts Year and Prod-Cat
    4>Now in the dashboard page I kept prompts and two reports in separate sections
    5>To build intermediate report for validation which columns I have to take in that report and what I have to give in the fx.
    6>In the detail report sections in the edit dashboard how to give the reference to the intermediate report and how to make the report not visible at the initial view of the user.
    7>In the main report how to give the navigation to the same page which consist of main and detail report together we can navigation either main report or detail report how we can navigation which consist of both.
    Thanks,
    Rafi
    Edited by: Rafi.B on Aug 29, 2012 11:42 AM

Maybe you are looking for

  • Magic Mouse not working in Windows 8.1 via Boot Camp

    Hi, I'm using Windows 8.1 on a Mac Pro 64 bit with Mavericks. On an internal SSD I installed Boot Camp 5.1.5621 and Windows 8.1. Everything is working fine, except for the Bluetooth mouse, which is not recognized. If I try to add the Bluetooth mouse

  • Wait for Event in Fork - How to terminate the wortkflow in leg 2

    Hi Experts, My scenario is that there is a fork with 2 branches. 1 has a change Doc method. In this I have raised an enent when a action is performed which in turn calls a wait for event in other leg. The problem is that the other loop is executing b

  • MP-BGP Router Reflectot (RR) Default Behaviour

    Hi All, I have a 7206VXR configured like RR for MPBGP (Afi/safi 1/128 L3VPN rfc 2547Bis). My RR is configured with different peer-group towards its clients (PE). I'd like to konw what is the RR's default behaviour when it receives an updata message t

  • Command-line to combine obj files (.o) into a Static Library (lib.a) file.

    I have a library that I need to compile for Solaris 10 x86 using Sun Studio. I compile the source files to make obj files by issuing the command: Bash-3.0# cc -c -D"_UNIX_" *.c This compiles every source.c and produces an object.o file. (Nice, & simp

  • Smart form footer issue in 2nd page - Horizontal line is not displayed

    Dear Experts, I am working on a smartform. Which has a table (Header, Main area, Footer), When there are more records and footer alone is printed in the 2nd page, i am not getting the first horizontal line for the footer and it does not look like a t