Inserting rows although the raise_application_error is raised

Hi,
I have created two triggers on a table (one before insert and the other after insert).
The after trigger calls a procedure...
The before insert trigger is as follows:
create or replace trg_
before insert on xf
or each row
begin
select a_date from y
where ...;
if x>:new.date_of_a_table_inserted_via_a_form
then
raise_application_error....
end if;
end;
Altough i insert a date value equal to a_date - not previous to a date which has already been inserted the trigger displays the error message (raise_application_error....(message)) but the row(s) are inserted....in the table.... Can you spot what may be wrong...????
many thanks,
Simon

The reason for this phenomenon (although an alert is displayed, the record is saved in the database) seems to be the ON-ERROR .pll library i have attached to the form....
The db trigger works absolutely right.....(to answer to a previous question/note)
In this library i have written if..elsif...elsif....end if; construct in order to catch various db errors.... The problem is focused in the management of user-defined errors , i have written in db triggers mainly.....
Can you pinpoint the error.....in bold below????
I have also pasted the code for errors (-2291,-1,-2290) in order - maybe- the logic.....
PROCEDURE PRC_DISPLAY_ERROR IS
  CONSTRAINT_NAME_VAR ALL_CONSTRAINTS.CONSTRAINT_NAME%TYPE;
  AL_ID ALERT;
  AL_N NUMBER;
  DBMS_ERROR_CODE_VAR NUMBER;
  DBMS_ERROR_TEXT_VAR VARCHAR2(3000);
  DBMS_ERROR_FIELD_VAR VARCHAR2(30);
  DBMS_ERROR_TEXT_TABLE_VAR VARCHAR2(60);
  ALERT_CODE_VAR REF_ALERTS.ALERT_CODE%TYPE;
  ALERT_MSG_VAR REF_ALERTS.ALERT_MSG%TYPE;
  HELP_MSG_VAR REF_ALERTS.HELP_MSG%TYPE;
  INSTR_APO NUMBER(3);
  INSTR_EOS NUMBER(3);
  LENGTH_VAR NUMBER(3);
  INSTR_APO_TABLE NUMBER(3);
  INSTR_EOS_TABLE NUMBER(3);
  LENGTH_TABLE_VAR NUMBER(3);
  SEARCH_CONDITION_VAR ALL_CONSTRAINTS.SEARCH_CONDITION%TYPE;
  CONSTRUCTED_TEXT_VAR VARCHAR2(4000);
  CONSTRUCTED__TEXT_VAR VARCHAR2(4000);
  ALL_STRING_VAR VARCHAR2(600);
  FIELD_VAR VARCHAR2(30);
  FIELD_VAR_ VARCHAR2(30);
  TABLE_VAR VARCHAR2(30);
BEGIN
                           /*DBMS - ERRORS*/
     DBMS_ERROR_TEXT_VAR:=DBMS_ERROR_TEXT;
     DBMS_ERROR_CODE_VAR:=DBMS_ERROR_CODE;
                           /* FOREIGN/PRIMARY KEY , CHECK CONSTRAINT...*/
     IF DBMS_ERROR_CODE_VAR IN (-2291,-1,-2290)
       THEN
             INSTR_APO:=INSTR(DBMS_ERROR_TEXT_VAR,'.',1)+1;
             INSTR_EOS:=INSTR(DBMS_ERROR_TEXT_VAR,')',1);
            LENGTH_VAR:=INSTR_EOS-INSTR_APO;
               DBMS_ERROR_TEXT_VAR:=SUBSTR(DBMS_ERROR_TEXT_VAR,INSTR_APO,LENGTH_VAR);                    
            BEGIN
                 SELECT DISTINCT B.ALERT_CODE , ALERT_MSG , HELP_MSG INTO ALERT_CODE_VAR , ALERT_MSG_VAR , HELP_MSG_VAR
                    FROM REF_ALERTS_DET A, REF_ALERTS B
                    WHERE A.ALERT_CODE=B.ALERT_CODE
                    AND CONSTRAINT_NAME = DBMS_ERROR_TEXT_VAR;
                 EXCEPTION
                       WHEN NO_DATA_FOUND
                        THEN
                           AL_ID:=FIND_ALERT('AL_NOTE');
                           AL_N:=SHOW_ALERT(AL_ID);
              RETURN;
                 END;
                 AL_ID:=FIND_ALERT('AL_STOP');
        SET_ALERT_PROPERTY(AL_ID,ALERT_MESSAGE_TEXT,ALERT_MSG_VAR||'.'||HELP_MSG_VAR);
        AL_N:=SHOW_ALERT(AL_ID);
