MASTER -DETAILS ENTRY FORMS IN APEX

THIS IS MY TABLE, HOW I WILL MASTER -DETAILS ENTRY FORMS IN APEX.
PLEASE HELP
CREATE TABLE BUY_INFO_MST
SUPPLIER_CODE VARCHAR2(5) NOT NULL,
MEMO_CODE VARCHAR(12),
ITEM_CODE VARCHAR2(3) NOT NULL,
BUY_DATE DATE ,
USER_NAME VARCHAR2(15) ,
ENTRY_DATE DATE ,
UPD_USER VARCHAR2(15) ,
UPD_DATE DATE ,
CONSTRAINT PK_BUY_INFO PRIMARY KEY (SUPPLIER_CODE,MEMO_CODE,ITEM_CODE,BUY_DATE)
CREATE TABLE BUY_INFO_DTL
SUPPLIER_CODE VARCHAR2(5) NOT NULL,
MEMO_CODE VARCHAR(12) ,
ITEM_CODE VARCHAR2(3) NOT NULL,
ITEM_DETAILS_CODE VARCHAR2(3) NOT NULL,
BUY_DATE DATE ,
ROLL VARCHAR2(3) ,
UNIT_CODE_M VARCHAR2(3) ,
UNIT_CODE_I VARCHAR2(3) ,
QUANTITY_M NUMBER(10,4) ,
QUANTITY_I NUMBER(10,4) ,
UNIT_PRICE NUMBER(15,4) ,
BUY_AMOUNT NUMBER(15,4) ,
USER_NAME VARCHAR2(15) ,
ENTRY_DATE DATE ,
UPD_USER VARCHAR2(15) ,
UPD_DATE DATE ,
CONSTRAINT PK_BUY_INFO_DTL PRIMARY KEY (SUPPLIER_CODE,MEMO_CODE,ITEM_CODE,ITEM_DETAILS_CODE, BUY_DATE),
CONSTRAINT FK_BUY_INFO_DTL FOREIGN KEY(SUPPLIER_CODE,MEMO_CODE,ITEM_CODE,BUY_DATE)REFERENCES BUY_INFO_MST
JAHANGIR

Hi,
Because you're using a composite key with more than 2 columns you'll need to create a view of each table with a ROWID column and use those as your primary keys. Either that or add a new column to the table for each entry.
Mike

