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

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

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

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

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

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

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

  • Master Detail Form - Problem using built in wizard

    Hi There
    We are working on Application express 2.2.
    We are facing problems for a master detail form using Wizard. The
    details are as follows : >>
    1) Master table : TS_ENTRY_TXN
    trans_id P.K.
    2) Detail table : TS_ENTRY_TXN_DETAIL
    a)trans_id
    b)sub_trans_id Composite P.K.(trans_id,sub_trans_id) & these are
    based on sequences.
    If i try to build a master detail form using the Wizard, the options
    for providing P.K. for master & detail are listed which we used.
    As it is a master detail form, we want to carry trans_id to the detail
    for updations/insertions which doesn't happen.
    The MRU fails with oracle error :
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1,
    ORA-01400: cannot insert NULL into
    ("TS_APEX"."TS_ENTRY_TXN_DETAIL"."ENTRY_ID"), insert into
    "TS_APEX"."TS_ENTRY_TXN_DETAIL" ( "ENTRY_ID", "SUB_ENTRY_ID",
    "SMR_ID", "TASK_ID", "SUB_TASK_ID", "TIME_SPENT", "REMARKS") values (
    :b1, :b2, :b3, :b4, :b5, :b6, :b7)
    Is there any other way to build master detail wihout wizard.
    Could you please suggest us better way to complete this task.

    If I'm reading this correctly, then one of the columns in your detail tables' primary key is also the foreign key pointing to your master table? If that's the case, then that's not supported by the wizard. For the wizard generated master-detail form to work properly, you'll have to have a foreign key column in your detail table which is not part of your detail table's primary key.
    Hope this helps,
    Marc

  • Data block wizard breaks master-detail

    I've encountered the following situation, and I'm wondering if it's a known bug or if I'm doing something wrong:
    1. Open the data block wizard on an existing block that is the "detail" block of a master-detail relationship.
    2. Add one new field to the block. No other changes are made.
    3. When the form is recompiled and run, the master-detail relationship is broken. The detail block contains all the rows in the detail table. Clicking on the rows of the master block does not change the detail.
    Adding a field to the block manually does not cause a problem. The relation is not impacted, and we see no property settings that are wrong. We tried downloading and installing all of the latest patches for forms 6i, and the problem occurs with that release as well. Any ideas?

    I think you do something wrong because I add many fields many times and it works fine.
    Thanks
    Abubakr
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Swartzlander:
    I've encountered the following situation, and I'm wondering if it's a known bug or if I'm doing something wrong:
    1. Open the data block wizard on an existing block that is the "detail" block of a master-detail relationship.
    2. Add one new field to the block. No other changes are made.
    3. When the form is recompiled and run, the master-detail relationship is broken. The detail block contains all the rows in the detail table. Clicking on the rows of the master block does not change the detail.
    Adding a field to the block manually does not cause a problem. The relation is not impacted, and we see no property settings that are wrong. We tried downloading and installing all of the latest patches for forms 6i, and the problem occurs with that release as well. Any ideas?<HR></BLOCKQUOTE>
    null

  • Developing Master-Detail Through Wizard

    When creating master detail form or a single form through Wizard ,it creates the form loads the data But if you try to modify or add a new row it gives following errors
    JBO-26041 Failed to post data to database during update :.....
    DAC-305 Dbaccess commit transaction failed .
    Session1
    JBO-26041 Failed to post data to database
    Please Help

    Sandeep,
    Which version of JDeveloper are you using? Also, which version of the database are your tables on, and do they both have a primary key?
    I know there were restrictions if your database is before 8.0, and your tables do not have primary keys.
    Laura (JDev Product Management team)

  • Wizard generated Master-Detail form issues

    The wizard-generated master/detail forms have several severe usability issues when the "Choose Layout" option is set to "Builder master detail with: edit detail as tabular form on same page".
    Some of these issues are:
    - The form has two Apply Changes buttons, one to save the master row and one to save the detail row. Users find this very confusing. If you save the master row changes, any changes to the detail rows are lost and vice versa.
    - The form has two Delete buttons, one to delete the master row and one to delete the checked detail rows. Users find this confusins also. Clicking the lower delete button discards any other changes that were made.
    - The Add Row button also discards any other changes that were made.
    The first two issues are easily fixed. With a few simple changes to the generated page, I can make it so there is a single "Apply Changes" button that 1) saves any changes to the master row, 2) saves any changes to detail rows and 3) deletes any checked detail rows.
    I cannot figure out how to solve the third issue (that the add row button discards any changes). I can make it so the "Add Row" button saves the changes, but this isn't user friendly either; I don't think any changes should be comitted unless the user specifically presses 'Apply Changes'.
    So far, I thought of several ways to possibly fix this but can't get any of them to work. Some of the ideas were:
    1. The 'Add Row' button could run the automatic row processing and MRU processes, but not do a commit untill/unless Apply Changes is pressed. I don't think this is feasible because http is stateless and connection pooling may be used, so we can't have a transaction that spans http requests.
    2. Move the Add Row process to page rendering so that the detail table always has an empty "add row" row thereby making the Add Row button unnecessary. I tried this, but it looks like the add row process was designed to run during the page processing, not during rendering, and it fails with a divide by 0 error when it is run during page rendering.
    3. Use client-side DHTML (instead of the HTML DB add row process) to add an empty row to the html table (i.e. add row button does not do a submit, it is handled entirely on the client). I tried this, but the MRU process fails because it doesn't expect the added row.
    If anyone has any other ideas on how to fix this problem, they would be greatly appreciated.
    HTML DB solves this problem in the SQL workshop create table wizard.
    In HTML DB 1.6, the "Add Column" button does a submit but somehow saves any changes that were entered.
    In HTML DB 2.0 beta, client-side DHTML is used (my approach 3 above).
    Can someone from Oracle share how the HTML DB create table wizard solves this problem?

    Eric,
    Thanks for your feedback. I’ll add your suggestions to our list of tabular form enhancement request.
    The wizard generates a regular form for the master record and a tabular form for the detail records. As you pointed out, it’s quite easy to customize this to your individual needs.
    Unlike regular forms, there’s currently no session state concept for tabular forms, so you either need to write your data to the database, or you will loose any changes if you e.g. paginate. For the same reason, the “Add Row” button and the associated process is generated so that any changes are saved to the database before adding a new row. Of course the MRU process that is executed on “Add Row” can be removed, if that is the preferred behavior.
    A work around would be to code the DML processes for tabular forms manually, and temporary store the data in HTML DB collections to simulate a stateful behavior.
    In HTML DB 2.0 we started adding DHTML features, such as the create table wizard you’re referring to. Some features, like the pull down menus, will be available to be used in your own applications. Other features, like the DHTML tabular form, won’t be available for custom applications in 2.0.
    Regards,
    Marc

Maybe you are looking for

  • Just updated to OS X 10.8.5 - and got "You can't open the application Adobe Photoshop CC..."

    The full message is "You can't open the application Adobe Photoshop CC because it's not supported on this type of Mac." - why ? I notice people had the issue back in June, but this after the new point update for Photoshop CC - the update was OK but I

  • How to separate BPM 11g from ADF

    Hi all, we are facing with a huge issue about how to separate BPM 11g ADF Task page components from SOA/BPM to a new non-soa ADF managed server. We are ready to move on pre-production server from development enironment and the new environment has two

  • BT Infinity

    I have just had BT Infinity installed. I have an upstairs BT extension in a bedroom which I split with a lead running to another room which I use as an office, where I had a wired Home Hub and a telephone connected. As the wired connection is not req

  • J1IEX T-Code

    Hi, To post the data for RG23C with multiple Line Items in the J1IEX T-code is it advisable to use LSMW or BDC Program. B'cas through LSMW recording method the Multiple Line Items seems to be impossible to upload, and in BDC some of the screen fields

  • Go from responsive project to non-responsive, convert responsive to regular

    I have a responsive design project. I want it to be regular (not in the responsive design structure).How can I convert it to a regular presentation? Thanks.