3 Page Master Detail Wizard

Using the Create Page wizard to create a 3 Page Master Detail by selecting the "Edit detail on a separate page. Resulting pages are:-
1. Report on Master page,
2. Master Detail page (allows maintenance of Master row)
3. Maintain Detail page
However the linkage between the Master Detail and Maintain Detail pages are suspect along with the resulting Maintain Detail page.
On Master Detail page, displaying an existing master row, the user wants to create a detail row - pressing the [Create] button for the detail does navigate to the Maintain Detail page BUT it does not pass the primary key ID value of the Master row which was displayed.
Also when the user presses the edit details from the Master Details page then why should the displayed detail's lookup master primary key value ID updateable, if APEX is shielding the users/developers from the alleged problems of natural keys and leaning (supporting) surrogate keys then why is the detail's master key value ID updateable?
Also is there any examples out there which show the best way to implement Master with many details and also Master > Detail And Detail of the Detail. In the tutorials we are only exposed to simple data models that only have one level of details.
Thanks

Hi,
I am using the Create Page wizard, specifically the Form, Master Detail with Edit detail on separate page (as opposed to edit details on same page as master using a column report) to create a "3 Page Master Detail" as per wizard feedback.
Take for example the table Suppliers (master) and Supplier_Contacts (details) as a simple example.
Page 1 - Lists Suppliers as a column report on the Suppliers table with an edit icon on the P1_SUPPLIER_ID page item. Pressing edit icon will navigate to page 2 passing the P1_SUPPLIER_ID value as a parameter. Pressing the create icon will also navigate to page 2 but will not pass a P1_SUPPLIER_ID value.
Page 2 - Supplier & Contacts (Master Detail) page, permits edit (insert, update and delete) of Suppliers (master) and also displays the Supplier_Contacts (details) rows for the supplier_id of currently displayed suppliers row. The displayed Supplier_Contracts have an edit icon that will navigate to page 3 passing the supplier_id and contact_id for the selected supplier_contacts row. Also has a create button on the detail Supplier_Contracts region which will navigate to page 3 BUT the wizard has not passed the P2_SUPPLIER_ID value as a parameter as the data model and user action dictates.
Page 3 - Supplier Contacts (edit details on a separate page). My observation is that the Supplier_ID (foreign key to Master Suppliers table) is displayed as text item and is updateable when navigated from page 2 as an edit details transaction/event. Why on earth allow a user to select and navigate the Supplier and then the Contact to edit and then allow the user to update the master foreign key? Similarly if the user has selected and navigated to the Supplier (master) to which they wish to add a Supplier Contact (detail) why is the supplier_id (master PK ID) not passed to the edit details page and the supplier_id also non-updateable.
Hope this explains it a bit better.

