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
-------------------------------------------------------------------

Similar Messages

  • 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 multiple details

    (JHeadstart release 10.1.2.) I can make a master with multiple detail pages work (displayed on the same page or different pages), except under one condition. Assume the following situation:
    Master: View object A based on entity A
    Detail 1: View object B based on entity B with a modified WHERE clause
    Detail 2: View object C based on entity B (yes, same entity object as view object B) with a WHERE clause different than the one for view object B
    A one-to-many view link exists between view object A and view object B, and another exists between view object A and view object C. The query for each of the view objects is standard (i.e., no expert-mode queries). The master and the two detail view objects (via their respective view links) are assigned to an application module.
    I created a JHeadstart application structure file for the application module with Struts and UIX. I added view object A as the top group (table-form layout). I next added view object B as a detail group (form layout, same page) beneath view object A. I finally added view object C as a detail group (form layout, same page) beneath view object A (i.e., parallel to view object B). The module generated and built cleanly.
    I ran the application, entered a master record, and saved the data. When I pressed the button to create a new record for detail 1 (view object B), fields appeared for the pages for detail 1 and detail 2 (view object C), not just detail 1. Also, the value of the Descriptor Attribute from the master record that linked it to the two detail pages populated the corresponding field in both of the displayed pages for the detail records.
    This behavior does not occur if view object C (detail 2) is based on an entity different than view object B. Will JHeadstart allow a master to have multiple details where the details are based on the same entity object? Thanks.
    Ray

    Ray,
    Unfortunately I cannot reproduce the problem. I filled in the A, B and C using a scott/tiger schema as follows:
    A: Departments
    B: All employees having a salary < 1000
    C: All employees having a salary >= 1000
    Then I created an application module with one group having two subgroups everything same page, just like you specified. Everything seemed to work fine. Do you have any idea what's different in your situation.
    Aard-Jan van Kesteren
    JHeadstart Team
    Oracle Consulting

  • Examples of Master with multiple details

    Hi Leo,
    I want to create Master with multiple details
    I have been trying for the similar example (Master with multiple details) for long time.
    It seems in the following link, you have mentioned that you have done such examples.
    Examples/Demos of APEX applications with Master with Multiple Details.
    Can you please share the solution to my emaid address [email protected]
    Or can anybody help me to get such solution with examples step by step.
    I would highly appreciate for any help.
    Thanks.

    Ok, so here's the rundown.
    Create a page with one "master" html region. In that region create your standard text/date/etc. items. Make sure that one of these is a hidden key field that is the key linking the master and details portions. Use a calculation to pre-populate the field from a sequence (or whatever uniqueness generator you choose). It is important to generate this key up front for the processing.
    Next I created one report region for each detail table I wanted to link in. Make sure to count the total number of fields you want to work with and that the total is LESS than 50. This is critical. The report should be selecting the columns from APEX_COLLECTIONS for display and manipulation on the screen. It is best to explicitly associate these to the Javascript column numbers now. I used a process to pre-populate my detail entry areas with default values for ease. I also included a button to add a row to each area, but you have to be careful here to use a good combination of form attributes so that the page refreshes don't SUBMIT yet.
    Once you have a report region generated from APEX_COLLECTIONS, you have to create the update processes that pull the information from the user modifications into the collection. This is the trickiest part of the whole thing. You have to use the APEX_COLLECTION.UPDATE_ITEM method, and you have to refer to the JavaScript column numbers for the source value and the collection column number for the destination. It is really easy to get these confused - I advise putting this all into a document or on a whiteboard for reference.
    Once you have the update processes written (I prefer writing one update process per detail section), write your processes to write the data to the database. Again, I suggest one process for each detail table. Trigger them to fire on submit.
    I also suggest creating a debug page to display all of the various collections and to help keep things straight. Once you have one detail area working, it is easier to get the others working.
    If you need actual code snippets, let me know and I'll see what I can do.

  • BC4J: Master with multiple details

    Hi,
    I have a requirement to display a data form that consists of fields from 3 entities - one master and 2 details. I have view objects for each of the entities.
    I was wondering how best to model this:
    Should I have one Master VO pointing to 2 different view links (one to each detail VO)?
    Or can I have a single view link that models master-multiple-details (not sure how I can do this using the ViewLink wizard)?
    Any other approach I should consider?
    Thanks,
    Niranjan

    I don't believe you could create a Master with two details frame using wizard. you need to write/alter some code manually. I did this a lot in my application, but as i mentioned with some manually coding.
    here is the general idea:
    1- create the view links for master-detail1 and master-detail2 separately.
    2- Edit your application module using wizard.
    (right click on application module and select Edit Tab). if you did the first step successfully, You should see your master entity and details(as master's children) on left side of wizard frame. Then transfer them to the right side.
    3- Create a frame for master-detail1 using wizard.
    4- create another frame(dummy frame) for master-detail2 using wizard.
    5- copy all codes for detail2 from your dummy frame(step 4) to frame on step 3.
    6- Now you need to alter the code in frame on step 3, to locate the detail2 on that frame.
    7- Now the dummy frame on step 4 is useless, you can delete it.
    Hope this note be clear and help you.
    null

  • Master with multiple details page, is there an example out there?

    Many hints and suggestions can be found on this forum about building a page with a master with multiple details page. But is there a working example somewhere? It looks quite complicated to me.
    Also I would like to know if it is because of my Oracle Forms background that I miss the possibility of building this kind of forms in application express. Are there other ways to setup the pages so that you can do without them?
    thanks Rene

    Let me elaborate on my requirements a bit:
    The form I want to create should look like this:
    Master
    Atrtibute_1
    Attribute_2
    Attribute_3
    Attribute_4
    Details_1 Add Delete
    [] item1 (read-only)
    [] item2 (read only)
    Details_2 Add Delete
    [] item1 (read-only)
    [] item2 (read only)
    So basically it should be possible to maintain several lists of items that belong to the master record. Checkboxes allow the user to select records for deletion. The Add button shows a pop-up window that lets the user select an item to add.

  • Examples/Demos of APEX applications with Master with Multiple Details.

    Trying to get my head round the way to best method/approach to present / allow a user to select / maintain a Master table and then maintain multiple Detail tables that are for the current Master. Typically in my Forms days I would have used tab canvases as placeholders for maintaining the related individual detail table rows. But in the APEX world tabs are used as top level page navigational items. Are there any demos, tutorials or articles on how to implement Master with multiple Details using simple APEX pages with minimal bespoke HTML and Javascript intervention.

    Hi Leo,
    I have been trying for the similar example (Master with multiple details) for long time.
    But i did not get the solution. Can you please share the solution to my emaid address [email protected]
    Thanks in advance.
    Sutha

  • Creating a Master with Two Detail report style

    In a Group-Above report data model, how does one add a 2nd detail group appearing at the same hierarchial level as the 1st group?
    The report already exists with MASTER and detailA. I need to add detailB and tie it to MASTER just like detailA.
    |MASTER|
    |detailA||detailB|
    \-------/\-------/

    Amjad,
    Thanks for the reply. My question relates to your suggestion #1: How does one create detailB in the data model?
    The only thing I have been able to do is to create a 2nd query linked to the 1st query. This makes the data model look like it has two masters each with one detail. What I want is a single MASTER with two details.
    Are you suggesting that the only way to accomplish this is by having two queries, one linked to the other, as in the crude rendering shown below?
    |MASTER1||MASTER2|
    |DETAIL1||DETAIL2|
    The above would be displayed in the data model as follows:
    |__Q_1___||__Q_2___|
    |G_DETAIL1||G_DETAIL2|
    \----------------/\----------------/

  • Issue - Master with two Details

    Hi,
    I have three VO's, the first one VO1 is the master with two details VO2 & VO3.
    Can I use ad advanced table with Master- Details & Details for the above VO's?
    I want create a page with Advanced Master Table VO1 and when the user click Show/Hide it should display two Advanced Tables for VO2 & VO3.
    Is this possible to achieve?
    If not Please advise how I can use another way to display the data with Master - Details 1 & Details 2
    Regards...Ashraf

    You could use "New"/"BC" and create a ViewLink with the same name as the FK Assoc. If you edit the PackageModule, you should be able to see your FK link in there.

  • Master with two details(child) relation?

    Hi guys,
    I 'd like to have a Form with one master table and two detail tables.
    The business component wizard doesn't allow
    me to create this relation.
    Although these two details table are logically children of the master but have not defined specifically Foreign key for them on table/database level.
    I created Associations via JDev3.1 to join
    these master with details, but still business
    component wizard didn't allow me to have
    one master and two details.
    Do i have to create foreign keys to join children to master on database level or
    I can create an association with JDev? How?
    Thx
    Ali
    null

    You could use "New"/"BC" and create a ViewLink with the same name as the FK Assoc. If you edit the PackageModule, you should be able to see your FK link in there.

  • Master with two details issue --- urgent

    Hi,
    This is an urgent issue. Please help solve this.
    Page has one sub-tab layout region and beneath it advanced table - in advanced table region. The sub-tab region shows the master data(vo1) whereas the advanced table - in advanced table is used to display the details (vo2) and its details (vo3) data.
    The relationship between 3 vos in AM is as follows:
    vo1
    |--------- conencted to vo2 via vl1
    -----------------------------|-------------- connected to vo3 via vl2
    How to set the CHILD_VIEW_ATTRIBUTE_NAME and VIEW_LINK_NAME on each of this region so that when vo1 is queried the data of vo2 and vo3 is fetched automatically and displayed?
    Or is there any other way to make this haapen with the above mentioned region layout?
    Appreciate your help. Thanks in advance.
    Mitiksha
    Edited by: Mitiksha on Sep 17, 2009 2:00 PM

    You could use "New"/"BC" and create a ViewLink with the same name as the FK Assoc. If you edit the PackageModule, you should be able to see your FK link in there.

  • Master with Double-Detail on samepage will not validate

    Hi,
    I've created a master-detail page with 2 details (both
    on same page as master). Everything is editable, but when
    I change/insert something into the second details-table
    I get a "No changes to save"-message and indeed: no
    changes where saved.
    If I switch the "return checkForChanges"-calls so that
    first the second details are checked and then the first
    this problem occurs on the first details.
    Any help?

    Ok:
    I've changed this:
    onSubmit="return checkForChanges('uPersonsMembershipsForm','uMailingListsMembershipSet');return checkForChanges('uPersonsMembershipsForm','uFoldersAccessSet');">
    to this:
    onSubmit="return checkForChanges('uPersonsMembershipsForm','uMailingListsMembershipSet')&& checkForChanges('uPersonsMembershipsForm','uFoldersAccessSet');">
    This appears to go ok, but somehow the choice-boxes in
    both details-tables are not refreshed correctly. If I
    delete the second row of the table, then the last row
    "appears" to be deleted. Reloading the page (again save)
    will refresh the set correclty.

  • Master with mandatory details

    I have an record in a table with a status flag, and when the status changes from 1 to any other value I want to check if detail records exist in 3 other tables.
    Where should I put this code? I don't know where to start. My first guess would be doDML in the Business Object, or should I do this in the view object?

    Hi,
    depends on what you are aboutto do if there exist records? It is best practices to handle all business logic in ADF BC, however, if there is a message you want to show to the user you will have to raise an exception that you then handle in a custom lifecycle handler (similar to what SRDemo does). This is a bit more overhead than you have when there is a handle to check for detail records in the managed bean. E.g. you could expose a method
    public boolean checkForDetails(Key rwKey)
    in which you check of a specific row has children. There are many options to achieve the same goal - do DML however is first called when changing the underlying database table data
    Frank

  • Master with two details

    Friends,
    I can do a master-detais with one level, but can I do master detail with two or more levels?
    Sample: Departments -> Employees -> Bankacount
    just a simple sample ;-)
    Thanks!

    Creating a Master-Detail-Detail realtionship with BC4J
    Creating the Application Model
    1. Create New BC4J entity objects and default views for the three related tables. I'm using the OE schema for this with the Customers, Orders, and Order Items.
    2. Create a New View link (I'll call it ViewLink) using Orders as the source view and Order Items as the destination entity.
    3. Edit the Application Module by double clicking on it.
    4. Remove the exisitng object in your datamodel by shutteling them to the left.
    5. Add the CustomerView top level item to the new data model by shutteling it to the right.
    6. Add the OrdersView from the second level to the data model
    7. Add the "Order Items via Viewlink" node to the data model.
    You should now have a three level data model that you can test using the Application Model tester.
    Creating a simple JSP for the data model
    1. Create a new JSP.
    2. Drag the Customer object from the Data Control Palette to the page as a read only form.
    3. Drag the Customer object from the Data Control Palette to the page as Navigation buttons.
    4. Drag the Orders object from the Data Control Palette to the page as a read only form.
    5. Drag the Orders object from the Data Control Palette to the page as Navigation buttons.
    6. Drag the Orders Items from the Data Control Palette to the page as a read only table.
    7. Run your JSP
    You should be able to navigate through the customers using the navigation buttons. This navigation will change the orders that are displayed. Navigating through the orders will change the items that are displayed.

  • How handle Master with dynamic Detail

    Hello!
    I have the following issue and will explain it on a little example:
    I have one "invoice"-object and many "invoiceitems"-objects in a collection (classic master - detail).
    I must dynamically set the where and ordering - clause for the invoiceitems.
    How can i do this or what is the best practice for this issue?
    best regards
    Harald.

    The TopLink Collection mappings support ordering, and you can also control exactly how members of the Collections are selected. However, if the contents of a Collection depend on some external characteristic (other than the identity of the Collection's owner), then it sounds like you need to manage this Collection manually (ie have the parent Object query for it's child Objects using some parameterized query and some context sensitive set of arguments).
    If you want an Object to "automatically" build a Collection then you need a sure fire way of determining what the contents of that Collection are going to be from information contained in the parent Object.

Maybe you are looking for