How to create a master detail form on same page in apex 4.2.1

Hi All,
i need to design a master detail form on same page i am not finding an option in wizard from where i can do that.
will appreciate your suggestions.
Thanks

Hi James,
I think that Mike is suggesting that you create a SQL View over the table and join together the individual primary key values into a single, unique, pseudo primary key. You can still include the individual columns in the SQL but you can then use this new column as the primary key on a form. However, you would also need to create INSTEAD OF triggers to handle inserts/updates/deletes as SQL will not allow you to update tables through a view. (See: [http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/create_trigger.htm#i2064426] for the Oracle details on this or Re: How to update view resp. table for an example within Apex).
Ideally, though, you should only really need one key column - is there any need for four?
Andy

Similar Messages

  • How to create a master detail form using single table

    Hi,
    how to create a master detail form using single table.
    Regards,
    M. Satish

    Hi
    how to create a master detail form using single table.Make the Master ur pks the details the rest of ur data base field in the detail it's a mater of organizing fields on a form M-Detail...
    Now What ?
    Regards,
    Amatu Allah

  • Trouble Creating a Master-Detail Form

    I am trying to create a Master-Detail Form for two tables: Employee and Employee tools. I am using the wizard to create the form. I am just using the defaults and haven't added any code. The form updates the detail rows fine, but I get an error every time I add a new row. Below is an excerpt of the error. It appears that the Checksum is changing. Since this is generated code, is there a bug in APEX. Any thoughts on how to overcome this?
    Thanks,
    JOhn
    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. current checksum = "A884FA378C851786DDFE3A33709CB23C", item checksum = "EF2E77BFA1386ECCC11B7C3B2A464E60"., update "EMPLOYEES"."GLASSES" set "FK_PAYROLL_NUMBER" = :b1, "PURCHASE_DATE" = :b2, "OPTICIAN" = :b3, "COST" = :b4, "CHECK_NUMBER" = :b5

    Hi,
    You can have multiple regions with data from different tables on a single page.
    It all depends on the design of your database and pages, how you're going to solve this. Sometimes you need to create a database view to select data from multiple tables, sometimes you'll just create more than 1 region on your page.
    Just try and play a little with Apex to learn some of the tricks. Also the built-in help is very good. You can select a 2-day developer guide to get a feeling of what is possible.
    Good luck!

  • Need to create a Master Detail Form

    Hi Gurus,
    I have a requirement to create a Master Detail Form. As per my requirement I have a list of Invoice Numbers and once I click on a Invoice Number a new form should open and that Form should contain two regions:
    1. Master
    2. Detail
    1. Master Block should have the Invoice Header Detail which is non-updatable.
    2. Detail Block should be able to perform create, update and delete the lines from here. This detail block should have multiple lines so that user can enter data to create new records in it.
    Kindly let me know your valuable inputs on this. Please share any document, site or any other information on this.
    Thanks,
    Sandy

    Normally, you would create 2 EOs say a MasterEO and DetailEO
    Then Create an Association Object Between them based on the PK-FK relation say MasterToDetailAO
    Then create 2 VOs Based on the 2 EOs already created, say MasterVO and DetailVO
    Then create a ViewLink between them, MasterToDetailVL
    Then add the master VO to ur AM
    And Attach the VL created to the instance of the MasterVO in the AM.
    So the DetailVO will be now linked to the MasterVO via the VL
    U just need to query the master records and the details will automatically be displayed

  • Auto Query in Master Detail Form using dynamic page doesn't work

    I created a Master-Detail form, and implement AutoQuery using a dynamic page
    with the following code :
    <HTML>
    <BODY>
    <ORACLE>DECLARE
    nre_ VARCHAR2(100);
    BEGIN
    nre_ := emp_nre;
    if nre_ is not null then
    net_portal.Popula_Agregados(nre_);
    net_portal.Popula_Docs_Agregados (nre_);
    htp.p('<iframe id=myFrame name="myFrame" frameborder=0 width="250%"
    height="300"
    src="/pls/portal/PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=
    3
    388118140&p_arg_names=_show_header&p_arg_values=NO&p_arg_names=_cad_nre_cond&p_a
    rg_values=%3D&p_arg_names=cad_nre&p_arg_values='||nre_||'">
    </iframe>');
    end if;
    EXCEPTION
    WHEN OTHERS THEN
    htp.p(SQLERRM);
    END;
    </ORACLE>
    </BODY>
    </HTML>
    It works fine when we access the first time to the page, but if i press the
    save button after inserting or updating a detail record, the header record is
    lost. How can i avoid this situation ?

    I changed query:
    select
    Replace(
    '<img src="#IMAGE_PREFIX#ed-item.gif" border="0" alt="EditMap" usemap="#editmap***id***"></img>
    <map name="editmap***id***">
    <area shape="rect" coords="0,0,16,16" href="http://apex.oracle.com/pls/otn/f?p=&APP_ID.:'
    || decode ( type, 'FOLDER', '33', '22' )
    || ':&APP_SESSION.::&DEBUG.::P'
    || decode ( type, 'FOLDER', '33', '22' )
    || '_ID,P'
    || decode ( type, 'FOLDER', '33', '22' )
    || '_CALLING_PAGE:' || id || ',&APP_PAGE_ID." ></area></map>' ,
    '***id***', id
    ) Edit,
    id,
    type,
    name,
    decode ( type, 'FOLDER', 33, 22 ) target
    from tThe idea is - each img uses its own map.
    It works now.
    Check:
    http://apex.oracle.com/pls/otn/f?p=20980:13
    Lev
    Edited by: le on Nov 3, 2010 11:11 AM

  • Master Detail on the same page PHP - MySQL

    Hi,
    Is it possible to create a page using spry master region and call MySQL data into a Spry detail region, like you do with xml data?
    Basically, is there a way to have master detail regions on the same page without using frames?
    Thanks
    Bert

    Thanks for that, very useful indeed.
    But isn't it going to be slow, first transferring the MySQL data to XML then reading XML to display the records.
    What is the advantage other then displaying master detail on the same page?
    Thanks
    Bert

  • Error while creating the master-detail forms

    on creation of a new master-detail form or on edit of a existing master-detail form, i get the following error -
    ******** START ERROR **********
    Thu, 15 Mar 2001 23:02:16 GMT
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "CC_INTRANET.WWV_BIND", line 56
    ORA-06512: at "CC_INTRANET.WWV_UI_LOVF", line 3123
    ORA-06512: at "CC_INTRANET.WWV_UIFORM_BUILD", line 2850
    ORA-06512: at "CC_INTRANET.WWV_UIFORM_BUILD", line 5567
    ORA-06512: at line 8
    DAD name: cc_intranet
    PROCEDURE : CC_INTRANET.wwv_uiform_build.show_header
    URL : http://webdb.us.colorcon.com:7777/pls/cc_intranet/CC_INTRANET.wwv_uiform_build.show_header?p_wizard_mode=MASTER&
    ********** END ERROR ********
    any ideas anyone ... ?
    thanx in advance ...
    null

    more information on above -
    i upgraded webdb 2.2 to portal 3.0.6 and the new master-detail form is been created in the upgraded site.
    pls reply on this.
    thanx a bunch
    null

  • How to create a master detail from using jdeveloper

    i am using developer 9.0.2 is it possible to create a master detail from using developer like in forms and also the detail form should be in tabular form
    thank u

    Yes. Just use BC4J and JClient
    Frank

  • Three master detail on the same page

    Hi
    I generate master-detail pages (master and detail in the same page) and it works very well, but I can't generate three master detail (master-detail and the detail with other detail, three levels of tables) on the same page. How can I do it?
    Thanks in advance
    Liceth

    Liceth,
    You cannot generate this. You can add the third level post-generation using drag and drop.
    Steven Davelaar,
    JHeadstart Team.

  • How to clear a master detail form in adf

    hi
    I am using j developer 11 g (ADF). I have a master detail page. i want to clear all data when the form loading first time
    I used an lov for searcching the data. here am called createInsert method for clearing the data from form on
    pageload, but am going for searching the data for the first time the searched data are inserted in to database
    as a new record . How i rectify this problem. Ultimate my aim is to clear the date when the page is loading first time
    I also try with the following code also
    String amDef = "model.masters.MastersAM";
    String config = "MastersAMLocal";
    ApplicationModule am = null;
    am = Configuration.createRootApplicationModule(amDef, config);
    ViewObject vo = am.findViewObject("TestCaseNewVO");
    // vo.setWhereClause("Id=0");
    //vo.executeQuery();
    vo.clearCache();
    Regards
    Rajesh
    Edited by: [email protected] on Apr 29, 2009 10:34 PM
    Edited by: [email protected] on Apr 29, 2009 10:35 PM

    Hi Chan Kelwin
    I tried with ur code. But in the form loading first time the form controls are not cleared
    i write the code in my page load. I take the query from view object runtime. it also
    working fine but that is not reflected on the form. i used to drag and drop the detail view
    and used to master-detail option for binding in the form. But still i have the same problem
    i used the following code
    @PostConstruct
    protected void OnLoad() {
    if (!isPostback()) {
    // CreateNewRecord();
    FacesContext fctx = FacesContext.getCurrentInstance();
    ValueBinding vb =
    fctx.getApplication().createValueBinding("#{bindings.TestCaseNewVOIterator}");
    DCIteratorBinding userView = (DCIteratorBinding)vb.getValue(fctx);
    String amDef = "model.masters.MastersAM";
    String config = "MastersAMLocal";
    ApplicationModule am = null;
    am = Configuration.createRootApplicationModule(amDef, config);
    ViewObject vo = am.findViewObject("TestCaseNewVO");
    ViewCriteria vc = vo.createViewCriteria();
    ViewCriteriaRow vcr = vc.createViewCriteriaRow();
    vcr.setAttribute("Tid", "IS NULL");
    vc.add(vcr);
    vo.applyViewCriteria(vc);
    System.out.println(vo.getQuery());
    vo.executeQuery();
    }

  • Problem with Master -Details forms in seperate pages

    Hi ,
    Below is the scenario:
    I have Institution and a department tables where there is a foreign key relation between the tables. So now i have two entity objects for the 2 tables and 2 view objects(DepartmentView,InstitutionView) from the entity objects.
    I also have a view link between them.I made a master-detail relation between them in the datamodel using the view link.So my appmodule now has getters for the department view,institution view and viewlink.
    I now have a jsp page "createInstitution.jsp" which contains a form for the institution , i have a "next" button on the same jsp which calls a method in my appmodule class .This methods just inserts the record into the Institution view. In this method i am able to see what the user entered in the form by getting the viewrow record like the below code :
    InstitutionViewRowImpl newInstitutionRow=(InstitutionViewRowImpl) getInstitutionView().first();
    The next button navigates to the next page "listDepartments.jsp" which contains the list of departments that are added. This page has a button "Add Department" which takes to to the "addDepartment.jsp" page which shows a form for adding a department. This page also has a button which calls a method in app module class. The method just inserts the record into the view(DepartmentView)
    Here when i say
    DepartmentViewRowImpl newDepartmentRow=(DepartmentViewRowImpl ) getDepartmentView().first();
    the newDepartmentRow is null.
    Also on the addDepartment.jsp form , i had used a output field to see what the parent id was and interestingly the parent id is 75 which is first institution in the database. It should have been "-10" , a temporary id assigned.
    Can someone please tell me what is the problem with my approach?

    I don't understand why you are using a method on your button to insert the record into the table - An Oracle ADF Form will do the insert for you by default without any coding.
    See the create pages in these tutorials:
    http://www.oracle.com/technology/products/jdev/11/cuecards/adf_set_21/ccset21_ALL.html
    http://www.oracle.com/technology/obe/obe11jdev/11/dev_ui/developuserinterface.html#t2s5
    The method that you are calling just returns the first record in the rowset - I don't see how it has anything to do with actually inserting the data into the table.

  • Master/Detail report on same page.

    Hi, I am trying to put together a report (10g HTML DB) and can't seem to put together a master/detail report.
    I would like to have a header, something like
    Project Title -- Project Status etc... for each project. Then below this section
    Project Detail 1
    Project Detail 2
    Project Detail 3
    Loop through the projects
    It's just two tables. projects and details. Details has a fk project.id.
    I tried to do a Form -> Master Detail but it puts them on seperate pages and also allows the data to be edited. I don't need that, this is simply for display.
    This is something I can put together just creating an html table in an anonymous PLSQL block but if ability is there in HTML DB I should probably try it that way.

    Hi,
    This can be achieved by doing something like the following:
    Have a single SQL statement that joins the two tables together. eg,
    select p.project_title,
    d.project_detail1,
    d.project_detail2,
    etc
    from projects p
    inner join details d on d.project_id = p.project_id
    This will provide a flat table with the project title in the first column for all records.
    Then, in the Report Attributes, you need to switch on Column Breaks:
    In the Break Formatting section, set Breaks to "First Column"
    In the When displaying a break column use this format, enter #project_title#
    In the Identify how you would like your breaks to be displayed, select "Repeat headings on break"
    Finally, clear the "Show" tick for the project_title column
    There's probably something you could do to improve formatting etc, but this should give you a start.
    Regards
    Andy

  • How to create hyperlinks to places on the same page?

    This is the question really. I want to have a list of topics at the top of a page as hyperlinks which would then direct readers to an appropriate place on the page (e.g. for FAQ page: list of questions first - as links to the places on the page where they are answered). Is it possible with iWeb?
    Many thanks in anticipation...

    Although not a smooth method Peter Berglund uses HTML snippets to simulate anchors on web pages. He describes his method in his blog here: How to use Anchors in iWeb.
    If you don't have a lot of other widgets on your page it's fairly easy to implement. With other widgets for other purposes it's more difficult but can be done.
    OT

  • How do create different link attributes on the same page

    I am using CSS links for my menu. The links are white, large and bold, but I want an email link to be a different color, font and smaller in size. How can I do this?

    Yow 400 somthing views and no one to help this guy...wow you people are mean....
    Ok just use a class for the email link....
    put a span around that email link
    <span class="class_name"><a>email link</a></span>
    then in the css place the class
    .class_name{
    color:red;
    If this doesnt work then that means the class needs to be more specific example
    span .class_name{
    color:red;

  • How can I insert in the table detail of a master/detail form??

    Hello, I have created a master/detail form from the assistant, and with the code generated by APEX I do not manage to insert a row in the table detail, I press the button 'Add Row' and refill information, when I press the button ' to apply changes ' me the following mistake appears:
    '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. current checksum = "C85B64D53C8D63E9D3EE83B82728DFA3", item checksum = "244B1FED90DF5CC5B0DDB6728F4D02DD"., update "CRM_ADMIN"."ASIGNACIONES_AM_CONTACTOS" set "SECUENCIA" = :b1, "CODIGO" = :b2, "NOMBRE_CLIENTE" = :b3, "NOMBRE" = :b4, "COMENTARIOS" = :b5, "CODIGO_COMERCIAL" = :b6'
    How I can solve and be able to insert in the table it detail?
    Thanks

    Hi Law,
    Text in a shape or a text box will not feature in the table of contents.
    To get a colour behind your titles, type them into your document (not a shape). Format as Heading or some other paragraph style the TOC will recognise.
    Select the title text and Format Panel > Text > Font > Gearwheel > Advanced Options.
    Choose Character Fill Color and choose a colour from the palette (left) or colour circle (right).
    Example Titles (all on the same page for a smaller screen shot).
    Chapter 3 (in a coloured Text Box or Shape) does not appear in the TOC:
    Hint for cheats :
    To give the titles a wider Character Fill Colour, add some Tab characters before and after.
    Regards,
    Ian.

Maybe you are looking for