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

Similar Messages

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

  • 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

  • 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

  • Nested af:tables - master with multiple details

    All,
    I would lilke to have an af:table which has several columns, more than one of which contain a detail data af:table. I would like to be able to update the data in these af:tables.
    I have succeeded in doing this when there is only one detail table within the master table. The technique involves creating a tree binding, make the master use the treeModel as its value, and make the child table use row.children as its value. But the tree binding only can have one child per parent node, right?
    So I am looking for other ways to do this. I was wondering if a variant of Steve Muench's technique which he shows in his example #71 would be a starting point for at least getting the data displayed. This example shows how to put detail data into a drop-down list in a table. What steps would be needed to make the data return in a row set or a collection or whatever form a af:table component could deal with?
    I hope my question makes sense. This topic is very important to me if anybody has any ideas.
    Michael F.

    Interested question; one I do not know the answer to at the moment, I am afraid. I would like to know your results.
    To tell others, though, what I have done. I did finally adapt Muench's not-yet-published examples #71 to work with a table. Here the table has as it's value "#{backing_app_EPG_DAYPG.jobDayDriverTable[row.Id1]}"
    This accesses a hash map defined in the backing bean as follows:
    public Map jobDayDriverTable = new HashMap(){
    @Override
    public Object get(Object key) {
    Number jobDayId = (Number)key;
    if (getEpgDayPage().jobDayDrivers(jobDayId) != null) {
    return getEpgDayPage().jobDayDrivers(jobDayId).getAllRowsInRange();
    else return null;
    jobDayDrivers returns RowIterator. From this I call getAllRowsInRange which returns a Row[]. The table consumes this as a value, and lists the values as I want.
    Since the table is using Rows for its rows, I am guessing that it would have access to #{row.rowKeyStr}, or at least #{row.<pk>} which would allow you to programmatically set the current row using code like the following:
    public static boolean setCurrentRow() {
    // BindingContainer bindings = getBindings();
    OperationBinding operationBinding =
    // bindings.getOperationBinding("setCurrentRowWithKey");
    (OperationBinding)EL.get("#{bindings.setCurrentRowWithKey}");
    Object result = operationBinding.execute();
    if (!operationBinding.getErrors().isEmpty()) {
    return false;
    return true;
    You could call this as part of code in a pages backing bean behind a button or link.
    Hope this helps somebody.
    By the way example #71 was to get a detail set of rows from a master row value and display the detail set in the master row of an af:table.
    You can find this and other examples at http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html

  • 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

  • Report with multiple Detail Area

    Hi All,
    Please see the Report pointed to the link below:
    [Report with multiple Detail Area|http://us.share.geocities.com/felix5ac/fairway.jpg]
    Some Explanations:
    ========================
    (1) The line with "ABCDEFGH..." is variable data coming from the database in the Detail Area
    (2) The lines with "WBLNX'" "123, 123.12", 
                             "WBLNX'"
       are variable data associated with the same Heading: "ABCDEFGH..."
    (2b) There can be multiple lines of data in the detail area (i.e. 1 or more "ABCDEFGH..." and the associated WBLNX and numbers...)
    (3) Item Code Descriptions ==> is a Header Info
    (4) ARL ... and FPHI... ==> are variable data and lines in these area can be 1 line; it can be 4 lines; it can be 10 lines...
    (5) Lines FROM "Artwork Procedures..." to the the end of the page are static.
    QUESTION:
    ===================
    How do I best design these Report with the multiple detail areas? Again, please see link of the Report above...
    Thanks and Best regards,
    Felix

    Hi Felix
    You can place the less detailed fields in the regular sections of the report and wherever you require multiple lines you can use the subreports.
    Hope this helps.
    Regards
    Nikhil

  • 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|
    \----------------/\----------------/

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

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

  • ADF 10.1.3: Simultaneous insert of Master and Multiple detail records

    Hi,
    I'm trying to implement an Insert page (JSP document) having a Master table form and Multiple detail records grid with a Pop up to insert Detail records into the grid.
    The user should be able to input Master record details, then Detail records one by one, and finally insert all into the database.
    I'm wondering how this could be done using the Drag n drop feature of ADF (with ADF faces, JSF and Toplink) to the maximum extent.
    Please give me a rough guideline on how this could be done.
    Thanks in advance
    Vikas

    Anyone???

  • One Master with Multi Details on separate tabs

    Hi all,
    I'm trying to figure out how to get a single master record on the main page and then below that 5 tabs with a separate detailed table on each tab.
    I'm trying to modify the "page with 2 level tabs" template, but unfortunately I am not familiar with the syntax and everything keeps breaking. Would anyone be able to share the syntax to do this?
    Also I am creating multiple detailed tabular forms - are there any shortcuts on how to do this? Or do I just have to manually create each detail after the first?
    Thanks!
    Jen

    Hello,
    Take a look at this example http://htmldb.oracle.com/pls/otn/f?p=11933:55
    It has inpage tabs based off of regions
    Carl

  • Upload vendor master with multiple phone numbers through LSMW

    Hi,
    I am trying to upload vendor master data with multiple telephone numbers. I am using BAPI BUS4001 , method SAVEREPLICA . It has allow me add only phone number. Is there any workout to short out this issue?
    Thanks in advance.
    Regrads,
    Suresh Yerra.

    Dear All,
    the telephone structure in bapi is a table. so append each telephone record to the table for multiple phone numbers.
    Thanks,
    Suresh Yerra

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

Maybe you are looking for