Similar Messages

  • MASTER -DETAILS ENTRY FORMS PROBLEM

    THIS IS MY TABLE, HOW I WILL MASTER -DETAILS ENTRY FORMS IN APEX.
    PLEASE HELP
    CREATE TABLE BUY_INFO_MST
    SUPPLIER_CODE VARCHAR2(5) NOT NULL,
    MEMO_CODE VARCHAR(12),
    ITEM_CODE VARCHAR2(3) NOT NULL,
    BUY_DATE DATE ,
    USER_NAME VARCHAR2(15) ,
    ENTRY_DATE DATE ,
    UPD_USER VARCHAR2(15) ,
    UPD_DATE DATE ,
    CONSTRAINT PK_BUY_INFO PRIMARY KEY (SUPPLIER_CODE,MEMO_CODE,ITEM_CODE,BUY_DATE)
    CREATE TABLE BUY_INFO_DTL
    SUPPLIER_CODE VARCHAR2(5) NOT NULL,
    MEMO_CODE VARCHAR(12) ,
    ITEM_CODE VARCHAR2(3) NOT NULL,
    ITEM_DETAILS_CODE VARCHAR2(3) NOT NULL,
    BUY_DATE DATE ,
    ROLL VARCHAR2(3) ,
    UNIT_CODE_M VARCHAR2(3) ,
    UNIT_CODE_I VARCHAR2(3) ,
    QUANTITY_M NUMBER(10,4) ,
    QUANTITY_I NUMBER(10,4) ,
    UNIT_PRICE NUMBER(15,4) ,
    BUY_AMOUNT NUMBER(15,4) ,
    USER_NAME VARCHAR2(15) ,
    ENTRY_DATE DATE ,
    UPD_USER VARCHAR2(15) ,
    UPD_DATE DATE ,
    CONSTRAINT PK_BUY_INFO_DTL PRIMARY KEY (SUPPLIER_CODE,MEMO_CODE,ITEM_CODE,ITEM_DETAILS_CODE, BUY_DATE),
    CONSTRAINT FK_BUY_INFO_DTL FOREIGN KEY(SUPPLIER_CODE,MEMO_CODE,ITEM_CODE,BUY_DATE)REFERENCES BUY_INFO_MST
    JAHANGIR

    THIS IS MY TABLE, HOW I WILL MASTER -DETAILS ENTRY FORMS IN APEX.
    PLEASE HELP
    CREATE TABLE BUY_INFO_MST
    SUPPLIER_CODE VARCHAR2(5) NOT NULL,
    MEMO_CODE VARCHAR(12),
    ITEM_CODE VARCHAR2(3) NOT NULL,
    BUY_DATE DATE ,
    USER_NAME VARCHAR2(15) ,
    ENTRY_DATE DATE ,
    UPD_USER VARCHAR2(15) ,
    UPD_DATE DATE ,
    CONSTRAINT PK_BUY_INFO PRIMARY KEY (SUPPLIER_CODE,MEMO_CODE,ITEM_CODE,BUY_DATE)
    CREATE TABLE BUY_INFO_DTL
    SUPPLIER_CODE VARCHAR2(5) NOT NULL,
    MEMO_CODE VARCHAR(12) ,
    ITEM_CODE VARCHAR2(3) NOT NULL,
    ITEM_DETAILS_CODE VARCHAR2(3) NOT NULL,
    BUY_DATE DATE ,
    ROLL VARCHAR2(3) ,
    UNIT_CODE_M VARCHAR2(3) ,
    UNIT_CODE_I VARCHAR2(3) ,
    QUANTITY_M NUMBER(10,4) ,
    QUANTITY_I NUMBER(10,4) ,
    UNIT_PRICE NUMBER(15,4) ,
    BUY_AMOUNT NUMBER(15,4) ,
    USER_NAME VARCHAR2(15) ,
    ENTRY_DATE DATE ,
    UPD_USER VARCHAR2(15) ,
    UPD_DATE DATE ,
    CONSTRAINT PK_BUY_INFO_DTL PRIMARY KEY (SUPPLIER_CODE,MEMO_CODE,ITEM_CODE,ITEM_DETAILS_CODE, BUY_DATE),
    CONSTRAINT FK_BUY_INFO_DTL FOREIGN KEY(SUPPLIER_CODE,MEMO_CODE,ITEM_CODE,BUY_DATE)REFERENCES BUY_INFO_MST
    JAHANGIR

  • Master Details Entry Form in Oracle ADF

    Dear Sir,
    Please tell me how we create the Master Details Entry Form in Oracle ADF.
    Thanks in Advance
    Shiv Naresh Gupta

    hi Number(922941) :)
    welcome ,
    to this forums
    thing 1: change handle(name) as string as well as meaningful.
    first go through
    https://forums.oracle.com/forums/ann.jspa?annID=56
    Next look.
    http://www.youtube.com/watch?v=OCWMzfbd96E
    http://www.fireboxtraining.com/blog/2011/01/09/oracle-adf-11g-creating-master-detail-detail-tables/
    http://www.baigzeeshan.com/2010/03/creating-master-detail-form-in-adf.html

  • ADF Master Detail entry form issue

    Hi All,
    I am new to JDeveloper and I am creating a Master Detail entry form. I have separate buttons to create master records and detail records in Master and Detail sections respectively. After completing data entry in Master portion, when I hit the create button to create a line in detail, it removes data from the last field of master which is a "description" field. I haven't write any custom code yet. How can I fix this?
    Help will be appreciated.
    Thanks,
    CAH

    Hi,
    Thanks for your reply and links to the tutorials.
    I have changed the default binding to CreateInsert from Create. Unlike in the sample application in the links, my form is editable at both the levels. Apart from the clearing out the description field, it clears out the list items I have defined at Detail level when I create second or greater record. It works fine for the first record at Detail level. And as I mentioned, I have not written any custom code anywhere.
    Any clue will be a great help.
    Thanks,
    CAH

  • Master details report/form

    Hi Friends,
    I want to create a Master-Detail report/form.
    I have one Master Table and it has 3 Detail tables.
    Example:
    Master Table: Members
    Detail Tables: Contributions
                   Loans
                   Benefit ClaimsI want to show when I click on a specific Member in the report edit , I can make entry/update to all
    the 3 detail tables. And not going each entry separately.
    Is this design requirement good?
    Thanks a lot

    You can look here on how to create multiple detail tables:
    http://htmldb.oracle.com/pls/otn/f?p=31517:163
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Master Detail Java Form

    Where can i find any source code of master detail java form without using BC4J?

    Gawish,
    JSP and Applets are kind of exluding the other. If you don't like to use BC4J, you can use all kind of technologies like EJB or POJOs. ADF will work the same for the two technologies when building user interfaces. See otn.oracle.com/products/jdev for tutorials and how-to.
    Frank

  • Is it possible to create a Master-Master-Detail JClient Form?

    Hi,
    I've been trying to create a Master-Master-Detail JClient Form, where both master-values will be displayed in a seperated drop-down-list.
    First I've tested this with a single Master-Detail (is it correct, that a single drop-down-list, working as master will not work with LoV-Binding!?) - However, the combobox-model must be set to Navigation-Binding...
    After adding another combobox (the second master), and testing the result, it seems that the detail-table only corresponds to the selection of the first master.
    The problem with LoV-Binding was, that the drop-down-list starts with the value at ID '0' (which doesn't exists) instead of '1'...
    The Question is, how can I create a Master-Master-Detail JClient Form!?
    thanks,
    hubi

    Hi,
    I've been trying to create a Master-Master-Detail JClient Form, where both master-values will be displayed in a seperated drop-down-list.
    First I've tested this with a single Master-Detail (is it correct, that a single drop-down-list, working as master will not work with LoV-Binding!?) - However, the combobox-model must be set to Navigation-Binding...That's true for navigation as you want to use the Combo as the navigator for the Master VO iterator. Lov Binding is used to "update" certain attributes based on selection. You are trying to drive the detail rowset for a selected master and NavigationBinding is the appropriate binding for this purpose.
    After adding another combobox (the second master), and testing the result, it seems that the detail-table only corresponds to the selection of the first master.That's the behavior you get from the default data model.
    The Question is, how can I create a Master-Master-Detail JClient Form!?First you need to create a ViewUsage structure that implements Master-master-detail. This is not allowed by Bc4j wizards. However you can create such a structure at runtime by using createViewLink method on the ApplicationModule to link the "second" master with the detail (same VO as the first Master's detail).
    Assuming both the comboboxes are bound to individual Master VOs using NavigationBinding, you should now be able to traverse the details using both ComboBoxes (which represent the master).

  • Master detail report/form FK problem

    Anyone...anybody!!!
    I'm using APEX 4.0.1... and Oracle 10g.
    I have two tables that are linked with FK in the detail table
    Master table
    ID_ENDURGR     NUMBER --PK populated with a trigger
    KT_UMSAEKJANDI     VARCHAR2(10 BYTE)
    TIMABIL     NUMBER
    NUMER_UMSOKN     NUMBER
    HEILDARKOSTNADUR     NUMBER
    Detail table
    ID_EIGENDUR     NUMBER --PK populated with a trigger
    KENNITALA     VARCHAR2(10 BYTE)
    EIGNARHLUTI     NUMBER
    KOSTNADUR_VINNA     NUMBER
    ENDURGR_ID_FK     NUMBER -- FK on ID_ENDURGR in the master table
    If I create a application with a master detail page using the wizard, pages with a report and a tabular form are created. This works fine and the FK field in the detail table is automatically populated with the PK from the master table.
    If I create an application with a blank page an on that page create a region > form > master detail > same tables >use existing triggers > default > Edit detail on separate page ... three new pages are created: Report, master form and a detail form.
    If I create a new detail record with this application the FK field is not automatically populated.
    Why? What am I doing wrong?
    The trigger on the detail table:
    create or replace
    TRIGGER "bi_RSK_541_EIGENDUR"
    before insert on "RSK_1018_EIGENDUR"
    for each row
    begin
    if :new."ID_EIGENDUR" is null then
    select "RSK_541_EIGENDUR_SEQ".nextval into :new."ID_EIGENDUR" from dual;
    end if;
    end;
    Do I need to add something here... or what?
    Please help.
    Edited by: 805740 on 2.12.2010 07:14

    Thanks for your reply. I have created my pages on apex.oracle.com
    ws: RSK_APEX
    user: demo
    pwd: demo
    There are two tabs. Different solutions on each one.

  • Error trying to run a sample master-detail JSF form in Jdev 10.1.3

    I've tried JDeveloper 10.1.3 folowing a tutorial , master-detail one , involving Adf Faces which I found it here http://www.oracle.com/technology/products/jdev/101/tutorials/e2ebcfaces/buildmaster-detailpagewithjdevandadfbc.htm.
    1. I dowloaded JDeveloper 10.1.3
    2. I made -in Jdeveloper- a connection to OE8 schema
    2. I created an application with web application template ; in my new workspace i had 2 projects Model and ViewController
    3. In model i choose Business Tier - ADF Bussiness Components - Business Components from Tables and I followed instructions in tutorial
    4. In ViewController I created Web Tier - JSF - JSF JSP , with the JSF-JSP wizard a jsp page browseCustomerOrders.jsp. For building a master detail form i folowed instructions in tutorial
    However ...
    5. When I tried to run i received ....
    " [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    **** Unable to obtain password from principals.xml. Using default.
    D:\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config>
    D:\jdevstudio1013\jdk\bin\javaw.exe -ojvm -classpath D:\jdevstudio1013\j2ee\home\oc4j.jar;D:\jdevstudio1013\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config D:\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    05/11/30 12:04:16 Exception in thread "OC4J Launcher" oracle.classloader.util.AnnotatedNoClassDefFoundError:
         Missing class: oracle.core.ojdl.logging.LoggingConfiguration
         Dependent class: com.evermind.server.XMLApplicationServerConfig
         Loader: oc4j:10.1.3
         Code-Source: /D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar
         Configuration: <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar
    The missing class is not available from any code-source or loader in the server.
    05/11/30 12:04:16      at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2073) [D:/jdevstudio1013/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
         at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1681) [D:/jdevstudio1013/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1633) [D:/jdevstudio1013/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1618) [D:/jdevstudio1013/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
         at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap]
         at com.evermind.server.XMLApplicationServerConfig.initJ2eeLogging (XMLApplicationServerConfig.java:243) [D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.XMLApplicationServerConfig.postInit (XMLApplicationServerConfig.java:255) [D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.xml.XMLConfig.init (XMLConfig.java:200) [D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.xml.XMLConfig.init (XMLConfig.java:117) [D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ApplicationServerLauncher.run (ApplicationServerLauncher.java:74) [D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at java.lang.Thread.run (Thread.java:595) [jre bootstrap, by jre.bootstrap]
    05/11/30 12:04:16 Fatal error: server exiting
    Process exited with exit code 1. "
    Where do you think i am wrong?
    Many thanks

    Hi,
    the problem seems not to be within your application but in missing files on your embedded OC4J. Just try and unzip the JDeveloper 10.1.3 install again.
    Frank

  • Master Details Input Form

    Hi,
    I'm using JDeveloper 10.1.3.1, ADFBC JSPX, I've created two tables dept with deptid and deptnm primary key deptid, emp with empno, empnm and deptid foreign key deptid references dept table.
    i've created business component Diagram, in that i dragged 2 tables. i've created views for that tables, and view link between these two. i've creaed Data Control as a Master Details. in Jspx, i dragged Dept View as a creation form, and down of that, Emp as a creation form, then from operations, i dragged commit and rollback buttons. When i'm testing in Application Module, it's running perfectly ok, while running jspx these errors are comming, how can i solve this.
    1. JBO-27027: Missing mandatory attributes for a row with key null of type AM.EmpView1
    2. Empno - JBO-27014: Attribute Empno in AM.EmpView1 is required
    3. Deptid - JBO-27014: Attribute Deptid in AM.EmpView1 is required
    Thanks and Regards,
    Sudha Teki.

    Hi,
    Whatever link u've send i've tried that with using Service Requests and Products Tables.
    public Result newServiceRequestForNewProduct(String prodName,
    String prodDesc,
    String problemDesc,
    Number customerId){
    //1. Create a New Service Request
    ServiceRequestsImpl newSR = createNewServiceRequest();
    //2. Create a New Product
    ProductsImpl newProd = createNewProduct();
    newProd.setName(prodName);
    newProd.setDescription(prodDesc);
    //3. Set the product id to which service request pertains
    newSR.setProdId(newProd.getProdId().getSequenceNumber());
    newSR.setProblemDescription(problemDesc);
    newSR.setCreatedBy(customerId);
    //4. Commit the transaction
    getDBTransaction().commit();
    //5. Construct a bean to hold new product id and SR id
    Result result = new Result();
    result.setSvrId(newSR.getSvrId().getSequenceNumber());
    result.setProdId(newProd.getProdId().getSequenceNumber());
    //6. Return the result
    return result;
    After adding this code i'm trying to test client program. i'm getting errors like
    Error(66,25): interface javax.xml.transform.Result is abstract; cannot be instantiated
    Error(67,12): method setSvrId(oracle.jbo.domain.Number) not found in interface javax.xml.transform.Result
    Error(68,12): method setProdId(oracle.jbo.domain.Number) not found in interface javax.xml.transform.Result
    Anything else i'm missing here, please let me know.
    Thanks and Regards,
    Sudha.

  • Post query trigger problem in master detail oracle forms

    Hello experts,
                        I am new in oracle forms n using Fission middleware 10g with oracle forms 11g at windows 7 platform.
    I have made a master detail form using a tab canvas.There is a database column STUDENTID and it is in my student tab with a TBL_STUDENTENTRY data block.Now I Have an another tab named previous_education with TBL_STUDENT_PREVIOU_EDU datablock here there is also a database column STUDENTID and corresponding field in my  previous_education TAB under TBL_STUDENT_PREVIOU_EDU  datablock.Now i want to add a display item to show  student name corresponding to STUDENTID.For this I have tried to make a select query in TBL_STUDENT_PREVIOU_EDU data block POPST_QUERY TRIGGER.
    begin
    select STUDENTNAME into :TBL_STUDENT_PREVIOU_EDU.STD_NM   from TBL_STUDENTENTRY where STUDENTID=:TBL_STUDENTENTRY.STUDENTID;
    end;
    But, This trigger is not fired at runtime,Please suggest me what is going wrong and give me the solution.
    Thank You
    AADITYA.

    http://www.club-oracle.com/forums/post_query-problem-in-oracle-forms-t9751/#post23794 ,  This is the link at where  I have tried to show my problem with the help of an image,Please get the link:
    thanx
    regards Aaditya.

  • Master-detail  in forms 4.5

    I am trying to make a master-detail form work, but so far the details in the form does not correspond to the master block.
    What I did was
    1. created a primary key in table1
    2. created a foreign key in table2 referencing the primary key in table1
    3. created a new block (master block based on table1)
    4. created another block (detail block based on table2)
    5. under the tab master/detail of detail block I
    5.1 selected the master block from the block LOV
    then the "Join Condition" textbox automatically showed the relational keys
    or Join
    But when I ran the program, only the master block showed different records when navigating.
    Thanks for any help you can give.

    Bob,
    check the property palette of the relation node (build under the detail block) for the "deferred" property. This should be set to "no", otherwise the query only gets updated if you navigate into it.
    Frank

  • Error in Master-Detail report form

    Hi every one,
    I am a beginner to Oracle APEX, i am learning from this "Building an Application using Oracle Application Express: Part 1" tutorial, i went through this, but i got error while in detail field, from tutorial, detail table shows, tasks table, but in my detail field it doesn't shows tasks table, Please help me........
    Thankyou,
    Suresh

    Hello 942793 -- Do you have a name / nickname? -- We still don't know how to address you,
    Say, could you tell us -- because sometimes different versions have different capabilities:
    Full APEX version number,
    Full database version number,
    APEX web browser architecture (EPG, OHS, or APEX listener)
    Browser(s) and version(s) used,
    Operating System with version number and architecture (32/64 bit),
    [If you mentioned these before we don't have access to that info in this thread.]
    Also, are you using ARP (Automatic Row Processing) for this Master-Detail or have you programmed your own updates?
    Did you use an APEX wizard to create the Master-Detail or have you written you own code for the Master-Detail?
    To the problem:  In short, APEX is ensuring update consistency by preventing an update of a record/row that has changed since the code retrieved it.  So, one needs to figure out where/why it changed and what to do about it.
    ?  Is this Master-Detail part of you application fairly simple?  Could you put just that part out on apex.oracle.com for folks to look at?  That can speed resolution of these, sometimes difficult, update problems.
    Regards,
    Howard

  • Problems with block master - detail in forms 10g

    I have a master-detail block, when the record is empty it shows nothing of the teacher, but the record there, thought it was the relationship, but the clear and ran as if it and the error still persists. I need to show me the teacher, although in detail there is no record.
    If anyone can help me they are grateful. Do not know if there are any restrictions in 10g, and I did a master detail with the same tables in 6i the error does not introduce myself.
    Thank you.
    Note: Sorry for the English, I am using a translator.

    I have a master-detail block, when the record is empty it shows nothing of the teacher, but the record there, Can you please give more explanation what you exactly want because em still confuse.
    thought it was the relationship, but the clear and ran as if it and the error still persists. I need to show me the teacher, although in detail there is no record.Also this one. It is better to give any example.
    -Ammad

  • Updating rows in a master-detail udo form

    Dear Sirs,
    I'm using a form connected to a UDO and I want to use standard services provided by SAP.
    In a column I have a CFL button, and if I set a new rows data with the following code in the et_CHOOSE_FROM_LIST event:
    oDetailDS.SetValue("U_ItemCode", pVal.Row - 1, code);  // code and name are variables containing values returned by the CFL
    oDetailDS.SetValue("U_ItemName", pVal.Row - 1, name);
    oMatrix.SetLineData(pVal.Row);
    this works fine until I add new rows in sequece, but if I attempt to modify an already inserted row, the sysstem gives the following error:
    "This entry already exist in the following tables "(@MY_UDO_ROWS) (ODBC -2035) [Message 131-183]
    Replacing the previous code with the following one:
    oDetailDS.Clear();
    oDetailDS.InsertRecord(0);
    oDetailDS.SetValue("U_ItemCode", 0, code);
    oDetailDS.SetValue("U_ItemName", 0, name);
    oMatrix.SetLineData(pVal.Row);
    oDetailDS.Clear();
    oMatrix.FlushToDataSource();
    the system let my update existing rows, but the both lineid and visorder fields are completely re-entered with new values and this make me loose all previous references and also change the order data are presente on the matrix.
    Can anyone help me to find the right way to insert neew rows and update existing ones?
    Thank you for the attention
    Massimo Landi

    Hi,
    Whenever you make changes to the existing record and want to update the record, you need to delete all the records from the child table pertaining to that entry. use the below code in BeforeAction=true.
    If pVal.BeforeAction = True Then
                        If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED Then
                            oForm = oSBOApplication.Forms.ActiveForm
                            If pVal.ItemUID = "1" And pVal.FormMode = 2 Then
                                oEdit = oForm.Items.Item("txtOpnCode").Specific 'you master document number/code
                                oRecordSet = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                                oRecordSet.DoQuery("delete from [@MY_UDO_ROWS ] where [Code/DocNum]='" & oEdit.Value & "'")
                            End If
                        End If
                    End If
    Regards,
    Noor
    Edited by: noor_023 on May 10, 2010 4:41 PM
    Edited by: noor_023 on May 10, 2010 4:42 PM

Maybe you are looking for

  • Reading XML file having various foreign languages from web application.

    Greeting.. I'm dealing with a so-called serious problem where-in: I've to read one of the configuration files(XML files) having values in different foreign languages (like Chinese, Japanese, Arabic etc). I've to read that file contents, in as it is f

  • How to install Oracle Developer Suite 10g (10.1.2.0.2)  for Linux

    Hi All, Please let me know how to install oracle forms on Linux red hat. I need to configure it with oracle database 10gR2. Please provide me step by step installation and configuration giude or you can pass on readme file which comes with the softwa

  • Dual display options, Mac Mini

    I have connected an 1440x900 LED display via the Thunderbolt port and have set it up to be a secondary display with a DVI display 1920x1080 as primary . However, using the Thunderbolt port for a VGA interface seems like a bit of a waste! Is there any

  • How to send Zip files as attachments !! Very urgent, Please help!

    I am sending PDF files as attachments using java mail (it works fine). But now my requirement is to zip the PDFs and send them as attachments instead of actual PDF's. But i don't know how to achieve that. does java mail API support zip attachment fac

  • WYSIWYG Font menu in AppleWorks

    Still can't function without AppleWorks. It has been working just fine, even under Leopard on our new Intel iMacs. But ... Installed Adobe CS3 Web Standard a couple of days ago. Loads of extra Adobe fonts were installed with it. Now when I try to set