elsif ......
elsif.....
elsif DBMS_ERROR_CODE_VAR IN (-20000,-20001,-20002,-20003,-20004,-20005,-20005,-20006,-20007,-20008,-20009,-20010,
     -20011,-20012,-20013,-20014,-20015,-20016,-20017,-20018,-20019,-20020,-20021,-20022,
     -20023,-20024,-20025,-20026,-20027,-20028,-20029,-20030,-20031,-20032,
     -20033,-20034,-20035,-20036,-20037,-20038,-20039,-20040,-20041,-20042,
     -20043,-20044,-20045,-20046,-20047,-20048,-20049,-20050,-20051,-20052,
     -20053,-20054,-20055,-20056,-20057,-20058,-20059,-20060,-20061,-20062,
     -20063,-20064,-20065,-20066,-20067,-20068,-20069,-20070,-20071,-20072,
     -20073,-20074,-20075,-20076,-20077,-20078,-20079,-20080,-20081,-20082,
     -20083,-20084,-20085,-20086,-20087,-20088,-20089,-20090,-20091,-20092,
     -20093,-20094,-20095,-20096,-20097,-20098,-20099)
     THEN
     INSTR_APO:=INSTR(DBMS_ERROR_TEXT_VAR,':',1)+1;
          INSTR_EOS:=INSTR(DBMS_ERROR_TEXT_VAR,'ORA-',2)-1;
          LENGTH_VAR:=INSTR_EOS-INSTR_APO;
               DBMS_ERROR_TEXT_VAR:=SUBSTR(DBMS_ERROR_TEXT_VAR,INSTR_APO,LENGTH_VAR);
               AL_ID:=FIND_ALERT('AL_STOP');
SET_ALERT_PROPERTY(AL_ID,ALERT_MESSAGE_TEXT,DBMS_ERROR_TEXT_VAR);
AL_N:=SHOW_ALERT(AL_ID);
     END IF;     

