Master-Detail in UIX-JSP

Hi:
How can i do a master-detail in UIX-JSP similar in functionality BC4J-JSP?. I haven't found an HOW-TO or guide.
Thanks
Marco

Yes this is easily done.
If you have a BC4J project with say Emp and Dept View Objects which are linked via
a foreign key (there should be a BC4J FKDeptnoLink created), then all you have to do
is generate a BC4J UIX JSP application.
In a separate empty project, open the New gallery and select UIX-JSP -> Business Components JSP Application.
Generate a default JSP application for your BC4J components. You can then run main.jsp
to see the app.
To see a master detail view of your app which is based on the Bc4J Link (FKDeptno) just click
on link "FkDeptnoLink" on the left side..
-Chris

Similar Messages

  • Insert Record in Master-Detail by UIX Pages

    I am using Jdeverloper10g v10.1.2 ,ADF,UIX Pages
    My problem is :
    How i can insert a record by UIX Page , Because when i try to inserted a record by click on Create Button there is no action happen .
    So , is there any document can help me in Master_Detail_By_UIX
    with regards
    Naif

    Hi Leo,
    I know that but my application is already set up and I have all the reports and forms in place. However I do not know how to enter an update/insert statement when calling my form. I only can have update or insert.
    for update is working correctly and the reports/forms affected are quite complex I do not want to change anything on it but enter a detail recordset for each record in master table only containing foreign key id and id. then the update statement will work. At the moment I have to save the form (detail table) once to create th primary id and after that I can store values... but that is not feasible for end users...
    Tino

  • Master detail create in jsp

    Hi all,
    I would like to create a form which is a master and details by using struts.
    Order No: 123
    Order Date: 12-12-2004
    itemsID Qty Price
    xxx 12 12
    bbb 11 10
    Order No and Order Date inputted on the previous screen (jsp)
    The user would like to search the order no = 123, then s/he input the details
    How can I do on the jsp and actionForm? What is the actionForm includes?
    Would you mind give some sample code for me?
    Thanks.

    I replied to your other posting.

  • Master Detail BC4J /JSP

    Hi all,
    I am busy developing a small search application.
    For this application I use a Oracle View. This Oracle View has no reference to a primary key. In BC4J I created a entity object and view out of this Oracle View and named one of the attributes as a primary key. I also added a entity object and view out of an oracle table.
    I created a viewlink to display a master detail relationship. When I test the BC4J module I can see the master detail relationship, but when I want to create this master detail with the use of data tags (as the examples in How to Navigate Master and Detail JSP using data tags) I get the error RowkeyValue is Null.
    If I am using the original table as a master which has a primary key everything works.
    I know that Oracle also reference the Primary Key to a RowID.
    Is there any solution to use an Oracle View without a reference to be used in a master- detail relationsship in JSP?
    Thanks in advance
    Email: [email protected]

    You might want to try generating a Complete master detail BC4J JSP application on your BC4J logic
    which contains a view link.
    Once the app is generated you'll see a working example of how to do a master detail BC4J JSP..
    Basically the app will generate a JSP page for your viewlink..
    Here's a real simple example of how to do a master detail BC4J JSPs where you pass the Rowkey as a parameter to a detail page which uses the JBO:Row tag to locate the Master dept record, which then drives
    the detail record location..(since it is bound..)
    This uses a default Emp and Dept tables. Also EmpView3 is a ViewObject which is bound via a link to
    the master DeptView1 View Object.
    Master.jsp
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>
    Hello World
    </title>
    </head>
    <body>
    <h2>
    The current time is:
    </h2>
    <p>
    <%= new java.util.Date() %></p>
    <jbo:ApplicationModule id="Mypackage1Module" definition="Project2.Mypackage1Module" releasemode="Stateless" />
    <jbo:DataSource id="dept" appid="Mypackage1Module" viewobject="DeptView1" />
    <table border="1">
    <jbo:RowsetIterate datasource="dept" >
    <tr>
    <td><jbo:ShowValue datasource="dept" dataitem="Dname" ></jbo:ShowValue>
    </td>
    <td>">detail</a></td>
    </tr>
    </jbo:RowsetIterate>
    </table>
    </body>
    </html>
    <jbo:ReleasePageResources />
    Detail.jsp
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>
    Hello World
    </title>
    </head>
    <body>
    <h2>
    The current time is:
    </h2>
    <p>
    <%= new java.util.Date() %></p>
    <jbo:ApplicationModule id="Mypackage1Module" definition="Project2.Mypackage1Module" releasemode="Stateful" />
    <jbo:DataSource id="dept" appid="Mypackage1Module" viewobject="DeptView1" />
    <jbo:DataSource id="emp" appid="Mypackage1Module" viewobject="EmpView3" />
    <p>
    Notice I bind this page to both master "DeptView1" and the linked detail "EmpView3"..
    </p>
    <jbo:Row id="deptrow" datasource="dept" action="find" rowkeyparam="deptrowkey" ></jbo:Row>
    <jbo:ShowValue datasource="dept" dataitem="Dname" />
    <br>
    <table border="1">
    <jbo:RowsetIterate datasource="emp" >
    <tr>
    <td><jbo:ShowValue datasource="emp" dataitem="Ename" />
    </td>
    <td><jbo:ShowValue datasource="emp" dataitem="Deptno" />
    </td>
    </tr>
    </jbo:RowsetIterate>
    </table>
    </body>
    </html>
    <jbo:ReleasePageResources />
    Hope this helps....
    -Chris

  • How do I - MASTER -DETAIL JSP

    Hi -
    How do I create a simple Master-Detail page in JSP like Oracle Forms type.
    I want to show/enter one master record and multiple child records and let the users enter data. I DO NOT WANT TO CREATE SEPERATE MASTER AND SEPERATE DETAIL JSP PAGE. I want the basic Master-Detail Form like Oracle Forms.
    I am using JDeveloper 3.2
    Thanks for your help !
    Fahim

    In our current release, we dont generate a single-page master-detail editing page. You would are missing an editable data-grid tag for this to be possible. You can create this control yourself using the provided datatags.

  • Master/detail and problem with selected row when errors on detail row

    I'm using JDeveloper 10.1.3.3
    I have a very simple master/detail screen (JSF JSP) where master is departments and detail is employees in the selected department. Some of the attributes in employees are required.
    To department A
    I take away the value of one of the required attributes of one of the detail employee rows.
    Select one of the other departments ie department B
    Get Error message Value required.
    So far so good, but the selected department is B and the detail rows shown is for department A.
    I expected that department A to still be selected or that department B with its row to be shown.
    Edited by: user628847 on 26.feb.2009 04:55

    Hi,
    if (row != null)
    Row masterRow = row;
    vo.setCurrentRow(masterRow);
    // not needed : getMesReponsesPourTiersVO1().executeQuery();
    You shouldnot execute the child VO after setting current row in master VO.
    When the current row is set in master VO, then the child rows will get refreshed automatically.
    Cheers,
    Prasanna

  • Developing Detail Screen in jsp using jdeveper

    Hi all,
    I want to develop a master detail scren in JSP using jdeveloper. I find problems while creating detail screen for the master.
    Can any one help me in fetching data from the table for the detail screen, manipulating(insert/delete/modify) the rows and saving them in to database.
    thanx in advance.

    Java Servlet Specification V 2.2 http://java.sun.com/products/servlet/2.2/index.html
    Java 2 Enterprise Ed. http://java.sun.com/products/j2ee
    JavaDevelopersJournal Feb/2000, Java Servlets:Advanced Features by A.V.B. Subrahmanyam

  • UIX Master-Detail  - Find button does not display detail lines

    Hello,
    We have a master-detail UIX page. Master has one attribute only. When 'Next' or 'Previous' buttons are pressed, the next master-detail records are displayed.
    However, when master attribute's value is changed by the user and the 'Find' button is pressed, the new detail lines are not displayed. Also we get following error:
    JBO-26080: Error while selecting entity for <ViewObject>
    Has anyone experienced this issue before?
    Thanks, Ali.

    Please dis-regard this post. The correct sequence is to click on Find button, enter new value then click on Execute button to query new values.
    Thanks, Ali.

  • Help needed to create a master-detail JSP page using OAF.

    I like to create a master-detail JSP page using OAF. If any help or guide will be appreciate.
    - Kausik

    A Master Detail Page is a basically a game between two VOs(Master and Detail mostly connected through a View Link). You can also have a look at the View Link section in the Dev guide. Page Layouts is one thing which you can take a call yourself.
    Regards
    Sumit

  • Master-detail problem in ADF JSP

    Is there any way I can add a detail record in a master-detail JSP page without having to open a new page?ž
    Milos

    Hi Frank,
    Thanks for your reply. In the application I used weblogic JDBC driver for Sybase when it was developed in 11.1.1.1.0 version.
    The following are the extries in bc4j.xcfg file:
    jbo.sql92.JdbcDriverClass="weblogic.jdbc.sybase.SybaseDriver"
    jbo.TypeMapEntries="Java"
    jbo.SQLBuilder="SQL92"
    Now I have changed the JDBC to Sybase jConnect (jconn4.jar) and driver class is com.sybase.jdbc4.jdbc.SybXADataSource and other entries remains the same as it was before.
    Thanks
    Jalil

  • JSP, getting Master-Detail to work

    JDeveloper 3.2.3
    JSP, getting Master-Detail to work
    - I've made a project with a master table Dept and a detail table Emp via the wizards. Automatically views for both are made.
    - Secondly i created an association between Dept and Emp (based on the field Deptno), the association is exposed to both entities.
    - I followed the Help example 'Creating Maser-Detail JSP Pages Using Data Web Beans'.
    4 Data Web Beans are created with this example
    * NavigationBar Master
    * ViewCurrentRecord Master
    * NavigationBar Detail
    * RowSetBrowser Detail
    The resulting JSP page shows, unfortunately, no link between the master and the details.
    For one department all employees (of all departments) are shown.
    What do i have to do to make the JSP Master-Detail work with JDeveloper
    Thanx in advance
    Lion Smiers

    I resolve my problem to create a third level detail as viewobject as a own instance, without link to second level detail (as I supposed it to work). And manually make a new search with where clause inside working detail iterate loop (below).
    I still wonder, is there any way to automatically update second details current row, which might also update third level details information as sophisticated way?
    my solution to show third level in master-detail-detail information.
    inside first details loop...
    <jbo:ApplicationModule id="MyService" definition="DataBindings.MyServiceDataControl" releasemode="Stateless"/>
    <%-- search criteria from detail --%>
    <c:set var="whereLauseIn" value="MYKEY_ID = '${Row['secondId']}'" scope="page" />
    <jbo:DataSource id="Lausu" appid="MyService" viewobject="ViewObjMyThirdDetailInst" whereclause="<%=pageContext.getAttribute(\"whereLauseIn\")%>" rangesize="-1"/>
    <jbo:RowsetIterate datasource="Lausu" changecurrentrow="true">
    <tr>
    <td >
    <jbo:ShowValue datasource="Lausu" dataitem="Col1" ></jbo:ShowValue> 
    </td>
    <td>
    <jbo:ShowValue datasource="Lausu" dataitem="Col2" ></jbo:ShowValue> 
    </td>
    <td>
    <jbo:ShowValue datasource="Lausu" dataitem="Col3" ></jbo:ShowValue> 
    </td>
    <td >
    <jbo:ShowValue datasource="Lausu" dataitem="Col4" ></jbo:ShowValue> 
    </td>
    </tr>
    </jbo:RowsetIterate>
    <jbo:ReleasePageResources />

  • Master-Detail-Detail JSP/BC4J Sync Problem

    Hi everybody,
    im having a strange problem with my MDD schema in my custom BC4J/jsp page,
    I went through all other topics in the forum but couldnt find any analogue to my specific problem,
    Lets call schema as M->D1->D2
    What I need to do is to navigate my cursor on D1 using a rowkey, the problem is when i use <jbo:ROW ... action="find"> using the rowkey sent by DataEditComponent, it seeks the first row in my data source(in sync with Master) instead of seeking the actual row.
    FYI, the problem disappears when I omit the master ViewObject (normal master detail using D1->D2)
    Any comments appreciated (ofcourse ASAP ;))
    Here is the original code:
    <%@ page language="java" errorPage="errorpage.jsp" contentType="text/html;charset=utf-8" import = "oracle.jbo.html.*, oracle.jbo.JboException"%>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <jbo:ApplicationModule id="SalesModule" definition="SalesWeb.SalesModule" releasemode="Stateful" />
    <jbo:DataSource id="dsContact" appid="SalesModule" viewobject="SContactView1" rangesize="10" itermode="LastPagePartial"/>
    <jbo:DataSource id="dsOrder" appid="SalesModule" viewobject="SOrderView2" rangesize="10" itermode="LastPagePartial" />
    <jbo:DataSource id="dsItemList" appid="SalesModule" viewobject="SOrderItemView3" rangesize="10" itermode="LastPagePartial"/>
    <%
    RequestParameters params = HtmlServices.getRequestParameters(pageContext);
    boolean doRedirect=false;
    String PageID=this.getClass().getName();
    String sessJboRowkey=(String)session.getAttribute(PageID+"_jboRowKey");
    String paramJboRowkey=(String)params.getParameter("jboRowKey");
    if(sessJboRowkey!=null && paramJboRowkey==null && (params.getParameter("jboEvent")==null || params.getParameter("jboEvent").toString().compareToIgnoreCase("create")!=0))
    paramJboRowkey=sessJboRowkey;
    else
    if(paramJboRowkey!=null)
    session.setAttribute(PageID+"_jboRowKey",paramJboRowkey);
    String masterRowKey=params.getParameter("masterRowKey");
    if(masterRowKey!=null)
    %>
    <jbo:Row id="currRow" datasource="dsContact" action="find" rowkey="<%=masterRowKey%>" ></jbo:Row>
    <%
    %>
    <jbo:OnEvent name="update" datasource="dsOrder" >
    <jbo:Row id="myrow" datasource="dsOrder" rowkey="<%=paramJboRowkey%>" action="Update" />
    <jbo:Commit appid="SalesModule" />
    </jbo:OnEvent>
    <jbo:OnEvent name="create">
    <% if(paramJboRowkey!=null)
    %>
    <jbo:Row id="newrow" datasource="dsOrder" action="createinrange" ><%
    try
    { %>
    <jbo:SetAttribute dataitem="*" /><%
    } catch (JboException ex)
    newrow.remove();
    throw ex;
    } %>
    </jbo:Row>
    <jbo:Commit appid="SalesModule" />
    <%
    } //end if %>
    </jbo:OnEvent>
    <jbo:OnEvent name="delete">
    <jbo:Row id="delrow" datasource="dsOrder" rowkey="<%=paramJboRowkey%>" action="Delete" />
    <jbo:Commit appid="SalesModule" />
    <%
    doRedirect=true;
    %>
    </jbo:OnEvent>
    <%
    if(doRedirect)
    %>
    <jbo:ReleasePageResources />
    <%
    response.sendRedirect((String)params.getParameter("originURL"));
    %>
    <html>
    <head>
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <LINK REL=STYLESHEET TYPE="text/css" HREF="bc4j.css">
    <TITLE>Edit Order</TITLE>
    </head>
    <body>
    <% if(paramJboRowkey==null)
    %>
    <h3>Edit Order</h3>
    <jbo:DataEdit datasource="dsOrder" enctype="application/x-www-form-urlencoded" targetURL="SOrderView2_Edit.jsp"/>
    Cancel
    <%
    else
    %>
    <h3>Order Details</h3>
    <jbo:Row id="rowCur" datasource="dsOrder" rowkey="<%=paramJboRowkey%>" action="active">
    <table class="clsViewCurrentRecord" cellspacing="2" cellpadding="3" border="0">
    <jbo:AttributeIterate id="def" datasource="dsOrder">
    <tr class="clsTableRow">
    <td title="<jbo:ShowHint hintname='TOOLTIP'></jbo:ShowHint>"> <jbo:ShowHint hintname="LABEL">##Column</jbo:ShowHint> </td>
    <td title="<jbo:ShowHint hintname='TOOLTIP'></jbo:ShowHint>"> <jbo:RenderValue datasource="dsOrder">##Cell</jbo:RenderValue> </td>
    </tr>
    </jbo:AttributeIterate>
    </table>
    </jbo:Row>
    <%
    %>
    <br>
    <% if(paramJboRowkey!=null)
    %>
    <center>
    <h3>Order Items</h3>
    <table border="0">
    <tr>
    <td ALIGN="right"><jbo:DataScroller datasource="dsItemList" /></td>
    </tr>
    <tr>
    <td><jbo:DataTable datasource="dsItemList" edittarget="SOrderItemView3_Edit.jsp" /></td>
    </tr>
    </table>
    </center>
    <%
    %>
    <jbo:ReleasePageResources />
    </body>
    </html>

    Hi,
    you can use the column- or alias-name of the first query like:
    <dataQuery>
    <sqlStatement name="Q_MASTER">
    <![CDATA[
    select field1,field2 from master_table
    where field3 = 'ABC'
    ]]>
    </sqlStatement>
    <sqlStatement name="Q_DETAIL">
    <![CDATA[
    select field4,field5 from detail_table
    where field6 = :field2 (where field2 is a column of Q_Master)
    ]]>
    </sqlStatement>
    Pay attention that the column-names (aliases) are distinct
    regards
    Rainer

  • Master detail in Jdev10g(using JSP)

    Hi,
    I have created two data pages intended to establish master detail relationsip among it. My first page is a readonly tabular which has prepopulated records in it. I want to a detail record to it for which i have created a link from first data page to second data page which is detail one. when i click on link it sucessfully takes me to input data page(detail) when i enter and click on submit button to save the record it does not and page gets blank.
    Pls help me how to add a record to detail page based on master page.
    Thanks.

    No . It can be a view object based on COURSE + SYLLABUS , but it can NOT be a datacontrol to use it in the jsp as an Input Form drag and drop.
    SO when I create a new view object based on both tables , it is created well. Then I try to generate a new BC based on this view but the option is desabled.
    thank u for response :)

  • Urgent! Simple master detail jsp without ADF.

    We need to develop a master detail page. personal and detail process record for that personal.
    This will work on the web so We are using jsp technology.
    (We are using tomcad so We can't use ADF because of deployment problem. maybe the fallowing phase ADF will be used.)
    We can't find these kind of sample java and web. Especially data grid type interface on the web.
    This is very important program and we need urgently finish.
    Thanks for your help.

    You can use ADF with Tomcat, you just need to install the ADF runtime libraries on your tomcat.
    There is a toole->install ADF Runtime option for this.

  • Master-detail jsp for bc4j using JBO tags

    I have created a master-detail jsp for bc4j using JBO tags. However, I can not get the correct result. There are some examples on OTN, but they are about jsp programs. How to define the relationship of the master view-object and the detail view-object?
    Thanks for your help.

    I know you're having a problem upgrading, but...
    Could you upgrade to 9.0.3 and tell us what problems you're encountering?
    Thanks.
    Sung

Maybe you are looking for