Similar Messages

  • Master Detail Wizard and User Interface Defaults

    Trying to create a master/detail form (on one page, no report).
    1. Wizard is giving the option to use User Interface Defaults for the master table, but not for the detail (I don't want to for either) - is this the expected behaviour? If so, why the inconsistency? Will/can this be changed in the future?
    2. Despite selecting NOT to use UI defaults, and entering new region titles, wizard is creating default region titles using the UI defaults. Is this a bug?
    3. Supplementary: Is it possible to get rid of UI defaults?
    HTML DB 1.6.0.00.87

    I asked about this last month:
    Master Detail Wizard and User Interface Defaults
    with no response.
    Anyone?

  • Master Detail Wizard: Cannot Redirect Detail Form to Detail Form 2

    Dear all,
    I created a Master Detail Report Forms using wizard where Master Report has a link to its Detail1 form, which has a link to its Detail2. However, the page redirection didn't work from Detail1 to Detail2 whereas Master to Detail1 worked.
    I checked the region button in Detail 1 that did the redirection, I didn't find anything wrong (I think).
    Suppose Detail1 is page 210 and Detail2 is page 220, The following is my configuration:
    - Under "Action When Button Clicked" tab:
    1. Action is set to "Redirect to Page in this Application"
    2. Page is set to 220
    3. Request is left blank
    4. Clear Cache is set to 220
    5. Set These Items is set to
    P220_TICKET_ID6. With These Values is set to
    &P210_TICKET_ID.7 Database action is set to
    - No Database Action -Is there any other place that I should check that might effect the redirection? Please advice.
    I'm using Apex 4.0.2
    Best regards,
    Val

    The answer to this problem appears to be that there is a bug in HTMLDB 2.0 (at least thats what I'm thinking) in that it is not handling dates correctly when passing them to the detail form. Once I modified the date column in the detail form, and formatted it with TO_DATE, it all worked fine. I would think the wizzard would do this. Oh well...
    Robert

  • HTMLDB 1.6 Master Detail Wizard???

    Hi People,
    Is there any wizard to create a master/detail application in HTMLDB 1.6???
    Thanks

    "403937"
    You can create master detail forms in 1.5, but you'll have to do it manually. Here is viewlets that shows one approach:
    http://www.oracle.com/technology/products/database/htmldb/viewlets/master_detail_short_viewlet_swf.html
    Sergio

  • Search Page -- master/detail or hide/show??

    Hi Gurus,
    I have a search page, i am doin manual search ie i m passing query criteria dynamically. I have a result table which shows the result.
    Now the requirement is Some orders hvae Notes[ this notes information to be display below the corrosponding order row with some colspan properties ( i mean the notes is stored on multiple column in database)]
    right now i am using table to displaying the result. I am confused how to go forword to implement notes as described above.
    Can anybody pls guide me what exactly i hvae to do next?
    Regards,
    Ram

    Thanks Sumit,
    but the problem is whatever the order have Notes. should be displayed below that order row automatically without user interaction.
    Regardsm
    Ram

  • Weird Problem with Add Row Button in Master Detail Page

    I have a page that was created with a Master Detail Wizard. When I click the Add Row button on our Production Environment, the row counter increments BUT no blank row shows on the screen.
    In our Development Environment, when I click the Add Row button, a blank row appears as expected. Thinking there was some problem with the production app, I exported the Dev version and imported into Production. Still no blank row.
    Thinking perhaps it had something to do with the data, I copied our production application data back into the development application tables. Still, the development app creates the blank row where the production version does not.
    I even used the same browser window for both environments and still get the same results. This was working fine in production then just stopped one day.
    The only clue I have is that the Add Row WILL work if the Master Record has no details or less than a page worth. It seems to happen when the detail records are more than one page worth. Also, when I click the Add Row button, it goes to the last page of the list (say three pages of 10, 10, 6) but no blank row shows up. Again, works fine in the development environment no matter how many pages.
    Any ideas or suggestions why this is happening? Could there be some environment setting that is causing this to happen?

    I have a page that was created with a Master Detail Wizard. When I click the Add Row button on our Production Environment, the row counter increments BUT no blank row shows on the screen.
    In our Development Environment, when I click the Add Row button, a blank row appears as expected. Thinking there was some problem with the production app, I exported the Dev version and imported into Production. Still no blank row.
    Thinking perhaps it had something to do with the data, I copied our production application data back into the development application tables. Still, the development app creates the blank row where the production version does not.
    I even used the same browser window for both environments and still get the same results. This was working fine in production then just stopped one day.
    The only clue I have is that the Add Row WILL work if the Master Record has no details or less than a page worth. It seems to happen when the detail records are more than one page worth. Also, when I click the Add Row button, it goes to the last page of the list (say three pages of 10, 10, 6) but no blank row shows up. Again, works fine in the development environment no matter how many pages.
    Any ideas or suggestions why this is happening? Could there be some environment setting that is causing this to happen?

  • Search Panel in Master-Detail Page

    Hi experts,
    I've stuck to a wierd problem, where i've implemented a master-detail relationship in a page. This works fine.
    I've also created a search page seperately for this. But now, i'm confused on how to add an item into the searchPanel which would be mapped with a detail attribute.
    For E.g:
    ===============================================================
    SearchPage: (1st Page)
    Item1 __________________
    Item2 __________________
    Item3 __________________
    GO CLEAR
    ResultsTable:
    Item1 || Item2 || Item3
    ==============================================================
    CreatePage: (2nd Page)
    Master Details.... CANCEL APPLY
    Item1 ____________________
    Item2 ____________________
    Item3 ____________________
    Details .....
    Item4 || Item5 || Item6
    CANCEL APPLY
    ===================================================================
    **Now i wanna add "Item4" into the search panel of the SearchPage. I hope its clear to you, in case not, just poke me once.
    Regards
    Ari

    Oh !! Gosh Keerthi,
    I know that, how to add attributes into the searchPanel. U're not getting the pulse of the problem. Lemme explain it once again...
    I've got two VOs .. Lets say !! MasterTableVO and DetailTableVO.
    Now in the "SearchPage", i've referenced only the MasterTableVO from advancedTable and got simpleSearchPanel on advancedTable where i've 3 items ITEM1,ITEM2,ITEM3 (these 3 r MasterTableVO attributes.)
    **As this is a master-detail page .. so for each master table record, there r multiple detail records entered in the 2nd Page.
    Now supposedly, i wanna search only those master detail records in the SearchPage which contains a certain "XYZ" value for the ITEM4(this is in DetailTableVO) in the detail records.
    So, To your inquiry .. No, Item4 doesn't exists in the VO referenced in the advancedTable of the SearchPage.
    Regards
    Ari :)

  • Questions on Master-Detail HTMLDB HOW-TO

    Hi all
    I have created a 3 page application based on the master detail how-to given at http://www.oracle.com/technology/products/database/htmldb/howtos/index.html
    Instead of DEPT and EMP tables I have PERSON and PERSON_ADDR tables. The PK of PERSON is the person_id and the PK of PERSON_ADDR is the person_id and addr_start_dt. Person_id column in PERSON_ADDR is obviously the FK to the master table PERSON(person_id).
    At first I had problems trying to create the pages themselves because the wizard always hides the person_id column on all the forms(and I don't want that,even though it is a sequence number I still want people to see it) , it being the PK, then somehow I managed it to display the person_id by replacing the EDIT link with the person_id itself. Now if a person already has an address and I click on EDIT then it copies the person_id values and others to the next page and all looks good but when I try to create a new address it does it ?? (It should take across the person_id as well)
    My PERSON report is on page 1, when I click edit against a person it takes me to page 2 where I can see+change all the person details plus I can see the person_addr details. When I click edit against a person address it takes me to page 3 and I can edit all the address details nicely copied to the new page but when I click CREATE on the page 2, then all the fields appear as NULL on page 3( all the fields but the person_id should be null here). How can I fix this ?
    Also, for my person address I would like to validate the address dates , there should be no overlapping start and end dates for a person's address. How to do this ? I think I will need to create a function to which I pass the person id and the new start and end dates and this function returns error message,if any, or null. I had a play around with validation and I think I need to use "function returning error text", what should I put in the "validate expression 1" box then...just something like
    begin
    my_function(param_1,param_2)
    end;
    If yes, then what variables would store the new start date and new end date of an address.
    Lastly, for every table do I have to user a sequence number or a trigger to define a primary key, what if the primary key is just a character code and I want the users to add it ?
    Thanks a lot in advance !!

    thanks Marc.
    Yes you are right, I used the 1.5 viewlet. I will try the master-detail wizard now.
    With the primary key problems, for things to work nicely in HTMLDB, do you suggest each and every tables should have a sequence number generated primary key ? We have some tables for various statuses like ACTIVE,CLOSED where these codes themselves are the primary keys, so you suggest making these codes unique keys but still have a sequence number PK ? Also when I want the users to enter the primary key themselves I will let them enter new ones but not update existing ones, so data entegrity is maintained.
    I was able to work out how to create validations using "functions returning error text" but my problem is I need to be able to compare what the user has just updated/entered with the data that already exists in the table. I have a table called person_Address having columns like person_id, start_dt,end_dt and various other fields. The primary key is person_id and start_dt and I need to put a validation which avoids any overlapping addresses. Overlap as in there can be only 1 active address for a given start and end date range. Does HTMLDB has something like :new.start_dt the way we can write database triggers ? Please suggest a way to do this.
    Lastly, how does HTMLDB handles error messages raised by table triggers. Can they be shown along with the item on the page as we can with the other HTMLDB validations ? I have many tables with all sorts of triggers and if any validation fails I generally do...raise_application_error(-20001,get_my_message(234));
    get_my_message function returns the message text for message number 234 . Will this message be displayed somewhere or not ? Do I have to duplicate my validations , once in the triggers and then in HTMLDB as well ?

  • Master-detail form in HTML DB

    Is there any way to create a master form with multiple detail tabs on the same page? This can be easily done in Oracle Forms by creating a master block and several child blocks on the same form.
    Thanks.

    Andy,
    The master-detail wizard generates only one detail tabular form or report. When using the master-detail wizard, you’re asked whether you want to edit the detail records on the same page as the master record using a tabular form, or if you want to display the detail records as a report with links to a form page that lets you edit the detail records individually. If you want to have more than one detail report on your page, you can easily do that by adding additional reports manually. However those reports can’t be tabular forms, because you can only have one tabular form per page. So those detail reports need to link to form pages, where you then can edit your detail records.
    Regards,
    Marc

  • Master detail form issue

    Hello,
    I am unsure if this is a bug or how I'm doing things. I'm using version 4.1.
    I am creating a master/detail report (on the same page) using the wizard to create the page. I have no problem creating the page and it works. The only changes I make to the detail region (which is a report) is to set it to display one record at a time, enable partial page refresh and change the layout to a vertical list including null columns. Essentially I want to see one record at a time. I can certainly page through them one at a time. However if I press "Add Row" it creates a new blank record below my existing one. If I keep pressing "Add row" I keep getting more blank rows. Shouldn't this blank row overwrite the currently displayed row so that there is only one row at any given time (whether its blank or a populated line). If I'm saying I only want one shouldn't it only ever display just one record regardless of whether your adding or reviewing existing detail records. It seems to me that if I tell it I only want one row, it shouldn't allow me to keep adding rows indefinitely which end up getting added to rows already on the screen. On a vertical listing with a lot of fields, you could end up scrolling for days.

    Hi -
    My assumptions are:
    1) That you have created Master/Detail form with both Master and Detail regions on the same page.
    2) The problem of NOT seeing the Detail happens when you are inserting (not updating) on Master,
    in other words when you are creating a new user in Master section.
    The Detail section (as created by Apex Master/Detail wizard) is a Report with a Condition set for display:
    "Value of Item in Expression 1 Is Not Null" with Expression 1 populated with PK of Master.
    So, change this condition to None and empty Detail section will appear in Create mode.
    Note that you must now set the Form object that holds the PK for new Master record by some means,
    (maybe a Page Process or such) before the Save is done, otherwise Detail record will not have FK.
    Also you are going to have to play with the Conditions on the ApplyMRU and ApplyMRD Processes created
    by the wizard to make sure they are only firing in Create mode when the Save for the whole page is submitted.
    Lastly you can clear the values on the page with a Process of type "Clear Cache for all Items on Pages" that fires
    last after page submission, again this may need a Condition to prevent clearing items before you are ready...

  • IR Master Detail

    Hello ,
    I am newbie , I've tried to use Master Detail by wizard , i want to use IR report as a master report , and in the detail page add new region tabular form for the detail table , how can i do that ?
    Thank you
    Maie

    Hi Maie,
    By default, when you create a 2-page Master Detail form via the Create wizards, the first page contains a Classic Report, and the second page contains a form region for editing the master table data, and a Tabular form region for modifying the detail table data. If you wish to use an Interactive Report instead of a Classic report on the first page, use the "Migrate to Interactive Report" option in the Tasks region to the right of the Edit Region (pg 4000:4651) page to switch the Classic to an Interactive Report.
    I hope this helps.
    Regards,
    Hilary

  • Master Detail FK Problem

    I have created a Master/Detail set of pages. Using just the wizard. This is the option that creates 3 pages:
    1-Master Page
    2-Master Page detail, show a summary of the detail page
    3-Form for detail
    The data is being added to the database but the Master Page foreign key (master table fk) is not populating at all. I can see the data in the table, but the FK that points back to the Master table is blank.
    Having a real problem with this, please advise.

    Steve,
    Firstly, good luck for Gustav, keep your head down and hope it doesn't hit too hard. I was just in New Orleans for ODTUG and obviously would hate to see you guys go through something like that again.
    Secondly, I was just looking through the patch notes for Apex 3.1.2, and spotted these bugs had been fixed -
    6999393 - Master Detail Wizard creates processes with incorrect sequence
    7013435 - MRU process in Create Application Wizard-generated master detail not working correctly
    7016267 - 3 page Master Detail should not allow edit of Foreign Key Field on Detail PageI'm not sure if any of them directly related to your problem, but it could be worth looking them up in Metalink (those are the Bug numbers) to see if they are, or alternatively do the upgrade and see if it fixes your problem.
    John.
    http://jes.blogs.shellprompt.net
    http://www.apex-evangelists.com

  • Master-Details Application

    Hi,
    There are many treads about Master – Detail wizard using two or more details table. I built a demo application on http://htmldb.oracle.com/pls/otn/f?p=26372.
    This application is a demonstration using Master Detail wizard, views, and popup pages. “Emp Address Detail” region is based on a view, which is constituted of two tables.
    One should build a view according to the business logic.
    Click on “Demo for Master-Details” on Navigation menu.
    Suppose that there are relations One to Many between one master and two or more details tables.
    One can use two regions on a page. First should be a form region for the master table and second one should be a report region with several links.
    1.1. Create a view of those two or more details tables. That is one master and one details view.
    1.2. Create a Master Details form. The details form should be one of details tables.
    1.3. Go to Edit Region (Details Region) and change SQL Query (updatable query) to SQL Query.
    The Details form became Details Report.
    1.4. Change Report Region Source from details table query to the view query.
    1.5. Duplicate columns which are links and reorder them. Replace their header names with “ ” for instance.
    1.1. Into Column Attributes/Column Link/Link Text pick an icon.
    1.7. Select for Attributes/Column Link/Target “URL” for table Emp_Address and into URL field type:
    javascript: popupURL('f?p=&APP_ID.:1003:&SESSION.::NO:1003:P1003_ID:#ID_ADDRESS#','Link','scrollbars=yes,resizable=yes,width=625,height=350,left=25,top=150');
    1.8. For Emp_Course table select Attributes/Column Link/Target “Page in …” and type 1004 for instance.
    Now the page has one form with Next and Previous buttons for the master table and one report for the Details view with two or more links. Pop-up window with an edit detail table form appears when one click on a link (icon).
    Konstantin

    I think this is the same problem I am having.
    I have 2 pages: page1 is a simple report
    page2 is a master-detail form
    on Page1 a column is a link to page2
    Everything at first seems to be working untill I click
    on the create button on the master-detail report to create
    a new master record, the master report disappers.

  • Master detail DML

    Hi,
    I am using ADF and JSF .
    I have a master detail screen and in the header part, it shows 10 records at a time. In the detail part, there is an insert button for users to create new records. Clicking the insert button goes to a new page. After entering the required input vaues and clicking the save button, it will go back to the orginal page.
    My problem is : for example, when a user is in the page 4 of the header part. For a speicifc header record, he presses the insert button to create a detail record. But after clicking the save button, it goes back to the orginal page but the header part is in the page 1.
    What can I do so that after creating a record, the header part is still in page 4 ?
    Many thanks in advance.

    Marc,
    ok, I won't use APP_SESSION as well then.
    I have managed to get the first 2 pages (Master & Detail Report) running but now I can't edit the Detail Table items with the following Oracle Error (with debug output):
    0.04: Computation point: AFTER_HEADER
    0.04: Processing point: AFTER_HEADER
    0.04: ...DML_FETCH_ROW (AFTER_HEADER) F|#OWNER#:ORBIS_CLASSIFICATION:P3_CLASSIFICATION_ID:CLASSIFICATION_ID
    0.05: Show ERROR page...
    0.06: Processing point: AFTER_ERROR_HEADER
    Error Unable to fetch row.
    OK
    0.06: Processing point: BEFORE_ERROR_FOOTER
    ORA-01722: Ungültige Zahl (Invalid number)
    0.07: ...Determine if user ADMIN with SGID 818101361667739 can develop application 112 in workspace 818101361667739
    What does that mean?
    Thanx,
    Gerhard

  • Master-Detail Primar key usage

    I am using the Master-Detail wizard in APEX, but am not able to pass the existing Master KEY to be used in my Detail part. and I receive error:
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process.
    Will appreciate any one who can help,
    Mehrdad

    For clarification:
    I am exclusively selecting (or entering) the data for the Master KEY -- that is being used in detail part --, I get the above mentioned error.
    So I am looking for
    1- passing the value
    and
    2- adding to the detail table -- that I get the error
    Thanks!

Maybe you are looking for

  • How to show Open Sales Orders only in a report?

    Hi, I am working on a Business Objects report to show open sales orders. Here i pull data from a RapidMart universe for which data comes from SAP. I just wanted to know which object or field in SAP can/will differentiate whether a particular sales or

  • Text box not showing full text

    Hi everyone I have a text box which i am using to display the path of a perticular file. but if the path is long then is doent get displayed on the text box which is of specific dimension. I cannot change the dimensions of the text box coz it will gi

  • How to modify Fileadapter filename with val from JMS msg using xsl?

    In my case I need to name the file based on information received in a JMS message. I would like to receive an xml document from a JMS queue, the document will contain content as well as the name of a file to be saved off. I found references to someth

  • Another CS6 build questions thread

    Hi guys, My first post here, I've been reading lots on here today thanks for all the info!, I'm building a new edit of, mainly for pp & ae cs6. I think I'm there with components but would love to hear your opinions and experiences before I click the

  • OCCI problem with Borland

    I try to compile OCCI example with Borland C and receiving this error in occiCommon.h: typedef OCCI_STD_NAMESPACE::basic_string<utext> UString; 1) Too few arguments in template class name 'basic_string' 2)Declaration terminated incorrectly