Delete is not working in ADF 11g

Hi All,
Need urgent help on delete operation. I tried the following approaches to achieve this.
First Approach:
I am deleting the record from table (trinidad readonly table) through a command button using this below code.
public void delMyProfileRec(ActionEvent actionEvent) {
((AppModuleImpl)getApplicationModuleForDataControl()).deleteMyProfileRows();
In APPModule Impl:
public void deleteMyProfileRows(){    
this.getfavoritesView().removeCurrentRow();
this.getDBTransaction().commit();
My problem is, it is always deleting the first record irrespective of the record selection. Reason for deleting the record thru backing bean is, I am using popup window for user confirmation on delete.
Second Approach:
In backing bean, I have an action method to delete the selected record.
public String deleteHistoryRecord(){
BindingContainer bindings = getBindings();
OperationBinding operationBinding =
bindings.getOperationBinding("Delete2");
Object result = operationBinding.execute();
if (!operationBinding.getErrors().isEmpty()) {               
return null;
operationBinding = bindings.getOperationBinding("Commit");
result = operationBinding.execute();
if (!operationBinding.getErrors().isEmpty()) {
return null;
FacesContext fc = FacesContext.getCurrentInstance();
return null;
In both the cases, selected record is not deleting instead it is deleting either first or last record. Please do the needful.
Thanks.

Hi,
Both the approaches given are correct, the problem seems to be with row selection.
Are you sure that rowSelection and selectionListener properties are set on the read-only table?
Eg.
<af:table rowSelection="Single" selectionListener="#{bindings.<tree_binding>.collectionModel.makeCurrent}" .. >
</af:table>Sireesha

Similar Messages

  • Reports who work in BIP 10G does not work in BIP 11G

    Hi!
    We are in the middle of going from BIP 10G to BIP 11G (latest patch installed the 9 of february). We have used the Upgrade Assistant to migrate the reports from 10G to 11G, about 80-90% are working directly.
    But, as always are there some problems. There are 2 major problems I am struggling with for the moment. 1 is long running reports who gets "Connection reset by peer" before the report ends and the more problematic which is this:
    [2012-02-27T11:09:50.397+01:00] [bi_server1] [ERROR] [] [oracle.xdo] [tid: 24] [userId: <anonymous>] [ecid: 22bf1318a95b3a18:-528a5dc9:135b0d15f61:-8000-0000000000025a30,0] [APP: bipublisher#11.1.1] XSL error:[[
    <Line 80, Column 151>: XML-23002: (Error) internal xpath error
    @Line 80 ==> <_G><xsl:if test="sum($G1[(./QADATE02 = current-group()/QADATE02)]/QATRQT) = '0'" xdofo:ctx="3">
    [2012-02-27T11:09:50.397+01:00] [bi_server1] [WARNING] [] [oracle.xdo] [tid: 24] [userId: <anonymous>] [ecid: 22bf1318a95b3a18:-528a5dc9:135b0d15f61:-8000-0000000000025a30,0] [APP: bipublisher#11.1.1] oracle.xdo.XDOException: java.lang.reflect.InvocationTargetException[[
         at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1205)
         at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:276)
         at oracle.xdo.template.FOProcessor.createFO(FOProcessor.java:1973)
         at oracle.xdo.template.FOProcessor.generate(FOProcessor.java:1117)
         at oracle.xdo.servlet.RTFCoreProcessor.transform(RTFCoreProcessor.java:124)
         at oracle.xdo.servlet.CoreProcessor.process(CoreProcessor.java:372)
         at oracle.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:93)
         at oracle.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:1059)
         at oracle.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:624)
         at oracle.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:477)
         at oracle.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:447)
         at oracle.xdo.servlet.XDOServlet.doGet(XDOServlet.java:267)
         at oracle.xdo.servlet.XDOServlet.doPost(XDOServlet.java:299)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.xdo.servlet.metadata.track.MostRecentFilter.doFilter(MostRecentFilter.java:65)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:122)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.xdo.servlet.init.InitCheckingFilter.doFilter(InitCheckingFilter.java:64)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.GeneratedMethodAccessor7820.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:917)
         at oracle.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:609)
         at oracle.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:328)
         at oracle.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:187)
         at oracle.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1181)
         ... 40 more
    Caused by: oracle.xdo11g.xqxp.XQException: XPTY0004
         at oracle.xdo11g.xslt.XSLStylesheet.flushErrors(XSLStylesheet.java:1850)
         at oracle.xdo11g.xslt.XSLStylesheet.execute(XSLStylesheet.java:616)
         at oracle.xdo11g.xslt.XSLStylesheet.execute(XSLStylesheet.java:551)
         at oracle.xdo11g.xslt.XSLProcessor.processXSL(XSLProcessor.java:345)
         at oracle.xdo11g.xslt.XSLProcessor.processXSL(XSLProcessor.java:194)
         at oracle.xdo11g.xslt.XSLProcessor.processXSL(XSLProcessor.java:230)
         at oracle.xdo11g.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:124)
         at sun.reflect.GeneratedMethodAccessor7820.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:920)
         ... 44 more
    Does anyone have the solution for this type of error, we have about 30-40 reports that is behaving like this in BIP 11G but works fine in BIP 10G.
    Can we do anything general in the BIP 11G or does we need to find the solution for each report and change in the template?
    All ideas are appreciated, thanks,
    Anders B

    Hi!
    Have everyone out there been able to use the upgrade assistant without any problem?
    The UA.bat program says everything is ok but the report actually created in BIP 10G does not work in BIP 11G. We are looking for documentation or "findings" of what the problem can be, in a more general way. We are aware of that we probably have to fix this manually, but we dont know what to fix, and it is not so "fun" to be forced to re create all this templates and reports. The datamodell seems for the most of the time works, so we get a working xml source but the creation of the report thru the template dont work.
    Best regards,
    Anders

  • In iTunes 11.1 (I26) , I cannot find how to delete podcast listings showing undownloaded podcasts. Delete does not work. Option Delete does not work.  Dragging to the trash does not work. Under Edit, Delete is greyed out. Mac OS 10.6.8

    in iTunes 11.1 (I26) , I cannot find how to delete podcast listings showing undownloaded podcasts. Delete does not work. Option Delete does not work. Dragging to the trash does not work. Under Edit, Delete is greyed out. Mac OS 10.6.8.
    Tom at the Genius Bar told me that Option Delete would work. It does not.
    I had to upgrade to iTunes 11.1.(I26) because it is required with OS7 on my iPod Touch (5th Gen). I have tried shutting down iTunes, then shutting down the entire system. This is the first in many visits that the Genius Bar gave me a solution that did not work.
    This is a big awkward computer locked to my desk. I would rather not unlock it and then carry it through a shopping center to the Genius Bar if i can avoid oit.
    When I installed iTunes 11.1, I discovered that Ihad to resubscribe to virtually all of the podcasts that I had previously been subscribed to. That was a surprise.

    Hello Achates:
    I did not read the rather long post. If you wish to reinstall OS X 10.4, use your software install DVD. Backup is essential. To minimize your risk, I would use an archive and install:
    http://docs.info.apple.com/article.html?artnum=107120
    In that way, you will have a fresh copy of OS X and your current settings will be preserved.
    Incidentally, I do not agree that the printer problem is best solved by reinstalling OS X. I have had HP printers for sometime and, on one occasion, had difficulty after an upgrade. HP technical support walked me through uninstalling all traces of the HP driver and then reinstalling.
    Barry

  • Other database delete is not working on forall statement

    Dear all,
    My scenario is , i create a program, the program fetch the data from database x and i want to delete on the same x database but i am running this program at y database, so
    so i created a view
    create or replace view vw_ibs_pda_bills_x as
    SELECT *
            FROM ibs_pda_bills_x@testarch1my program
    Declare
          CURSOR c2 IS
          SELECT *
            FROM vw_ibs_pda_bills_x
           WHERE bill_month <= '31-dec-2008'; -- AND bpref_no = :cons;
           opr varchar2(10) := 'DELETE';
          TYPE tsch IS TABLE OF c2%ROWTYPE;
          vtsch      tsch;
          cnt        NUMBER := 0;
          stime      NUMBER;
          etime      NUMBER;
          DURATION   NUMBER;
          rcount     NUMBER;
          errorsd   PLS_INTEGER;
          ecode     NUMBER;
          val1   VARCHAR2 (100);
          val2   VARCHAR2 (100);
          val3   VARCHAR2 (100);
          val4   VARCHAR2 (100);
       BEGIN
          BEGIN
             stime := DBMS_UTILITY.get_time ();
             OPEN c2;
             LOOP
                FETCH c2
                BULK COLLECT INTO vtsch LIMIT 1000;
                IF vtsch.COUNT = 1000
                THEN
                   cnt := cnt + 1;
                END IF;
            If opr = 'INSERT' Then
                    FORALL i IN 1 .. vtsch.COUNT SAVE EXCEPTIONS
                          INSERT INTO dlul.ibs_pda_bills
                        VALUES vtsch (i);
            Else
                    FORALL i IN 1 .. vtsch.COUNT SAVE EXCEPTIONS
                        Delete from vw_ibs_pda_bills_x where bill_month = vtsch(i).bill_month;
            End if;
                EXIT WHEN c2%NOTFOUND;
             END LOOP;
             etime := DBMS_UTILITY.get_time ();
             DURATION := ((etime - stime) / 100) / 60;
             rcount :=
                 (cnt * 1000) + vtsch.COUNT - NVL (SQL%BULK_EXCEPTIONS.COUNT, 0);
         If opr = 'INSERT' Then
             INSERT INTO process_stage_log
                  VALUES (SYSDATE, 'IBS_PDA_BILLS', DURATION, rcount);
         Else
             INSERT INTO process_stage_log
                  VALUES (SYSDATE, 'IBS_PDA_BILLS-D', DURATION, rcount);
         End if;
             CLOSE c2;
             COMMIT;
          EXCEPTION
             WHEN OTHERS
             THEN
                errorsd := SQL%BULK_EXCEPTIONS.COUNT;
                IF errorsd > 0
                THEN
                   FOR j IN 1 .. errorsd
                   LOOP
                      ecode := SQL%BULK_EXCEPTIONS (j).ERROR_CODE;
                      val1 :=
                           vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).sch_code;
                      val2 :=
                           vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).bpref_no;
                      val3 :=
                         vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).bill_month;
                      val4 :=
                         vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).service_code;
                  If opr = 'INSERT' Then         
                      INSERT INTO process_error_log
                           VALUES (SYSDATE, ecode, 'IBS_PDA_BILLS', 'sch_code', val1,
                                   'bpref_no', val2, 'bill_month', val3, 'service_code', val4,'INSERT');
              Else
                      INSERT INTO process_error_log
                           VALUES (SYSDATE, ecode, 'IBS_PDA_BILLS', 'sch_code', val1,
                                   'bpref_no', val2, 'bill_month', val3, 'service_code', val4,'DELETE');
              End if;
                   END LOOP;
                END IF;
          END;
       END pda_insert;the program want to do the delet option for all delete is not working. The program executed successful but the operation delete is not happening
    how to solve this issue.
    please help me
    kanish

    No error encountered in my log table
    the new workaround you said, that is instead of for all , already i tried for i in 1.. to like
    instead of forall delete i tried the following way
    Declare
          CURSOR c2 IS
    SELECT *
            FROM ibs_pda_bills_x@testarch1
           WHERE bill_month <= '31-dec-2008'; -- AND bpref_no = :cons;
           opr varchar2(10) := 'DELETE';
          TYPE tsch IS TABLE OF c2%ROWTYPE;
          vtsch      tsch;
          cnt        NUMBER := 0;
          stime      NUMBER;
          etime      NUMBER;
          DURATION   NUMBER;
          rcount     NUMBER;
          errorsd   PLS_INTEGER;
          ecode     NUMBER;
          val1   VARCHAR2 (100);
          val2   VARCHAR2 (100);
          val3   VARCHAR2 (100);
          val4   VARCHAR2 (100);
       BEGIN
          BEGIN
             stime := DBMS_UTILITY.get_time ();
             OPEN c2;
             LOOP
                FETCH c2
                BULK COLLECT INTO vtsch LIMIT 1000;
                IF vtsch.COUNT = 1000
                THEN
                   cnt := cnt + 1;
                END IF;
            If opr = 'INSERT' Then
                    FORALL i IN 1 .. vtsch.COUNT SAVE EXCEPTIONS
                          INSERT INTO dlul.ibs_pda_bills
                        VALUES vtsch (i);
            Else
                   /* fORALL i IN 1 .. vtsch.COUNT SAVE EXCEPTIONS
                     Delete from vw_ibs_pda_bills_x where to_char(bill_month,'dd-mm-rrrr') = to_char(vtsch (i).bill_month,'dd-mm-rrrr');*/
                     for i in 1..vtsch.count loop
                       delete ibs_pda_bills_x@testarch1 where to_char(bill_month,'dd-mm-rrrr') = to_char(vtsch (i).bill_month,'dd-mm-rrrr');
                     end loop; 
            End if;
                EXIT WHEN c2%NOTFOUND;
             END LOOP;
             etime := DBMS_UTILITY.get_time ();
             DURATION := ((etime - stime) / 100) / 60;
             rcount :=
                 (cnt * 1000) + vtsch.COUNT - NVL (SQL%BULK_EXCEPTIONS.COUNT, 0);
         If opr = 'INSERT' Then
             INSERT INTO process_stage_log
                  VALUES (SYSDATE, 'IBS_PDA_BILLS', DURATION, rcount);
         Else
             INSERT INTO process_stage_log
                  VALUES (SYSDATE, 'IBS_PDA_BILLS-D', DURATION, rcount);
         End if;
             CLOSE c2;
             COMMIT;
          EXCEPTION
             WHEN OTHERS
             THEN
                errorsd := SQL%BULK_EXCEPTIONS.COUNT;
                IF errorsd > 0
                THEN
                   FOR j IN 1 .. errorsd
                   LOOP
                      ecode := SQL%BULK_EXCEPTIONS (j).ERROR_CODE;
                      val1 :=
                           vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).sch_code;
                      val2 :=
                           vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).bpref_no;
                      val3 :=
                         vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).bill_month;
                      val4 :=
                         vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).service_code;
                  If opr = 'INSERT' Then         
                      INSERT INTO process_error_log
                           VALUES (SYSDATE, ecode, 'IBS_PDA_BILLS', 'sch_code', val1,
                                   'bpref_no', val2, 'bill_month', val3, 'service_code', val4,'INSERT');
              Else
                      INSERT INTO process_error_log
                           VALUES (SYSDATE, ecode, 'IBS_PDA_BILLS', 'sch_code', val1,
                                   'bpref_no', val2, 'bill_month', val3, 'service_code', val4,'DELETE');
              End if;
                   END LOOP;
                END IF;
          END;
       END pda_insert;i am receiving the following error
    ORA-02055: distributed update operation failed; rollback required
    ORA-06531: Reference to uninitialized collection
    ORA-06512: at line 77
    ORA-06531: Reference to uninitialized collection
    kanish

  • Multiple delete is not working.

    Hi,
    Multiple delete is not working. Please find my backend bean code. Please let me know the issue in my code.
    Table:
    <af:table value="#{bindings.CmProcessParamValueView13.collectionModel}"
    var="row"
    rows="#{bindings.CmProcessParamValueView13.rangeSize}"
    emptyText="#{bindings.CmProcessParamValueView13.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.CmProcessParamValueView13.rangeSize}"
    rowBandingInterval="1"
    selectedRowKeys="#{bindings.CmProcessParamValueView13.collectionModel.selectedRow}"
    selectionListener="#{bindings.CmProcessParamValueView13.collectionModel.makeCurrent}"
    rowSelection="multiple"
    binding="#{backingBeanScope.backing_app_RunCalcPage.t1}"
    id="t1" width="720px" inlineStyle="height:140px;" partialTriggers="cb6 cb3"
    filterVisible="true" filterModel="#{bindings.CmProcessParamValueView13.queryDescriptor}" >
    <af:column sortProperty="ParamValue7"
    sortable="true" width="690"
    headerText="Comm Type"
    rowHeader="unstyled"
    id="c2" align="left" filterable="true">
    <af:outputText value="#{row.ParamValue7}"
    id="ot4"/>
    </af:column>
    </af:table>
    Backing Bean Delete Code:
    RowKeySet rowKeySet = (RowKeySet)this.t1.getSelectedRowKeys();
    CollectionModel cm = (CollectionModel)this.t1.getValue();
    System.out.println("RowKeySet is: "+ rowKeySet.getSize());
    for (Object facesTreeRowKey : rowKeySet) {
    cm.setRowKey(facesTreeRowKey);
    JUCtrlHierNodeBinding rowData =
    (JUCtrlHierNodeBinding)cm.getRowData();
    System.out.println("RowData is : "+rowData.getAttribute("ParamValue7"));
    rowData.getRow().remove();
    Thanks.

    Issue is resolved...
    Solution is,
    Remove selectionListener and selectedKey attributes from the table.
    Delete code is:
    DCBindingContainer dcBindings =
    (DCBindingContainer)getBindings();
    DCIteratorBinding dcIterator =
    dcBindings.findIteratorBinding("Iterator...");
    RowSetIterator rs = dcIterator.getRowSetIterator();
    RowKeySet rks = this.t1.getSelectedRowKeys();
    Iterator rksIter = rks.iterator();
    while (rksIter.hasNext()) {
    List l = (List) rksIter.next();
    Key key = (Key)l.get(0);
    Row row = rs.getRow(key);
    if(row != null)
    row.remove();
    }

  • HT1750 space.bar.and.delete.key.not.working.on.wireless.keyborad

    space.anddelte
    space.and.delete.keys.not.working.on.wireless.keyboard.help!

    Before replacing the keyboard do 2-3 SMC resets using the instructions in iMac SMC and PRAM reset

  • Is it possible to check automati all bookmarks, and delete the not working bookmarks

    Is it possible to check automatic all bookmarks, and delete the not working bookmarks

    Try this extension:
    *CheckPlaces: https://addons.mozilla.org/firefox/addon/checkplaces/

  • At the top of my Mozilla home page, it lists the current URL site I am on. How do I delete them and the others in the drop down box? Highlighting and hitting delete does not work

    At the top of my Mozilla home page, it lists the current URL site, such as http://www.safeco.com, I am on plus the others in the drop down box. How do I delete them. Highlighting and hitting delete does not work.
    I am using windows Vista 007 and Mozila 3.6.1.3

    Do those entries have a yellow star at the far right?
    If they have then they are bookmarks. You can remove them if you open that link and click the star to open the Edit This Bookmark dialog and click the Remove button in that dialog.
    * [[Clearing Location bar history]]
    * [[Cannot clear Location bar history]]

  • Note 974949.1  (Section 3) says  that EBS JAAS is not intended for ADF 11g

    We are using EBS R12.1.3 and JDEV 11g (11.1.1.4) and want to develop some custom applications based on EBS database, and would like to utilize fnd_users table for user athuentication. Note 974949.1 (Section 3) says that EBS JAAS is not intended for ADF 11g. So whats the other method we have to use for ADF 11g?

    Jemar,
    As far as i know there is no integration of EBS with ADF. Anyways, Refer http://forums.oracle.com/forums/message.jspa?messageID=9369406#9369406.
    Hope this thread helps u.
    Note :- Close your previous thread http://forums.oracle.com/forums/message.jspa?messageID=9369406#9369406 by marking helpful & correct reply .if your issue has been resolved. This would be really helpful for someone in need.
    Regards,
    Gyan

  • I have a MacBook Air using Maverick. I have files in the trash I want to recover. I do not have "Put Back" and Command   Delete does not work.

    I have a MacBook Air using Maverick. I have files in the trash I want to recover to their original files. I do not have "Back Up" and "Command + Delete" does not work.

    Drag them out of the Trash and put them in their original location. Put Back may work on one file at a time.

  • DBsequence not working in ADF app

    HI All
    I am using Jdeveloper 11g release 2 (11.1.2.3.0) and Oracle DB.
    I have created an entity object and set the type of the filed as DBseequence but forgot to insert the sequence+trigger in the database for the table from which it was created.
    I have also created a view object for this EO, and through the app module have used it i a page.
    Clearly the submit and/or commit were not working because of the missing seq+trigger.
    I created the seq + trigger on the db, everything works fine if I insert a record from the db, and the id is generated as it should.
    When i try to do the same from ADF (tried from the page and from the model tester) i get the following error : (oracle.jbo.AttrValException) JBO-27014: Attribute Invoiceid in Invoices is required.
    It seems that the fact that there is a sequence to generate the id is not recognized.
    Any ideas?
    Thank you

    Or you use the groovy approach which doesn't need the db trigger and is easy to implement.
    Check out http://tompeez.wordpress.com/2011/09/02/using-groovy-expression-to-set-a-primary-key-with-a-sequence-number/
    Timo

  • Delete is not working properly

    I modified the Delete server behavior to delete associated
    records from the child tables and then delete the parent table as
    follows:
    if ((isset($_POST['peereduid'])) &&
    ($_POST['peereduid'] != "")) {
    $deleteTPRSQL = sprintf("DELETE FROM TEENPEERRELATIONSHIP
    WHERE PEEREDU_OWNS_ID=%s AND TEEN_ID=%s AND PEEREDU_TALKS_ID=%s AND
    CONTACT_DATE=str_to_date(%s, '%%Y-%%c-%%e')",
    GetSQLValueString($_POST['peereduid'], "int"),
    GetSQLValueString($_POST['teenid'], "int"),
    GetSQLValueString($_POST['peeredutalksid'], "int"),
    GetSQLValueString($_POST['contactdate'], "date"));
    mysql_select_db($database_cnPeer_Outreach,
    $cnPeer_Outreach);
    $Result1 = mysql_query($deleteTPRSQL, $cnPeer_Outreach) or
    die(mysql_error());
    $deleteCRBSQL = sprintf("DELETE FROM CONTACTREFERREDBY WHERE
    PEEREDU_OWNS_ID=%s AND TEEN_ID=%s AND PEEREDU_TALKS_ID=%s AND
    CONTACT_DATE=str_to_date(%s, '%%Y-%%c-%%e')",
    GetSQLValueString($_POST['peereduid'], "int"),
    GetSQLValueString($_POST['teenid'], "int"),
    GetSQLValueString($_POST['peeredutalksid'], "int"),
    GetSQLValueString($_POST['contactdate'], "date"));
    mysql_select_db($database_cnPeer_Outreach,
    $cnPeer_Outreach);
    $Result1 = mysql_query($deleteCRBSQL, $cnPeer_Outreach) or
    die(mysql_error());
    $deleteCTSQL = sprintf("DELETE FROM CONTACTTOPIC WHERE
    PEEREDU_OWNS_ID=%s
    AND TEEN_ID=%s AND PEEREDU_TALKS_ID=%s AND
    CONTACT_DATE=str_to_date(%s, '%%Y-%%c-%%e')",
    GetSQLValueString($_POST['peereduid'], "int"),
    GetSQLValueString($_POST['teenid'], "int"),
    GetSQLValueString($_POST['peeredutalksid'], "int"),
    GetSQLValueString($_POST['contactdate'], "date"));
    mysql_select_db($database_cnPeer_Outreach,
    $cnPeer_Outreach);
    $Result1 = mysql_query($deleteCTSQL, $cnPeer_Outreach) or
    die(mysql_error());
    $deleteCMSQL = sprintf("DELETE FROM CONTACTMATERIAL WHERE
    PEEREDU_OWNS_ID=%s AND TEEN_ID=%s AND PEEREDU_TALKS_ID=%s AND
    CONTACT_DATE=str_to_date(%s, '%%Y-%%c-%%e')",
    GetSQLValueString($_POST['peereduid'], "int"),
    GetSQLValueString($_POST['teenid'], "int"),
    GetSQLValueString($_POST['peeredutalksid'], "int"),
    GetSQLValueString($_POST['contactdate'], "date"));
    mysql_select_db($database_cnPeer_Outreach,
    $cnPeer_Outreach);
    $Result1 = mysql_query($deleteCMSQL, $cnPeer_Outreach) or
    die(mysql_error());
    $deleteCSSQL = sprintf("DELETE FROM CONTACTSERVICE WHERE
    PEEREDU_OWNS_ID=%s
    AND TEEN_ID=%s AND PEEREDU_TALKS_ID=%s AND
    CONTACT_DATE=str_to_date(%s, '%%Y-%%c-%%e')",
    GetSQLValueString($_POST['peereduid'], "int"),
    GetSQLValueString($_POST['teenid'], "int"),
    GetSQLValueString($_POST['peeredutalksid'], "int"),
    GetSQLValueString($_POST['contactdate'], "date"));
    mysql_select_db($database_cnPeer_Outreach,
    $cnPeer_Outreach);
    $Result1 = mysql_query($deleteCSSQL, $cnPeer_Outreach) or
    die(mysql_error());
    $deletePRTSQL = sprintf("DELETE FROM PEERRECOMMENDSTALK
    WHERE PEEREDU_OWNS_ID=%s AND TEEN_ID=%s AND PEEREDU_TALKS_ID=%s AND
    CONTACT_DATE=str_to_date(%s, '%%Y-%%c-%%e')",
    GetSQLValueString($_POST['peereduid'], "int"),
    GetSQLValueString($_POST['teenid'], "int"),
    GetSQLValueString($_POST['peeredutalksid'], "int"),
    GetSQLValueString($_POST['contactdate'], "date"));
    mysql_select_db($database_cnPeer_Outreach,
    $cnPeer_Outreach);
    $Result1 = mysql_query($deletePRTSQL, $cnPeer_Outreach) or
    die(mysql_error());
    $deleteTPASQL = sprintf("DELETE FROM TEENPROMISESACTION
    WHERE PEEREDU_OWNS_ID=%s AND TEEN_ID=%s AND PEEREDU_TALKS_ID=%s AND
    CONTACT_DATE=str_to_date(%s, '%%Y-%%c-%%e')",
    GetSQLValueString($_POST['peereduid'], "int"),
    GetSQLValueString($_POST['teenid'], "int"),
    GetSQLValueString($_POST['peeredutalksid'], "int"),
    GetSQLValueString($_POST['contactdate'], "date"));
    mysql_select_db($database_cnPeer_Outreach,
    $cnPeer_Outreach);
    $Result1 = mysql_query($deleteTPASQL, $cnPeer_Outreach) or
    die(mysql_error());
    $deleteTPTSQL = sprintf("DELETE FROM TEENPROMISESTALK WHERE
    PEEREDU_OWNS_ID=%s AND TEEN_ID=%s AND PEEREDU_TALKS_ID=%s AND
    CONTACT_DATE=str_to_date(%s, '%%Y-%%c-%%e')",
    GetSQLValueString($_POST['peereduid'], "int"),
    GetSQLValueString($_POST['teenid'], "int"),
    GetSQLValueString($_POST['peeredutalksid'], "int"),
    GetSQLValueString($_POST['contactdate'], "date"));
    mysql_select_db($database_cnPeer_Outreach,
    $cnPeer_Outreach);
    $Result1 = mysql_query($deleteTPTSQL, $cnPeer_Outreach) or
    die(mysql_error());
    $deleteTPMVSQL = sprintf("DELETE FROM
    TEENPROMISESMEDICALVISIT WHERE PEEREDU_OWNS_ID=%s AND TEEN_ID=%s
    AND PEEREDU_TALKS_ID=%s AND CONTACT_DATE=str_to_date(%s,
    '%%Y-%%c-%%e')",
    GetSQLValueString($_POST['peereduid'], "int"),
    GetSQLValueString($_POST['teenid'], "int"),
    GetSQLValueString($_POST['peeredutalksid'], "int"),
    GetSQLValueString($_POST['contactdate'], "date"));
    mysql_select_db($database_cnPeer_Outreach,
    $cnPeer_Outreach);
    $Result1 = mysql_query($deleteTPMVSQL, $cnPeer_Outreach) or
    die(mysql_error());
    $deleteSQL = sprintf("DELETE FROM CONTACT WHERE
    PEEREDU_OWNS_ID=%s
    AND TEEN_ID=%s AND PEEREDU_TALKS_ID=%s AND
    CONTACT_DATE=str_to_date(%s, '%%Y-%%c-%%e')",
    GetSQLValueString($_POST['peereduid'], "int"),
    GetSQLValueString($_POST['teenid'], "int"),
    GetSQLValueString($_POST['peeredutalksid'], "int"),
    GetSQLValueString($_POST['contactdate'], "date"));
    mysql_select_db($database_cnPeer_Outreach,
    $cnPeer_Outreach);
    $Result1 = mysql_query($deleteSQL, $cnPeer_Outreach) or
    die(mysql_error());
    $deleteGoTo = "peerselect.php";
    if (isset($_SERVER['QUERY_STRING'])) {
    $deleteGoTo .= (strpos($deleteGoTo, '?')) ? "&" : "?";
    $deleteGoTo .= $_SERVER['QUERY_STRING'];
    header(sprintf("Location: %s", $deleteGoTo));
    The problem is that the deleteGoTo is not working. After the
    delete, I am shown the original page again. Can anyone tell me what
    I need to do to get it working?

    Hi paramu
    I think you didn't get my question
    The new row is not saved into DB, user add a new record simply he change his mind half way and need
    to delete new record in form (As I understand this row only created in related iterator)
    So he expect after delete form goes back to previous state
    Thanks
    Mohsen

  • Delete button not working on the desktop

    Hello There,
    I am a new mac user. I don't know but for some reason, delete button on the desktop is not working, i.e. if I want to delete something I have to right click and then select "move to trash", is there are workaround for that, or it is like that only.
    Thanks in advance!!
    Regards
    Nikhil

    Hi There,
    First, welcome to Macintosh! To delete a file, use Command + Delete (The key with the apple logo on it is the command key.) Pressing delete alone will not move the file to the trash.
    Good luck!

  • Delete query not working ?

    hi all,
    this delete query is not working for me. Could you please help me and tell me ho to resolve this ? The error i get when executing this query is "ORA-00903: invalid table name". The table name is correct I fail to understand why does it show invalid table name.
    Thanking you all.
    Regards

    Obviously the table name isn't correct. Either that, or the user that the query is running under doesn't have permissions to view it, so it's getting the response that the table does not exist.
    Look at the user you are connecting as. Log in to sqlplus and make sure that user has select perms on the table.
    Check your spelling of the table name. Typos happen.

  • Delete rule not working

    I subscribe to a mailing list using a particular email address (not my primary account), all mail for which is redirected into a mailbox. I only want to keep messages from the last five days. I have a Rule which is set as follows:
    If ALL of the following conditions are met:
    Account = <the account>
    Date Received is Greater Than 5 days old
    Perform the following actions:
    Delete Message
    This rule does does not work. It is the first rule in my list of Rules. And it simply does nothing. Why?

    Maxplanar,
    Mail rules only run when the item is first processed. So you are in effect going to delete things only when they are received in an "old" state.
    I would set up a smart mailbox or two. One to only show the 5 days of mail you want to pay attention to. Optionally make another smart mailbox to contain messages older than 5 days. You can just refer to the first mailbox and only see the messages you want. The other mailbox will be there for once a month when you select all the messages and delete them.
    Most macs can handle 5 to 10 thousand messages without even starting to slow down. Perhaps once you have a managable folder that shows you the messages you care to see, you can live with manually cleaning up much less often?

Maybe you are looking for

  • Facing problem to display the content in Android Emulator of my mobile app

    Hi All, I have developed an adf mobile application as in the following and i successfully deployed my app in android emulator..... Link i have used to create basic mobile App ------------ http://docs.oracle.com/cd/E18941_01/tutorials/MobileTutorial/j

  • Can't add a new menu

    Hi, (FM10, Win XP) Following the example in the scripting guide to add a menu with ES, I just can't get it to work. I expect the menu to appear after I run the script, which it does when I run the equivalent with the FDK. What am I missing here? var

  • Web-building my site. FIREFOX and NAVIGATOR is great but not SAFARI. Why?

    Hi, I am building my web site http://www.philthesecurityguard.com/ everything works great on FIREFOX and NAVIGATOR but not SAFARI. Example: on my web site, I click on REAL LETTERS in SAFARI and HALF of orange squares appears outside of my letters. FI

  • ITunes U launcher directs *some* computers to Store homepage instead

    I'm the iTunes U administrator for my college. Only two of my users have reported this problem, and I cannot reproduce the error anywhere other than on their computers. Behaviour: Launcher button (custom code) is clicked. iTunes starts, Store is open

  • Update on primary key in indexed table

    I need to update an ID# in a table that has been indexed on ID# (and two other columns) using the indextype is ctxsys.context method. Oracle 10g is throwing the following errors: ORA-20000 "failed in the execution of the ODCINDEXUPDATE routine" DRG-5