Similar Messages

  • Insert rows in the middle

    I'm trying to figure out how to insert rows in the middle
    row 1
    row 2
    row 3
    I need to insert 2 rows before row 2
    I know I have to use the AddRow(1, Position) however after many tries, it doesn't seem to work or at least I don't know how to
    insert the second row as if I do +1 it's not realy adequate, also, pVal.Row reports Row 2 and in the documentation it sais 0 based which is not right so I'm a bit confused on how to go about that.
    Edited by: Marc Roussel on Aug 10, 2011 8:23 AM
    Here's the whole thing, maybe you'll understand where I'm at :
    I enter an ItemCode which is a kit.  After the person enter the quantity, I pop a .NET Windows form which asks for questions and then after the questions I get back and add the lines but it seems that when I add the lines, I'm still on the line I was entering the kit and it overrides it instead of Adding the new row at the position I'm asking it to add the row.
    Even if I do pVal.Row +1 or +2 or +3, it doesn't matter
    Edited by: Marc Roussel on Aug 10, 2011 8:28 AM

    The code below adds the 2 lines all right but then, a blank line after and the line that was already there below is destroyed.  Don't ask me why and what is happening to that existing line which seems to have lost the ItemCode or I don't know what happened
    CurrentLine = pVal.Row;
    CurrentLine++;
    oMatrix.AddRow(1, CurrentLine);
    SAP.SetCellValue(oMatrix, SAPFramework.Enums.MARKETING_COLS.B1_ITEMCODE, CurrentLine, "01P38");
    SAP.SetCellValue(oMatrix, "U_KitSeq", CurrentLine, NewKitSeq);
    CurrentLine++;
    oMatrix.AddRow(1, CurrentLine);
    SAP.SetCellValue(oMatrix, SAPFramework.Enums.MARKETING_COLS.B1_ITEMCODE, CurrentLine, "03P12");
    SAP.SetCellValue(oMatrix, "U_KitSeq", CurrentLine, NewKitSeq);
    I did not know that doing a simple thing like this would be a hard business...
    Edited by: Marc Roussel on Aug 10, 2011 9:15 AM

  • Unable to insert rows in the Web ADI document

    Hi,
    I am facing issue with Web ADI document while inserting the new rows. I have configured the Web ADI to update the SIT information of employees. I am able to download the data, modify the data and upload it successfully. However, when I try to add new rows in the document, it says 'Context values cannot be changed'.
    Could anyone help me out as to what needs to be done to add new rows to the sheet ?
    Regards
    Jhansi

    There are certain areas of the Web ADI template where information cannot be changed, particularly in the Context area. Trying to change values in this area will result in the error

  • Unable to insert rows into the table

    My insert statement below is not correct, when i try run, its encoutering error "table or view does not exist".
    Basically what i am doing here is collecting the table name in FOR variable which stores the table name in this variable. This variable, i am using as table. I know this is not the proper way, please let me how can insert the complete table rows with the following code.
    DROP TABLE TEMP;
    CREATE TABLE TEMP AS SELECT * FROM Comp WHERE 1=2;
    DECLARE
         I INTEGER DEFAULT 1;
    S VARCHAR2(50);
    begin
    for C in (select TABLE_NAME INTO S from USER_TABLES where TABLE_NAME like 'CABLE%' and TABLE_NAME NOT like '%OLD' and Num_ROWS > 0 order by TABLE_NAME) loop
    INSERT INTO TEMP SELECT * FROM c.TABLE_NAME;
    dbms_output.put_line(c.table_name);
    end loop;
    end;
    The above insert statement is not correct. How can i write proper way.
    Thanks.
    Best Regards
    Arshad

    user13360241 wrote:
    My insert statement below is not correct, when i try run, its encoutering error "table or view does not exist".
    Basically what i am doing here is collecting the table name in FOR variable which stores the table name in this variable. This variable, i am using as table. I know this is not the proper way, please let me how can insert the complete table rows with the following code.
    DROP TABLE TEMP;
    CREATE TABLE TEMP AS SELECT * FROM Comp WHERE 1=2;
    DECLARE
         I INTEGER DEFAULT 1;
    S VARCHAR2(50);
    begin
    for C in (select TABLE_NAME INTO S from USER_TABLES where TABLE_NAME like 'CABLE%' and TABLE_NAME NOT like '%OLD' and Num_ROWS > 0 order by TABLE_NAME) loop
    INSERT INTO TEMP SELECT * FROM c.TABLE_NAME;
    dbms_output.put_line(c.table_name);
    end loop;
    end;
    The above insert statement is not correct. How can i write proper way.
    Thanks.
    Best Regards
    ArshadSTMT := 'INSERT INTO TEMP SELECT * FROM ';
    STMT := STMT || S;
    EXECUTE IMMEDIATE STMT;

  • Insert rows in the ViewObject

    Hi forum,
    I'm implementing an application that imports data into a database.
    I insert 100.000 rows in a ViewObject and then I do a commit to the database after doing some operations in order to select which objects have to be imported.
    Is it possible to insert more then one row at the time,that is, something like a massive insertion?
    I'm asking this, because currently the application takes about 2 hours to perform the task.It's too long.
    Thank you

    Here's how I did it.
    1) Create the commit operation in your data binding. Bind to your AM.
    2) In your backing bean lookup the OperationBinding. (I used the ADFUtil.java from the StoreFrontModule example code for this.)
    OperationBinding commitOperation = ADFUtils.findOperation("Commit");
    3) Then just do:
    commitOperation.execute();
    Rodger...
    Edited by: rodger63 on Jan 5, 2010 1:24 PM
    Edited by: rodger63 on Jan 5, 2010 1:26 PM

  • MAX(ROWID) and inserting rows at the end of the table

    Hi,
    I know this will be another lame question but I simply didn't find the answer anywhere. I create ID (primary key) for rows manually so I have this code:
    String query = "SELECT * FROM CIS_SEG_SKUPINY WHERE ROWID=(SELECT MAX(ROWID) FROM CIS_SEG_SKUPINY)";
    rset = stmt.executeQuery(query);
    if (!rset.next()) {
    <p style="padding-left:10px">newID = new Number(1);
    System.out.println(newID);</p>
    else {
    <p style="padding-left:10px">rset.beforeFirst();
    while (rset.next()) {
    <p style="padding-left:20px">int lastID = rset.getInt("ID");
    System.out.println(lastID);
    newID = new Number(lastID + 1);
    System.out.println(newID);
    }</p>
    }</p>
    css.setId(newID);
    Row globalsRow = getGlobals().first();
    css.setKodSegSkupiny((String)globalsRow.getAttribute("GroupCode"));
    css.setPopis((String)globalsRow.getAttribute("Description"));
    css.setBarva((Number)globalsRow.getAttribute("Colour"));
    getDBTransaction().commit();
    When the table is empty newID is set to 1 and row inserted. Now I have one row in the table (with ID=1) so newID is set to 2 and row inserted BUT it is inserted BEFORE the first row. So when I try to insert third row lastID is 1 not 2. I tried to find some command which would insert new row after the last one but unfortunately I wasn't successfull.
    Edited by: Herald on Mar 28, 2009 11:11 AM

    Herald,
    I am sorry to say that there are so many things wrong with your approach, that I don't know where to begin...
    1). ROWID is a pseudo column in Oracle.. It has no meaning of first, last, middle, or otherwise. SELECT MAX(ROWID) will get you some row.
    2). In a relational database, there is no concept of first or last row in a table. If you expect the rows in some order, use an order by.
    3). Ignoring your implementation and addressing your intent - you should not be creating a primary key by getting the max already in the table and adding one. You will, using your technique, get duplicates in a multi-user scenario. If you fix your implementation to not give duplicates in a multi-user scenario (no, I won't show you how), you will use a table lock, and therefor inhibit scalability in a serious way.
    The proper and commonly accepted way to generate a numeric primary key in Oracle would be to use a sequence and a trigger to populate the sequence. Lots of examples to be found in this forum, but just have a read of the ADF Developers Guide for Forms/4GL Developers (for 10g) or the Fusion Developers Guide (for 11g) to find one. The term to search for would be DBSequence.
    John

  • InsertRow does not show the inserted row on the view

    hello:
    The code below works well and shows the row on the view when added. However, when there are several existing rows and I have to scroll to next pages. an insert button on that page does not show the new Row at all. Is there a way for me to see the row even if I scroll over to the last page and try an insert?
    ViewObject myVO = this.getMyView();
    Row newRow = myVO.createRow();
    newRow.setAttribute("Id", myId);
    myO.insertRow(newRow);
    Thanks

    Hi,
    I also have problems with code above for inserting a new row.
    When I insert a new row in a table and click on column header (to change sorting), that row (and any other new row before committing) disappears from table. And if I commit that table (without missing row), the missing row reappears with next refresh.
    Selection in that table (using SelectOne component with Autosubmit=true) also doesn't work with new rows (with existing rows it works fine). Selection allways sticks on first inserted row!
    Something weird is happening here...
    Please help.

  • ExcuteQuery does not return the newly inserted row in the database

    Jdeveloper Studio Edition Version 11.1.1.4.0
    I have a  use case where i insert a row in the database (without commit) and re-query the iterator to see the data in the jsf page. This was working file till we were using a directly the data control. Now our data control is inside a primary data control and it has stopped working. We don't see the inserted record in the page. Just to add that we are creating both the master and the detail record using the database procedure. Please helps us with a workaround or a solution and i have attached the code for reference.
        public void createSCAgr(ActionEvent actionEvent) {
              BindingContainer bindings = getBindings();
              OperationBinding operationBindingSC = bindings.getOperationBinding("createAgreement"); // this is calling a procedure to create record in the both master and detail table
              Object resultSC = operationBindingSC.execute();
              DCIteratorBinding iterator2 = ADFUtils.findIterator("PadForAgr1Iterator");
            iterator2.executeQuery();        // re-query the master record
              DCIteratorBinding iterator1 = ADFUtils.findIterator("FinForAgr1Iterator");
              iterator1.executeQuery();  // requery thedetail record
    best regards
    Sanjay Chatterji

    Hi Timo,
    Yes, I mean root application as the direct data control.
    This has been working earlier and the difficult part is that it is still working fine for two of the screens. The screen in which it works are those which does not have master detail relationship in them.
    We are using PL/SQL to create the new row as it involves using many database functions / packages  to populate the base data for the freshly created row. which we use to get to the screen for further changes and commit.
    We have been using this way for log time and it worked fine.
    Sanjay Chatterji
    Message was edited by: SChatterji

  • How to insert row in the middle of a table so that the below content will move to another page?

    I'm making a huge form in LiveCycle Designer. I want to be able to add rows in the middle o the table but in a way that the content below will move down automatically in a way it doe's in Word for example.
    Sometimes I am adding a very high new row in the middle of a page and I want the content in the below rows to be moved to another page and if it is necessary I want a new page to be automatically created on the bottom of a document or something.
    Is this possible or do I have to move everything by hand if I add new row to a table?

    If you are adding the rows at the runtime by clicking a button, then you have to use the instance Manager to add rows.. It will add rows at the end and then you need to write code to move the row at the desired location by using the moveInstance method of the instanceManager.
    If you are adding a row at the design time, then you can right clcik the row and choose to add rows below.
    Thanks
    Srini

  • Inserting rows altough the raise_aplication_error is executed....

    Hi,
    I have created two triggers on a table (one before insert and the other after insert).
    The after trigger calls a procedure...
    The before insert trigger is as follows:
    create or replace trg_
    before insert on x
    for each row
    begin
      select a_date
        from y
       where ...;
      if x>:new.date_of_a_table_inserted_via_a_form
        then
         raise_application_error....
      end if;
    end;Altough i insert a date value equal to a_date(has already been inserted) the trigger displays the error message (raise_application_error....(message)) but the rows are inserted....in the table.... Can you spot what may be wrong...????
    many thanks,
    Simon

    exception when others ... to do what....????
    Thanks,
    Simon

  • Inserting row in the result set

    Hi
    need to insert a row in resultset when previous row typ=c and next row typ=p then need to insert one row in between typ c and p with typ =s see the #temp_result table for result expected
    --drop table temp1
    --drop table temp1_result
    --presently data:-
    create table temp1
    (id int,
    ord int,
    typ varchar(2),
    dt date)
    insert into temp1 values (101, 1, 'c', '2001-10-01')
    insert into temp1 values (101, 2, 'p', '2001-11-11')
    insert into temp1 values (102, 1, 'c', '2002-10-01')
    insert into temp1 values (102, 2, 'p', '2002-11-01')
    insert into temp1 values (102, 3, 'p', '2002-12-01')
    insert into temp1 values (103, 1, 'c', '2003-10-01')
    insert into temp1 values (103, 2, 'p', '2003-11-01')
    insert into temp1 values (104, 1, 'c', '2004-10-01')
    insert into temp1 values (104, 2, 'c', '2004-11-01')
    insert into temp1 values (104, 3, 'p', '2004-12-01')
    insert into temp1 values (105, 1, 'c', '2005-10-01')
    insert into temp1 values (105, 2, 'p', '2005-11-01')
    insert into temp1 values (105, 3, 'c', '2005-12-01')
    insert into temp1 values (106, 1, 'c', '2006-08-01')
    insert into temp1 values (106, 2, 'p', '2006-09-01')
    insert into temp1 values (106, 3, 'c', '2006-10-01')
    insert into temp1 values (106, 4, 'p', '2006-11-01')
    insert into temp1 values (106, 5, 'p', '2006-12-01')
    select * from temp1
    order by id, ord
    --result expected:-
    create table temp1_result
    (id int,
    ord int,
    typ varchar(2),
    dt date)
    insert into temp1_result values (101, 1, 'c', '2001-10-01')
    insert into temp1_result values (101, 2, 's', '')
    insert into temp1_result values (101, 3, 'p', '2001-11-11')
    insert into temp1_result values (102, 1, 'c', '2002-10-01')
    insert into temp1_result values (102, 2, 's', '')
    insert into temp1_result values (102, 3, 'p', '2002-11-01')
    insert into temp1_result values (102, 4, 'p', '2002-12-01')
    insert into temp1_result values (103, 1, 'c', '2003-10-01')
    insert into temp1_result values (103, 2, 's', '')
    insert into temp1_result values (103, 3, 'p', '2003-11-01')
    insert into temp1_result values (104, 1, 'c', '2004-10-01')
    insert into temp1_result values (104, 2, 'c', '2004-11-01')
    insert into temp1_result values (104, 3, 's', '')
    insert into temp1_result values (104, 4, 'p', '2004-12-01')
    insert into temp1_result values (105, 1, 'c', '2005-10-01')
    insert into temp1_result values (105, 2, 's', '')
    insert into temp1_result values (105, 3, 'p', '2005-11-01')
    insert into temp1_result values (105, 4, 'c', '2005-12-01')
    insert into temp1_result values (106, 1, 'c', '2006-08-01')
    insert into temp1_result values (106, 2, 's', '')
    insert into temp1_result values (106, 3, 'p', '2006-09-01')
    insert into temp1_result values (106, 4, 'c', '2006-10-01')
    insert into temp1_result values (106, 5, 's', '')
    insert into temp1_result values (106, 6, 'p', '2006-11-01')
    insert into temp1_result values (106, 7, 'p', '2006-12-01')
    select * from temp1_resultregards
    Edited by: @2**** on 31-Jan-2012 06:48

    Well, in an Oracle database, something like this...
    SQL> ed
    Wrote file afiedt.buf
      1  with temp as (select 101 as id, 1 as ord, 'c' as typ, date '2001-10-01' as dt from dual union all
      2                select 101, 2, 'p', date '2001-11-11' from dual union all
      3                select 102, 1, 'c', date '2002-10-01' from dual union all
      4                select 102, 2, 'p', date '2002-11-01' from dual union all
      5                select 102, 3, 'p', date '2002-12-01' from dual union all
      6                select 103, 1, 'c', date '2003-10-01' from dual union all
      7                select 103, 2, 'p', date '2003-11-01' from dual union all
      8                select 104, 1, 'c', date '2004-10-01' from dual union all
      9                select 104, 2, 'c', date '2004-11-01' from dual union all
    10                select 104, 3, 'p', date '2004-12-01' from dual union all
    11                select 105, 1, 'c', date '2005-10-01' from dual union all
    12                select 105, 2, 'p', date '2005-11-01' from dual union all
    13                select 105, 3, 'c', date '2005-12-01' from dual union all
    14                select 106, 1, 'c', date '2006-08-01' from dual union all
    15                select 106, 2, 'p', date '2006-09-01' from dual union all
    16                select 106, 3, 'c', date '2006-10-01' from dual union all
    17                select 106, 4, 'p', date '2006-11-01' from dual union all
    18                select 106, 5, 'p', date '2006-12-01' from dual)
    19  --
    20  -- end of test data
    21  --
    22  select id
    23        ,row_number() over (partition by id order by ord, typ) as ord
    24        ,typ
    25        ,dt
    26  from (
    27        select id
    28              ,ord
    29              ,case when rn = 2 and add_typ = 's' then add_typ else typ end as typ
    30              ,case when rn = 1 then dt else null end as dt
    31        from (
    32              select t.id, t.ord, t.typ, t.dt
    33                    ,case when typ = 'c' and lead(typ) over (partition by id order by ord) = 'p' then 's'
    34                     else null end as add_typ
    35              from   temp t
    36             ) x
    37             cross join (select rownum rn from dual connect by rownum <= 2)
    38        where not (rn = 2 and add_typ is null)
    39       )
    40* order by id, ord
    SQL> /
            ID        ORD T DT
           101          1 c 01-OCT-2001 00:00:00
           101          2 s
           101          3 p 11-NOV-2001 00:00:00
           102          1 c 01-OCT-2002 00:00:00
           102          2 s
           102          3 p 01-NOV-2002 00:00:00
           102          4 p 01-DEC-2002 00:00:00
           103          1 c 01-OCT-2003 00:00:00
           103          2 s
           103          3 p 01-NOV-2003 00:00:00
           104          1 c 01-OCT-2004 00:00:00
           104          2 c 01-NOV-2004 00:00:00
           104          3 s
           104          4 p 01-DEC-2004 00:00:00
           105          1 c 01-OCT-2005 00:00:00
           105          2 s
           105          3 p 01-NOV-2005 00:00:00
           105          4 c 01-DEC-2005 00:00:00
           106          1 c 01-AUG-2006 00:00:00
           106          2 s
           106          3 p 01-SEP-2006 00:00:00
           106          4 c 01-OCT-2006 00:00:00
           106          5 s
           106          6 p 01-NOV-2006 00:00:00
           106          7 p 01-DEC-2006 00:00:00
    25 rows selected.

  • Newly inserted row in the Essbase isnot displaying with page refresh in ADF

    Hi,
    I have a pivot table in my UI page and I have a option to create new Measure in Essbase.
    I am inserting new Measure in Essbase at runtime from Java Bean and refreshing the pivot table.
    The newly added Measure is not displaying after refreshing the pivot table but when I reopen the page the new measure is displaying.
    Could you please let me know how can I display the newly added Measure in ADF Pivot Table with refresh.
    Thanks,
    Swathi G

    Hi Timo,
    Yes, I mean root application as the direct data control.
    This has been working earlier and the difficult part is that it is still working fine for two of the screens. The screen in which it works are those which does not have master detail relationship in them.
    We are using PL/SQL to create the new row as it involves using many database functions / packages  to populate the base data for the freshly created row. which we use to get to the screen for further changes and commit.
    We have been using this way for log time and it worked fine.
    Sanjay Chatterji
    Message was edited by: SChatterji

  • Error while inserting rows in a table

    Hi,
    We have recently migrated from 9i to 10g. We have a scheduled job out our DB which first deletes all the rows from a table and then inserts them back by selecting rows from 5 tables. This table has a composite primary key based on 6 columns in it. In 9i, when i try to insert rows into the table after deleting all the rows from it, I am able to insert the data successfully . However, in 10g, when i try doing the same operation, it fails with the ORA error:
    ORA-00001: unique constraint violated
    The same query which works perfectly in 9i fails in 10g
    If anybody has some ideas on how to resolve the same, kindly let me know.
    Thanks in advance.

    Hi,
    I was finally able to resolve the reason behind that error message and found it even more weird. The error was because I was using the substr function for extracting the characters 1-4 from a column which is 5 characters long. When i specify the query as:
    select substr(column1, 1, 4)) from table1;
    only the characters 1-3 are retrieved. Now if i change the query to select substr(column1, 1, 5)) from table1, in that case also only 3 characters are retrieved although i have specified the substr to start from 1 and read till 5 characters. Also, when i run the query:
    select length(substr(column1, 1, 4)) from table1 or select length(substr(column1, 1, 5)) from table1
    I get the answer as 3.
    However, the most amazing part is that the query is working perfectly in 9i and is retrieving the data correctly i.e. from substr 1-4.
    Can anyone suggest what the problem could be?
    Thanks
    Edited by: CrazyAnie on May 13, 2009 1:34 AM

  • Help in inserting rows into a table

    I have a table called acct_fact,
    I need to insert rows in the table using a script but the problem is there's a column called seq_nbr which has random seq nbr of 14character length like 'ZWX98MGD9MVAD6J','ZWX98MG67RVAD6J' etc.,
    While inserting rows I need to generate such seq_nbr for those columns and insert rows into the table, can I use any such mechanism in my insert query to insert such random nbr's while inserting rows into a table.
    If so please suggest me

    Hi Peter,
    Thankyou for the quick reply:)
    can you suggest me how to implement it here in my script snippet:
    while read var_acct_nbr
    do
    echo "update acct_attr set acct_attr_exp_dt ='$ExpDate' where Acct_Attr_Value_Text='15' and acct_attr_exp_dt is null and person_id='LDCarrBillAgrm' and acct_nbr='$var_acct_nbr' ;" >> ./$DirectoryName/SQLQuery_$TimeStamp.sql
    echo "insert into acct_fact values ('$var_acct_nbr','$ExpDate','$ExpTime','*seq_nbr*','N','ProjTereza','Remoção de acordo d; data de expiração: $ExpDate',null,'1','LDE',null);" >> ./$DirectoryName/SQLQuery_$TimeStamp.sql
    done < ./$DirectoryName/ExpireAccts_$TimeStamp.LOG
    the script takes each acct_nbr nbr form a input file and fires an insert statement.
    The one in bold is the column where such sequence need to be inserted.can you help me in implementing the way you suggested in my script i.e., insert statement
    Thanks in Advance:)
    Edited by: rkrish on Jun 27, 2012 3:04 AM

  • How to add new row at the top of the advance table.

    Hi,
    I have one advanced table.
    I want to add new rows in advanced table. I can able to add rows using the AddMoreRows button in the footer of the advanced table.
    This adds the row at the end. But I want to add the row at the top.
    How to achive this? Please suggest.
    Thanks & Regards,
    Raja

    Hi,
    Yes you can do it...
    Just set the add Rows automatically property to False of Add Row Button
    and then in processForm Request capture the addRows event
    and invoke a method in AM and then create a new Row in VO.
    Use this code...it will insert row at the top...
    if("addRows".equals(event))
    am.invokeMethod("addrows");
    public void addrows()
    AddressesVOImpl vo1 = getAddressesVO1();
    AddressesVORowImpl row1 = (AddressesVORowImpl)vo1.createRow();
    vo1.insertRowAtRangeIndex(0,row1);
    vo1.setCurrentRow(row1);
    Thanks,
    Gaurav

Maybe you are looking for

  • Iphone with ios6 as a remote for apple tv - song sometimes skips

    I use iphone with ios6 as a remote for apple tv but sometimes a song skips while playing. What can I do to stop this?  Very annoying as I'd like to use it for a party. Thx

  • Error while starting BI Scheduler

    Hi, I have done my configuration according to the below mentioned url : http://gerardnico.com/wiki/dat/obiee/bi_scheduler/obiee_scheduler_configuration After doing this when I try to start the Scheduler Service I am getting the following error : *106

  • How to transfer standard text

    hi,       could u plz tell me  how to transfer the standard test in sap script.       could u plz explain step by step process.   regards rajesh.

  • How to achieve Copy-Paste in java ?

    Hello How can we copy file/files from source directory to destination? At the same time , files should remain in source directory. i.e. I want to achieve copy - paste. but not cut - paste. renameTo() method removes the files from source, that I dont

  • Compare and adjaust configuartion for different Report Servers

    Hi All, in one OFM-environment (11.1.1.6.0), I need to find and adjust different configuartion between reports servers. I can see in EM only ONE Report Server under asinst_1 and colud not find other Report Server (in-process-server). In addition, I c