Inserting XML(Master Detail like PO)into Database

hi,
Can any one suggest me which tools or what methodolgy I should use to insert master detail data like one header and multiple rows into database.
I am unable to insert into database through object view with the help of XML SQL utility for Java.
Please help in this....
null

Here's an example that ships with
the XSQL Servlet release 0.9.8.6
(due out any day now on OTN!!)
With this set of types and object view
you can insert documents like the
example at the end that is REM'd out.
drop view department;
drop type dept_t;
drop type emp_list;
drop type emp_t;
create or replace type emp_t as object (
empno number,
ename varchar2(80),
sal number
create or replace type emp_list as table of emp_t;
create or replace type dept_t as object (
deptno number,
dname varchar2(80),
loc varchar2(80),
employees emp_list
create or replace view department of dept_t
with object OID (deptno)
as select deptno, dname, loc,
cast(multiset(select empno, ename, sal
from emp
where emp.deptno = dept.deptno
) as emp_list ) employees
from dept;
create trigger department_ins
instead of insert on department
for each row
declare
emps emp_list;
emp emp_t;
begin
-- Insert the master
insert into dept( deptno, dname, loc )
values (:new.deptno, :new.dname, :new.loc);
-- Insert the details
emps := :new.employees;
for i in 1..emps.count loop
emp := emps(i);
insert into emp(deptno, empno, ename, sal)
values (:new.deptno, emp.empno, emp.ename, emp.sal);
end loop;
end;
REM
REM
REM <ROWSET>
REM <ROW>
REM <DEPTNO>99</DEPTNO>
REM <DNAME>ACCOUNTING</DNAME>
REM <LOC>NEW YORK</LOC>
REM <EMPLOYEES>
REM <EMPLOYEES_ITEM>
REM <EMPNO>1111</EMPNO>
REM <ENAME>CLARK</ENAME>
REM <SAL>2450</SAL>
REM </EMPLOYEES_ITEM>
REM <EMPLOYEES_ITEM>
REM <EMPNO>2222</EMPNO>
REM <ENAME>KING</ENAME>
REM <SAL>5000</SAL>
REM </EMPLOYEES_ITEM>
REM <EMPLOYEES_ITEM>
REM <EMPNO>3333</EMPNO>
REM <ENAME>MILLER</ENAME>
REM <SAL>1300</SAL>
REM </EMPLOYEES_ITEM>
REM </EMPLOYEES>
REM </ROW>
REM </ROWSET>
null

Similar Messages

  • Please insert cs3 master collection disc 1 into drive

    i'm unable to install cs3 master collections on my win xp.
    i keep getting "Please insert cs3 master collection disc 1 into drive E\ to continue installation".
    i downloaded this straight from adobes website.
    the adobe cs3 folder resides on my desktop.
    my current config:
    win xp
    2 gigs
    intel core 2 duo
    win service pack 2
    i searched extensively on both google and the adobe forums and didn't come up with anything solid to resolve this issue.
    any help will greatly be appreciated.
    thank you

    Call Adobe. Installation issues are handled free of charge.
    Bob

  • Inserting on Master Detail form

    Hello,
    I have created two tables. One I'm using as my master form and the other for my detail form.
    Table 1
    CREATE TABLE AGENCY (
    AGY_ID NUMBER (9) NOT NULL,
    AGY VARCHAR2 (1) NOT NULL,
    AGY_DESC VARCHAR2 (10) NOT NULL,
    AGY_DESC_LONG VARCHAR2 (100),
    CONSTRAINT PK_AGENCY
    PRIMARY KEY ( AGY_ID ) )
    There is post insert trigger on AGY_ID using a sequence:
    CREATE OR REPLACE TRIGGER PORTAL30.AGY_ID_PI
    BEFORE INSERT
    ON AGENCY
    FOR EACH ROW
    Begin
    If inserting and ( :new.AGY_ID is null ) Then
    select AGY_ID.nextval into :new.AGY_ID from dual;
    End If;
    End;
    Table 2
    CREATE TABLE OFFICECODE (
    OFF_ID NUMBER (9) NOT NULL,
    OFF_DESC VARCHAR2 (4) NOT NULL,
    AGY_ID NUMBER (9) NOT NULL,
    OFF_DESC_LONG VARCHAR2 (100),
    CONSTRAINT PK_OFFICECODE
    PRIMARY KEY ( OFF_ID ) )
    There is a Foreign Key on OFFICECOD.AGY_ID TO AGENCY.AGY_ID:
    ALTER TABLE OFFICECODE ADD CONSTRAINT OFF_AGY_ID_FK
    FOREIGN KEY (AGY_ID)
    REFERENCES PORTAL30.AGENCY (AGY_ID) ;
    There is post insert trigger on AGY_ID using a sequence:
    CREATE OR REPLACE TRIGGER PORTAL30.OFF_ID_PI
    BEFORE INSERT
    ON OFFICECODE
    FOR EACH ROW
    Begin
    If inserting and ( :new.OFF_ID is null ) Then
    select OFF_ID.nextval into :new.OFF_ID from dual;
    End If;
    End;
    I create a MD form in Portal 3.0.9.8.0 just fine. However I cannot insert the master and the detail at the same time because I get the following error:
    Error: An unexpected error occurred: ORA-01400: cannot insert NULL into ("PORTAL30"."OFFICECODE"."AGY_ID") (WWV-16016)
    If I create the Master record 1st, then add the detail records it works fine. But how do I insert the Master and the detail records at the same time?
    Thanks,
    Martin

    Martin,
    I had the same problem and with the help of some other folks in the forum I came up with this. It goes on the save button, plsql event handler. You'll see the 'doSave' call at the end of the procedure. It checks the value of the Master Action List and if it is 'INSERT' then sequence.nextval will be selected into v_master_id and then inserted into the table. Let me know if you have any questions. It probably needs a little clean up and some functionality for delete but so far I haven't had any problems with it.
    DECLARE
    v_master_id number(10);
    v_masteraction varchar2(10);
    v_detailaction varchar2(10);
    BEGIN
    v_masteraction := p_session.get_value_as_varchar2(p_block_name=> 'MASTER_BLOCK', p_attribute_name=>'_MASTER_ACTION');
    IF (v_masteraction = 'INSERT') THEN
    select rfi_admin.rasset_qc_master_seq.nextval into v_master_id from dual;
    p_session.set_value
    (p_block_name => 'MASTER_BLOCK'
    ,p_attribute_name => 'A_ID'
    ,p_index => 1
    ,p_value => v_master_id
    FOR i in 1..g_max_det_rec LOOP
    p_session.set_value
    (p_block_name => 'DETAIL_BLOCK'
    ,p_attribute_name => 'A_MASTER_ID'
    ,p_index => i
    ,p_value => v_master_id
    END LOOP;
    END IF;
    IF (v_masteraction = 'UPDATE') THEN
    v_master_id := p_session.get_value_as_varchar2(p_block_name=> 'MASTER_BLOCK', p_attribute_name=>'A_ID');
    END IF;
    FOR i in 1..g_max_det_rec LOOP
    v_detailaction := p_session.get_value_as_varchar2(p_block_name=> 'DETAIL_BLOCK', p_attribute_name=>'_DETAIL_ACTION', p_index => i);
    IF (v_detailaction = 'INSERT') THEN
    p_session.set_value(p_block_name=> 'DETAIL_BLOCK', p_attribute_name=> 'A_ASSET_QC_MASTER_ID', p_index => i, p_value=> v_master_id);
    END IF;
    END LOOP;
    doSave;
    END;

  • Multi-row insert in master-detail tables

    Hi, I'm using jdev 10.1.3.2 with jheadstart and my problem is:
    I hava a master-detail structure, both are tables and my goal is that I want multi insert (exactly 3) in master and detail table when user makes new order(some business scenario). I cannot create rows in master or detail VO by overriding create() method because its entities have complex primary keys and some part of this key is populated by the user with lov. So I set in jhs new rows to 3 and checked multi-row insert allowed but the problem is that overall I can only create rows in master table after I submit form. I want to create row in master table and fill rows in detail table, and after that I want to have opportunity to create second (or even third) row in master table and fill rows in detail table.
    thanks for help.
    Piotr

    See JHS DevGuide: 3.2.1. Review Database Design:
    If you are in the position to create or modify the database design, make sure all
    tables have a non-updateable primary key, preferably consisting of only one
    column. If you have updateable and/or composite primary keys, introduce a
    surrogate primary key by adding an ID column that is automatically populated.
    See section 3.2.4 Generating Primary Key Values for more info. Although ADF
    Business Components can handle composite and updateable primary keys, this
    will cause problems in ADF Faces pages. For example, an ADF Faces table
    manages its rows using the key of the underlying row. If this key changes,
    unexpected behavior can occur in your ADF Faces page. In addition, if you want
    to provide a drop down list on a lookup tables to populate a foreign key, the
    foreign key can only consists of one column, which in turn means the referenced
    table must have a single primary key column.
    Groeten,
    HJH

  • "Failed to validate all rows" when inserting in master detail scenario

    Hi,
    I have problem writing data in a master detail scenario..
    i use the following bean method to write data.
    Data is inserted in the master table successfully but when i try to commit in the details table i get the error "Failed to validate all rows in a transaction."
    public void save(ActionEvent actionEvent)
    //writing into master table
    DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iterBind =
    (DCIteratorBinding)bindings.get("Master1Iterator");
    MasterVOImpl vo_pr = (MasterVOImpl ) iterBind.getViewObject();
    Row r=vo_pr.createRow();
    r.setAttribute("Name", name);
    Number num =(new oracle.jbo.server.SequenceImpl("new_seq",vo_pr.getDBTransaction())).getSequenceNumber();
    r.setAttribute("Id",num);
    vo_pr.insertRow(r);
    vo_pr.getDBTransaction().commit();
    //writing into details table
    DCIteratorBinding scopeiterBind =
    (DCIteratorBinding)bindings.get("Detail2Iterator");
    DetailVOImpl vo_sc = (DetailVOImpl) scopeiterBind.getViewObject();
    Row rs=vo_sc.createRow();
    rs.setAttribute("iddetail",iddetail);
    rs.setAttribute("Name", Name);
    rs.setAttribute("id",num);
    vo_sc.insertRow(rs);
    vo_sc.getDBTransaction().commit();
    Note: the Detail iterator used here is the one under the master in the AM

    In case your model defined a view link from master to detail should try to get the detail iterator from the master and use this to create the new row.
    Row r=vo_pr.createRow();
    r.setAttribute("Name", name);
    Number num =(new oracle.jbo.server.SequenceImpl("new_seq",vo_pr.getDBTransaction())).getSequenceNumber();
    r.setAttribute("Id",num);
    vo_pr.insertRow(r);
    // this method gets the detail iterator for the master row you just created.
    // The name of the method depends on the view link in your model you expose to the master view
    Row rs=vo_pr.getDetail().createRow();
    rs.setAttribute("iddetail",iddetail);
    rs.setAttribute("Name", Name);
    // this value should be added by the framework
    //rs.setAttribute("id",num);
    vo_sc.insertRow(rs);
    vo_pr.getDBTransaction().commit();Timo

  • Insert in master-detail

    Hello all,
    I'm having a problem with an insert in a master detail. Situation is as follows:
    I have a VO based on an entity, VOMaster. This has a ViewLink to another VO based on an entity (1..*), VODetail. In my application, I do a CreateInsert on VOMaster. All works well, I can edit the fields there and I could do a commit if I want to.
    But I don't want to commit just yet. I now want to CreateInsert a row of VODetail. When I do that, I either get nullpointer exceptions because the row isn't actually created (when I uncheck the composition chexbox in the Association between the 2 entities), or I get an InvalidOwnerException (when that checkbox is checked).
    I also tried to not do a CreateInsert but a Create, but then the fields are not editable.
    Can anybody help me?
    Many thanks!

    On a side note: I tried http://radio.weblogs.com/0118231/stories/2003/01/17/whyDoIGetTheInvalidownerexception.html but I get the same errors (InvalidOwner on .createRow())...

  • HELP: Error while insert in master-detail form!!!

    Hello
    I have created a master-detail form and when I tried to insert a new record I got an error that the field on the detail table that references the primary key on the master table can not be null. I don't understand this error because I thought that when you create a master-detail form and you insert a new record the field that make the references in the detail table to the primary key on the master table will be automatically filled, am I wrong??. Can anybody tell me what is going on??. The primary key of my master table is filled with a trigger before insert, is that the problem??.
    Please Help me is really urgent
    Ana Maria

    I am still new to this, but maybe this will help.
    1. Double check that your foreign key link definition in the detail table is referencing the correct column in the master table. If this is not present or referencing the column, this may be causing the problem. Self evident, but sometimes it is the simple things that get us.
    2. I have not used a trigger yet, but could there be validation being done in the form before the trigger is firing. Therefore, there would not be a value in the detail part of the form.
    Hope this was of some help.

  • Error ORA-01790: for INSERT in master detail form

    Gidday;
    I get the error message 'ORA-01790: expression must have same datatype as corresponding expression' when I attempt an insert operation in the detail region of a master/detail form.
    I have checked previous entries of this error I could find - as far as I can tell the parent key defaults are correct.
    It seems one of the factors could be that the tables are not within the 'home' schema for the application. I have created a similar default master detail form on the tables, with the home schema matching that for the tables. Within my major application I have ensured the correct schema is referenced in all fields (all those I could find - in the Report Attributes / Column Attributes area).
    I just cannot find which expressions are mis-matching their datatypes.
    thanks; DS

    Hi,
    According to [http://ora-01790.ora-code.com] the error is raised because "A SELECT list item corresponds to a SELECT list item with a different datatype in another query of the same set expression." Do you have any Select Lists on your page? If you do, is the "return value" of the same datatype as for the underlying field?
    One thing to try in these circumstances is to click the Debug link on the Developer's toolbar at the bottom of the page and then try to insert your record. You will get a whole stream of messages appear on the left of the page and the error should become obvious.
    You could also check that all the defaults you have set do not contain spaces or linefeeds at the end - I have seen this cause issues before.
    Andy

  • ADF BC : Problem in Inserting a Master - Detail Record

    Hi,
    I am new to ADF Business Components. I am into a project where i use only the ADF BC as ORM/DB Operations and for the front end I use some other framework. The Problem is.
    I have two entity objects and a ViewLink between them. [Relation between "Order" to "Item" is (1 to many relation)].
    [I saw many examples in forums where its explained with View Objects But here I DID NOT create any View Object. I have only Entity Objects]
    (1) OrderEO [Entity Object for Order Table]
    (2) ItemEO [Entity Object for Items Table]
    (3) OrderItemsViewLink [A Viewlink where OrderEO.OrderId = ItemEO.OrderId]
    All The Primary keys (for the "Order" and "Items" table ) are handled by Trigger+Sequence at the time of insert in DB side.
    I created custom method to insert "Order" individually it worked fine.
    I created custom method to insert the "Item" individually it worked fine.
    But...
    When I created and "Order" with some "Items" It failing to insert and throws an
    Error : oracle.jbo.InvalidOwnerException: JBO-25030: Failed to find or invalidate owning entity: detail entity ItemEO, row key oracle.jbo.Key[0 ].
    My Custom Method in the AppModuleImpl is like below :
    public void createNewOrderWithNewItems() {
    String entityName = "com.proj.entities.OrderEO";
    EntityDefImpl orderDef = EntityDefImpl.findDefObject(entityName);
    OrderEOImpl newOrder = (OrderEOImpl)orderDef .createInstance2(getDBTransaction(),null);
    try {
    // 3. Set attribute values
    newOrder .setOrderStatusCode("CREATED");
    RowIterator items = newOrder .getItemEO();
    Row newItemRow = items .createAndInitRow(null);
    items .insertRow(newItemRow );
    newItemRow .setAttribute("itemDate", new Date());
    newItemRow .setAttribute("itemQty", new Number(10));
    // 4. Commit the transaction
    getDBTransaction().commit();
    } catch (SQLException e) {
    e.printStackTrace();
    } catch (JboException ex) {
    getDBTransaction().rollback();
    throw ex;
    Here the "Order" is also new and related Items is also new. What I expect is to save the Order with Items in one transaction. How to achieve this. Please suggest.
    Thanks
    Narayan
    Edited by: 817942 on Dec 3, 2010 8:16 AM

    Read through the blog posts which describes
    why this issue occurs and how it should be resolved.
    http://radio-weblogs.com/0118231/stories/2003/01/17/whyDoIGetTheInvalidownerexception.html
    http://one-size-doesnt-fit-all.blogspot.com/2008/05/jbo-25030-failed-to-find-or-invalidate.html
    Thanks,
    Navaneeth

  • How to call SQL Insert on Master Detail Page when new master and detail rec

    Retracted for post with working example.
    Thanks.
    George
    Edited by: George Milliken on Jan 4, 2011 9:38 PM

    Lovneet
    1. You can set the Jheadstart group property "Display New Row on Entry" to true
    2. You can do this inside ADF BC: overwrite the create method on the master view object and after the call to super, look up the detail view object and create three rows there as well.
    Steven Davelaar,
    JHeadstart team.

  • Inserting xml data in a MYSQL database

    Hi,
    I would like to know how i can insert data from an xml file into a MYSQL database using a java program, I currently have a program which retrieves an xml record and i need to insert the information between the tags into a table in MYSQL..please help me out if anyone knows...i am not very familiar with java...thanks

    Hi there Sherkhan,
    Im trying to do exactly what ur doing, inserting xml data in to a mySQL database. Any chance u could share the code for this???
    Many thanks in advance.

  • Database Views and Master-Detail using ADF

    How would I create a master-detail form using a database view for the search-able master table and a database view as the detail table?
    The detail-view will need to be update-able (adf-table) using an instead-of trigger to perform the updates to the database table.
    Thanks in advance...

    There are several sections in the ADF Developer's Guide about using views (http://www.oracle.com/technology/documentation/jdev/b25947_01/index.html):
    - 26.4 Basing an Entity Object on a PL/SQL Package API
    - 6.2.4 Creating an Entity Object for a Synonym or View
    You can also try Steve Muench's web log: http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html
    There are at least two (old) items there that involve view with instead-off triggers:
    -      Composite Entity Using Stored Procedure API to Create/Modify/Remove Master and Children
    - Entity Object Based on View With Instead Of Triggers Avoiding Returning Into Clause
    Jan Kettenis

  • Cannot insert into database

    Can any body help plzzzzzzzzzzzzzzzz,
    I establish a connection using connection pooling as given in netbeans
    helps.With that ican retrieve data from database but cant insert into it.While inserting only null values ere entered into database.why?
    please somebody help

    My Jsp page userRegistration.jsp
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
    <%@taglib prefix="c"uri="http://java.sun.com/jsp/jstl/core"%>
    <%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
    <%@ page import="java.sql.*" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
            </head>
        <body>
    <html:errors/>
        <table>
    <html:form action="reg.do"method="post" >
    <tr>
    <td>
    firstname<html:text  property="firstName"  />
    </td>
    </tr>
    <tr>
    <td>
    lastname<html:text property="lastName" />
    </td>
    </tr>
    <tr>
    <td>
    username<html:text property="userName" />
    </td>
    </tr>
    <tr><td>
    email<html:text property="email" />
    </td>
    </tr>
    <tr>
    <td>
    phone<html:text property="phone" />
    </td>
    </tr>
    <tr>
    <td>
    fax<html:text property="fax" />
    </td>
    </tr>
    <tr>
    <td>
    password<html:password property="password" />
    </td>
    </tr>
    <tr><td>
    passwordcheck<html:password property="passwordCheck" />
    </td>
    </tr>
    <tr>
    <td>
    <html:submit />
    </td>
    <td>
    <html:cancel />
    </td>
    </tr>
    </table>
    </html:form>
    </body>
    </html>
    my struts action
    package action;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.Action;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.action.ActionForward;
    import javax.servlet.http.HttpSession;
    public class reg extends Action {
         private String firstName;
        private String lastName;
        private String userName;
               private String email;
               private String phone;
               private String fax;
               private String password;
               private String passwordCheck;
        /* forward name="success" path="" */
        private final static String SUCCESS = "success";
        public ActionForward execute(ActionMapping mapping, ActionForm  form,
                HttpServletRequest request, HttpServletResponse response)
                throws Exception {
            response.sendRedirect("complete.jsp");
            return mapping.findForward(getSUCCESS());
        public String getFirstName() {
            return firstName;
        public void setFirstName(String firstName) {
            this.firstName = firstName;
        public String getLastName() {
            return lastName;
        public void setLastName(String lastName) {
            this.lastName = lastName;
        public String getUserName() {
            return userName;
        public void setUserName(String userName) {
            this.userName = userName;
        public String getEmail() {
            return email;
        public void setEmail(String email) {
            this.email = email;
        public String getPhone() {
            return phone;
        public void setPhone(String phone) {
            this.phone = phone;
        public String getFax() {
            return fax;
        public void setFax(String fax) {
            this.fax = fax;
        public String getPassword() {
            return password;
        public void setPassword(String password) {
            this.password = password;
        public String getPasswordCheck() {
            return passwordCheck;
        public void setPasswordCheck(String passwordCheck) {
            this.passwordCheck = passwordCheck;
        public static String getSUCCESS() {
            return SUCCESS;
        private javax.sql.DataSource getHima() throws javax.naming.NamingException {
            javax.naming.Context c = new javax.naming.InitialContext();
            return (javax.sql.DataSource) c.lookup("java:comp/env/jdbc/hima");
    my complete.jsp where insertion happens
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
    <%@taglib prefix="c"uri="http://java.sun.com/jsp/jstl/core"%>
    <%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
    <%@ page import="java.sql.*" %>
    String firstName=("firstName");
    String lastName = getInitParameter("lastName");
    String userName = getInitParameter("userName");
    String email= getInitParameter("email");
    String phone = getInitParameter("phone");
    String fax = getInitParameter("fax");
    String password = getInitParameter("password");
    String passwordCheck = getInitParameter("passwordCheck");
    <%
           String firstName=(String)request.getAttribute("firstName");
           request.getSession().setAttribute("firstName",firstName);
    %>  
    <sql:query var="queryresults" dataSource="jdbc/hima">
            select phone from user
            </sql:query>
    <sql:update var="resultset" dataSource="jdbc/hima">
                INSERT INTO user1 (firstName,lastName,userName,email,phone,fax,password,passwordCheck)
                VALUES(firstName,lastName,userName,email,phone,fax,password,passwordCheck)
            </sql:update>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
       <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
        </head>
        <body>
    <form action="comp"></form>
        <h1>JSP Page</h1>
        <table>
        <tr>
        <th>first</th>
        </tr>
        <c:forEach var="row" items="${queryresults.rows}">
            <tr>
            <td><c:out value="${row.phone}"/></td>
            </tr>
        </c:forEach>
    </table>
        </body>
    </html>

  • Custom Master Detail form not working In EBS

    Custom Master Detail form not working In EBS
    Hi all,
    I have two custom tables -- 1) XXX_DIE_Headers
    2) XXX_DIE_LINES
    I developed a Master Detail form based on above tables. XXX_DIE_Headers is the Master Block (Single record) & XXX_DIE_LINES is the detail block ( Multi line block ).
    Yes, I used Appstand,Template.fmb for developing this form. The Master block has three fields out of which Two are required fields and i have given initial value for them.
    As i deployed it in APPS(EBS),everything about it is working fine (insert,delete,master-detail behaviour) except querying.
    When i press F-11 , It pops up a message "Do you want to save changes you have made" Choice - yes,no,cancel.
    I don't want this message to pop up.
    The scenario is :- I open the form.( without entering ) Press F11 . The message Pops up.
    Please give me suggession on how to work it around so as form directly goes to query mode ,without popping the message.
    regards
    ravi

    It seems that you are changing a database value in your form, do you have any changes in WHEN-NEW-FORM-INSTANCE???
    what the form is trying to tell you that you have changed something, do you want to save it?
    I suggest you debug your form and see what's happening step by step.
    Tony

  • Creating a master-detail relation between a view and a table

    Hi all,
    I have a problem with creating a master-detail relation between a database-view with lots of customer data and a small table with per customer a list of entities of our companies who may work for that customer.
    Somehow I seem to be unable to create a relation between these two. I can't find where I can make a foreign key using Toplink to implement the relationship. And neither can I get a Viewlink object doing the job using ADF Business Components.
    Somebody any suggestions on this problems?
    Regards,
    Birgit

    There is a key relationship between two fields which form the primary key in the main table of the view and two fields in the second table.
    I created a viewlink manually, but I still couldn't get the data correct i.e. a form with one record of a customer from the main view and a small table with all entities of our company who can make performances for that customer.
    I tried to find a manual or a how-to on this topic but I didn't find anything helpfull yet.
    Regards,
    Birgit
    After a couple more tries, I got the master-detail working. With all the fiddling I am not sure what caused the problem but I think the finally action was checking which fields of the view were marked as primary keys.
    Now everthing is up and running.
    Birgit
    Message was edited by:
    user492355

Maybe you are looking for