Inserting rows into a JTable

Hi everyone,
I am having a problem with the JTable. Take the following code, for example (the table is initially empty):
outputsTableModel.addRow(new Object[] { new CodePath(nextNode.getPath()), "<not defined>" });
CodePath cp = (CodePath)outputsTableModel.getValueAt(0, 0);
So the first line will add a new row to the table at position 0 (as this is the first row to be added). Immediately after this I wish to retrieve the value a (0,0) and I get an ArrayIndexOutOfBoundsException. Do I need to explicitly say something like:
"Hey, JTable model, I have just given you a new row so update yourself." or something like that? And if so, how do I do that?
Thanks in advance.
Kind regards,
Ben Deany

Should I code my own table model? In fact, is it
generally the case that people code their own table
models?If you're doing anything that will modify the underlying data in the table model, you should be using your own model. Extending the AbstractTableModel is the easiest way of doing this.
However, you do have to manage your data storage mechanism yourself. My typical implementation is usually built around a some kind of List, each element being a fixed-size (number of columns) Object[] array.

Similar Messages

  • Need to insert rows into 100 tables at a time

    hi there,
    below is our script for creation of 100 tables...
    we need a plsql script, to insert rows into 100 tables at a single time...
    please help us...vey urgent...
    DECLARE
    counter NUMBER;
    sql_string VARCHAR2(2000);
    BEGIN FOR counter IN 1..100 LOOP sql_string := 'CREATE TABLE emp_table'||counter||'
    (id integer primary key, col_a VARCHAR2(42),col_b date,col_c number,col_d varchar2(20),col_e varchar2(20),
    col_f varchar2(20),col_g varchar2(20),col_h date,col_i varchar2(20),col_j varchar2(20),col_k date)';
    EXECUTE IMMEDIATE sql_string;
    END LOOP;
    END;
    /

    hi,
    below is our procedure and the error we are getting...
    Name Null? Type
    ID VARCHAR2(10)
    COL_A VARCHAR2(10)
    COL_B VARCHAR2(10)
    COL_C VARCHAR2(10)
    COL_D VARCHAR2(10)
    COL_E VARCHAR2(10)
    COL_F VARCHAR2(10)
    COL_G VARCHAR2(10)
    COL_H VARCHAR2(10)
    COL_J DATE
    DECLARE
    counter NUMBER;
    sql_string VARCHAR2(4000);
    BEGIN FOR counter IN 1..100 LOOP sql_string := 'CREATE TABLE emp_a'||counter||'
    (id varchar2(10), col_a varchar2(10), col_b varchar2(10), col_c varchar2(10), col_d varchar2(10), col_e varchar2(10),
    col_f varchar2(10), col_g varchar2(10), col_h varchar2(10), col_j date)';
    EXECUTE IMMEDIATE sql_string;
    END LOOP;
    END;
    DECLARE
    counter NUMBER;
    sql_string VARCHAR2 (2000);
    BEGIN
    FOR OuterCounter IN 1 .. 100 LOOP --- table prefix in which it is to be inserted
    FOR InnerCounter IN 1 .. 100 LOOP --- records to be inserted
    sql_string := 'INSERT INTO emp_a' || Outercounter || ' (id, col_a, col_b, col_c, col_d, col_e, col_f, col_g, col_h, col_j)
    VALUES ('
    || InnerCounter || ', to_char( ''col_a''' || innercounter || '),'
    || InnerCounter || ', to_char( ''col_d''' || innercounter || '),'
    || ', to_char( ''col_e''' || innercounter || '),'
    || ', to_char( ''col_f''' || innercounter || '),'
    || ', to_char( ''col_g''' || innercounter || '),'
    || ', to_char( ''col_h''' || innercounter || '),'
    || ', to_char( ''col_j''' || innercounter || '), SYSDATE)';
    EXECUTE IMMEDIATE sql_string;
    END LOOP;
    END LOOP;
    END;
    DECLARE
    ERROR at line 1:
    ORA-00907: missing right parenthesis
    ORA-06512: at line 17
    please check the procedure and write the correct one...

  • 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

  • Inserting rows into table Based on Column Values.

    Hi,
    I am trying to inserting rows into a table based on Column.
    Id      Name        
    Data
    N 105.1.1
    http://www.example.com/New/105.1.1
    U 105.1.2               http://www.example.com/Used/105.1.2
    S 105.1.3               http://www.example.com/Sold/105.1.3
    I want a table like this. 
    I want to insert Data column value based on Id and Name Columns
    If Id = N and Name = 105.1.1 then Data value should be insert as   http://www.example.com/New/105.1.1
    If Id = U and Name = 105.1.2 then Data value should be  insert as  http://www.example.com/Used/105.1.2
    If Id = S and Name = 105.1.3 then Data value should be insert as   http://www.example.com/Sold/105.1.3
    Can you please help us to write query to insert above Data Column values based on Id and Name Columns.

    INSERT INTO tbl (col) SELECT
    CASE WHEN id='N' and Name='105.1.1 ' THEN 'http://www.example.com/New/105.1.1'
              WHEN id='U' and Name='105.1.2 ' THEN 'http://www.example.com/New/105.1.2'
    END col
    FROM anothertbl
    Sorry , cannot test it right now.
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Inserting rows into a data block

    Hi, how do i insert 'n' rows into a data block and after that commit the changes into the data base.
    Thanks for any help.

    You can use something like this:
    Go_Block('my_block');
    first_record;
    LOOP
    .... insert values to the items
    next_record;
    END LOOP;
    - for commiting changes
    Do_Key('Commit_Form');
    I hope this will help you.
    Helena

  • Inserting rows into a table

    Hi,
    I want to insert values into a table 'Reasons'.
    The table 'Reason' has 5 columns
    out of 5 two columns has static data say
    column A value 'A'
    column E value sysdate
    But in the other three columns the vlues are repeating and as follows.
    Column B all rows of column x from table B
    Column C all rows of column y from table C
    Column D list of values as (ONE,TWO,THREE,FOUR)
    Please Help
    Thanks
    Rohit Taneja

    create table tableb(id number,x varchar2(20));
    insert into tableb values(1,'APPLE');
    insert into tableb values(2,'BANANA');
    insert into tableb values(3,'MANGO');
    create table tablec(id number,y varchar2(20));
    insert into tablec values(1,'ROHIT1');
    insert into tablec values(2,'ROHIT2');
    insert into tablec values(3,'ROHIT3');
    insert into tablec values(4,'ROHIT4');
    select 'A' AS COL_A, d.X AS COL_B,d.Y AS COL_C,
    to_char(to_date(ROW_NUMBER() OVER(PARTITION BY X,y ORDER BY X,Y),'YYYY'),'YYYYSP') AS COL_D,SYSDATE
    FROM ( select a.id , a.x X, b.y Y  from tableb a,tablec b , tablec e order by a.x) d
    ORDER BY d.X,d.Y
    C COL_B                COL_C                COL_D                                      SYSDATE
    A APPLE                ROHIT1               ONE                                        30-SEP-02
    A APPLE                ROHIT1               TWO                                        30-SEP-02
    A APPLE                ROHIT1               THREE                                      30-SEP-02
    A APPLE                ROHIT1               FOUR                                       30-SEP-02
    A APPLE                ROHIT2               ONE                                        30-SEP-02
    A APPLE                ROHIT2               TWO                                        30-SEP-02
    A APPLE                ROHIT2               THREE                                      30-SEP-02
    A APPLE                ROHIT2               FOUR                                       30-SEP-02
    A APPLE                ROHIT3               ONE                                        30-SEP-02
    A APPLE                ROHIT3               TWO                                        30-SEP-02
    A APPLE                ROHIT3               THREE                                      30-SEP-02
    A APPLE                ROHIT3               FOUR                                       30-SEP-02
    A APPLE                ROHIT4               ONE                                        30-SEP-02
    A APPLE                ROHIT4               TWO                                        30-SEP-02
    A APPLE                ROHIT4               THREE                                      30-SEP-02
    A APPLE                ROHIT4               FOUR                                       30-SEP-02
    A BANANA               ROHIT1               ONE                                        30-SEP-02
    A BANANA               ROHIT1               TWO                                        30-SEP-02
    A BANANA               ROHIT1               THREE                                      30-SEP-02
    A BANANA               ROHIT1               FOUR                                       30-SEP-02
    A BANANA               ROHIT2               ONE                                        30-SEP-02
    A BANANA               ROHIT2               TWO                                        30-SEP-02
    A BANANA               ROHIT2               THREE                                      30-SEP-02
    A BANANA               ROHIT2               FOUR                                       30-SEP-02
    A BANANA               ROHIT3               ONE                                        30-SEP-02
    A BANANA               ROHIT3               TWO                                        30-SEP-02
    A BANANA               ROHIT3               THREE                                      30-SEP-02
    A BANANA               ROHIT3               FOUR                                       30-SEP-02
    A BANANA               ROHIT4               ONE                                        30-SEP-02
    A BANANA               ROHIT4               TWO                                        30-SEP-02
    A BANANA               ROHIT4               THREE                                      30-SEP-02
    A BANANA               ROHIT4               FOUR                                       30-SEP-02
    A MANGO                ROHIT1               ONE                                        30-SEP-02
    A MANGO                ROHIT1               TWO                                        30-SEP-02
    A MANGO                ROHIT1               THREE                                      30-SEP-02
    A MANGO                ROHIT1               FOUR                                       30-SEP-02
    A MANGO                ROHIT2               ONE                                        30-SEP-02
    A MANGO                ROHIT2               TWO                                        30-SEP-02
    A MANGO                ROHIT2               THREE                                      30-SEP-02
    A MANGO                ROHIT2               FOUR                                       30-SEP-02
    A MANGO                ROHIT3               ONE                                        30-SEP-02
    A MANGO                ROHIT3               TWO                                        30-SEP-02
    A MANGO                ROHIT3               THREE                                      30-SEP-02
    A MANGO                ROHIT3               FOUR                                       30-SEP-02
    A MANGO                ROHIT4               ONE                                        30-SEP-02
    A MANGO                ROHIT4               TWO                                        30-SEP-02
    A MANGO                ROHIT4               THREE                                      30-SEP-02
    A MANGO                ROHIT4               FOUR                                       30-SEP-02
    48 rows selected.hope this is helpfull
    cheers
    prakash

  • Read a file and insert rows into table

    Hi,
    i would like to know how read a file (expl.txt) with the utl_file package and after insert each row into the table (dataID).
    ie :
    file /tmp/expl.txt is containing :
    id1 id2 describe
    2 3 test1
    6 5 test2
    4 7 test3
    and
    table dataID (
    id1 number,
    id2 number,
    describe varchar2(100));
    Thanks you very much.

    Hello,
    You can use the TEXT_IO package.
    Perform an over-all search (right upper corner) on TEXT_IO, and in the results you will find a manual on how to use the package.
    Hope this will help you.
    Regards,
    Cindy

  • Understanding logminer results -- inserting row into table with CLOB field

    In using log miner I have noticed that inserts into rows that contain a CLOB (I assume this applies to other LOB type fields as well, have only tested with CLOB so far) field are actually recorded as two DML entries.
    --the first entry is the insert operation that inserts all values with an EMPTY_CLOB() for the CLOB field
    --the second entry is the update that sets the actual CLOB value (+this is true even if the value of the CLOB field is not being set explicitly+)
    This separation makes sense as there may be separate locations that the values are being stored etc.
    However, what I am tripping over is the fact the first entry, the Insert, has a RowId value of 'AAAAAAAAAAAAAAAAAA' which is invalid if I attempt to use it in a flashback query such as:
    SELECT * FROM PERSON AS OF SCN #####'  where RowId = 'AAAAAAAAAAAAAAAAAA'The second operation, the Update of the CLOB field, has the valid RowId.
    Now, again, this makes sense if the insert of the new row is not really considered "+done+" until the two steps are done. However, is there some way to group these operations together when analyzing the log contents to know that these two operations are a "+matched set+"?
    Not a total deal breaker, but would be nice to know what is happening under the hood here so I don't act on any false assumptions.
    Thanks for any input.
    To replicate:
    Create a table with CLOB field:
    CREATE TABLE DEVUSER.TESTTABLE
            ID NUMBER
           , FULLNAME VARCHAR2(50)
          , AGE NUMBER  
          , DESCRIPTION CLOB
           );Capture the before SCN:
    SELECT DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER FROM DUAL;Insert a new row in the test table:
    INSERT INTO TESTTABLE(ID,FULLNAME,AGE) VALUES(1,'Robert BUILDER',35);
         COMMIT;Capture the after SCN:
    SELECT DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER FROM DUAL;Start logminer session with the bracketing scn values and options etc:
    EXECUTE DBMS_LOGMNR.START_LOGMNR(STARTSCN=>2619174, ENDSCN=>2619191, -
               OPTIONS => DBMS_LOGMNR.DICT_FROM_ONLINE_CATALOG + DBMS_LOGMNR.CONTINUOUS_MINE + -
               DBMS_LOGMNR.COMMITTED_DATA_ONLY + DBMS_LOGMNR.NO_ROWID_IN_STMT + DBMS_LOGMNR.NO_SQL_DELIMITER)Query the logs for the changes in that range:
    SELECT
           commit_scn, xid,operation,table_name,row_id
           ,sql_redo,sql_undo, rs_id,ssn
           FROM V$LOGMNR_CONTENTS
        ORDER BY xid asc,sequence# ascResults:
    2619178     0C00070028000000     START                  AAAAAAAAAAAAAAAAAA     set transaction read write
    2619178     0C00070028000000     INSERT     TESTTABLE     AAAAAAAAAAAAAAAAAA     insert into "DEVUSER"."TESTTABLE" ...
    2619178     0C00070028000000     UPDATE     TESTTABLE     AAAFEXAABAAALEJAAB     update "DEVUSER"."TESTTABLE" set "DESCRIPTION" = NULL ...
    2619178     0C00070028000000     COMMIT                  AAAAAAAAAAAAAAAAAA     commitEdited by: 958701 on Sep 12, 2012 9:05 AM
    Edited by: 958701 on Sep 12, 2012 9:07 AM

    Scott,
    Thanks for the reply.
    I am inserting into the table over a database link.
    I am using the new version of HTML Db (2.0)
    HTML Db is connected to an Oracle 10 database I think, however the table I am trying to insert data into (via the database link) is in an Oracle 8 database - this is why we created a link to it as we couldn't have the HTML Db interacting with the Oracle 8 database directly due to compatibility problems (or so I've been told)
    Simon

  • Object Browser - Insert row into table

    Hi,
    I'm attempting to simply INSERT a row into a table using the "Create Row" in the Object Browser. I enter in all the data for the row, and click the Create button. There is no process success message, just another entry form for the Create Row is displayed. When I query the table, the data I just entered for the row is not there. What is going on?
    Thank you,
    Laura

    What version are you using? 2.2.0.00.32
    What are the column datatypes? I have several VARCHAR2, NUMBER, DATE, and CHAR columns.
    Are you using (do you see) the Create or "Create and Create Another" button?
    Yes, I tried both the "Create" and "Create and Create Another" button.
    Does it work correctly on apex.oracle.com?
    Hmm...looks like I will have to request a new Workspace. I haven't logged into there for quite some time (forgot my Workspace name, etc.)...and the email address you have on file for me is no longer a valid email address.

  • Insert row into database table via dynamic form -

    I have developed a portlet via Portal. I used a dynamic page. I replaced the default "<ORACLE>select * from scott.emp</ORACLE>" text to call a package procedure that uses HTP.P to render the web page. My goal is to show all rows in a table and allow edits to any row, and also add a checkbox on each row to allow the user to mark for delete. I am successfully using a FOR loop and showing all of the data in a grid. My problem - How do I update and delete the data? I have a submit button with nothing behind it currently. I would ideally like to use pl/sql code to do the updates and/or deletes as marked on the page by the user, but I'm not sure how to hook the submit button to calling a procedure to execute the updates/deletes.
    Any help would be appreciated -
    Thanks -
    Kent

    Hi Patrick - Thanks for your response! I have browsed your page quickly - very informative and I will look in more detail. My form design looks as below (using a simple example with emp id and emp name columns) - perhaps this will have to change, but I wanted the user to be able to insert using html fields id_add and name_add, then update (or mark for deletion) any of the existing rows (they are rendered with for loop in pl/sql - eg, id_1/name_1, id_2/name_2, etc for each row in the table). I was hoping the submit action would call a pl/sql that would look at all rows, and then act if an update or delete were required. This makes it difficult to use parms, I believe - I may be able to change the design to show an "update row" below the current "insert row" so that, as in your example, when the user highlights a row, it populates in the update area where changes can be made, and an update button used to effect the changes to a single row at a time.
    Thanks again, I appreciate your input!
    Kent
    ______________ _________________ <insert_button>
    Emp Id (textbox) Emp Name (textbox) Del_Checkbox
    ______________ _________________ ___ <SUBMIT_BUTTON>
    ------------------------- ----------------------------- ------

  • Flex application works locally, fails when online (connecting to PHP script to insert row into DB)

    Hi everyone,
    I've got a Flex application that works wonderfully when I test it on my machine locally. It uploads files and send variables to a PHP script (that inserts them into a DB) with no errors when I run it locally. As soon as I put it online, the upload continues to work but something between my Flex application and the PHP script fails because no data is committed to the DB. I know the PHP script works fine - not only does it work when I run the Flex application locally but when I go directly to the PHP file online, a new empty line is added to the DB.
    I initially thought that this was a cross domain issue so I added the following to the root of my hosted account:
    <cross-domain-policy>
    <site-control permitted-cross-domain-policies="all"/>
    <allow-access-from domain="*.MYURL"/>
    <allow-http-request-headers-from domain="*.MYURL" headers="*" secure="false"/>
    </cross-domain-policy>
    I based this off of what I found online which seems to have done nothing for me. I'd also be happy to provide an error message but I don't get one when I debug.
    Any thoughts would be greatly appreciated.

    Use a network monitor to see if the Flex app is truly requesting the right URL.
    -Alex

  • Loop Cursor Fetch Insert Rows Into Global Temporay Table

    Hi friends,
    I want to know there where is the problem in my this query
    cursor c1 is select empno
    from scott.emp;
    b number;
    begin
    open c1;
         loop
         fetch c1 into b;
         exit when c1%notfound;
    insert into scheema.a1
    (a)
    values
    (b);
    commit;
         end loop;
         close c1;
    end;
    There is no any error displaying while proceeding this query but the table a1 which is (Global temporary table with ON COMMIT PRESERVE ROWS option enabled) does not gets any records. Kindly let me know the problem.
    Regards.

    Are you sure that the query returns date? Are you checking the table via the same session?
    SQL> create global temporary table a1 (
      a  number)
      on commit preserve rows
    Table created.
    SQL> declare
       cursor c1 is select empno
          from scott.emp;
       b number;
    begin
       open c1;
       loop
          fetch c1 into b;
          exit when c1%notfound;
          insert into a1
          (a)
          values
          (b);
          commit;
       end loop;
       close c1;
    end;
    PL/SQL procedure successfully completed.
    SQL> select * from a1
             A
          7369
          7499
          7521
          7566
          7654
          7698
          7782
          7788
          7839
          7844
          7876
          7900
          7902
          7934
    14 rows selected.

  • 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 into a table in particular order

    When i fired a query as
    insert into table1 select * from table2 order by req_id .
    It is not inserting into table1 as ordered by req_id.Please suggest

    ORDER is irrelevant when it comes to storage of data unless its Index organized table. In a Heap Organized table the order in which data is stored is irrelevant.
    Here is a small example to show the difference between IOT and HOT.
    SQL> create table hot (no integer)
      2  /
    Table created.
    SQL> create table iot (no integer primary key) organization index
      2  /
    Table created.
    SQL> insert into hot select level from dual connect by level <= 10 order by dbms_random.value
      2  /
    10 rows created.
    SQL> select * from hot
      2  /
            NO
             7
             6
             4
             5
            10
             3
             1
             9
             8
             2
    10 rows selected.
    SQL> insert into iot select level from dual connect by level <= 10 order by dbms_random.value
      2  /
    10 rows created.
    SQL> select * from iot
      2  /
            NO
             1
             2
             3
             4
             5
             6
             7
             8
             9
            10
    10 rows selected.Thanks,
    Karthick.
    Edited by: Karthick_Arp on Feb 5, 2009 3:45 AM

  • Unable to insert row into table.

    hi all,
    here i am using oracle apex 3.2.0.0.0.27 version.
    i am unable to insert a row in the database table.when i press a save button i get an error is
    0.07:
    0.08: S H O W: application="132" page="4" workspace="" request="" session="3286250612369434"
    0.14: Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: en-us
    0.15: alter session set nls_language="AMERICAN"
    0.16: alter session set nls_territory="AMERICA"
    0.16: NLS: CSV charset=WE8MSWIN1252
    0.16: ...NLS: Set Decimal separator="."
    0.16: ...NLS: Set NLS Group separator=","
    0.16: ...NLS: Set date format="DD-MON-RR"
    0.17: ...Setting session time_zone to +05:30
    0.17: Setting NLS_DATE_FORMAT to application date format: DD-MON-YYYY HH:MIPM
    0.18: ...NLS: Set date format="DD-MON-YYYY HH:MIPM"
    0.19: NLS: Language=en-us
    0.21: Application 132, Authentication: CUSTOM2, Page Template: 102166708405540699
    0.27: ...Session ID 3286250612369434 can be used
    0.27: ...Application session: 3286250612369434, user=COMP
    0.28: ...Determine if user "COMP" workspace "16032411264866286" can develop application "132" in workspace "16032411264866286"
    0.29: ...Check for session expiration:
    0.31: Session: Fetch session header information
    0.33: ...Metadata: Fetch page attributes for application 132, page 4
    0.34: Fetch session state from database
    0.38: Branch point: BEFORE_HEADER
    0.39: Fetch application meta data
    0.49: Setting NLS_DATE_FORMAT to application date format: DD-MON-YYYY HH:MIPM
    0.49: ...NLS: Set date format="DD-MON-YYYY HH:MIPM"
    0.49: Computation point: BEFORE_HEADER
    0.49: Processing point: BEFORE_HEADER
    0.49: ...Process "Row_fetch": DML_FETCH_ROW (BEFORE_HEADER) F|#OWNER#:PC_MASTER:P4_PC_ID:PC_ID
    0.73: Show ERROR page...
    0.73: Performing rollback...
    0.79: Processing point: AFTER_ERROR_HEADER
    ORA-06550: line 1, column 17: PL/SQL: ORA-00936: missing expression ORA-06550: line 1, column 9: PL/SQL: SQL Statement ignored
         Error      UNABLE TO FETCH
    OK      
    please anyone can help me to come out this problem.
    thanks
    regards,
    tipan

    Hi Tipan,
    This error isn't due to you pressing save, it occurs when the page reloads because you are trying to fetch a record from a database table and the Primary Key APEX Page Item field doesn't have a value in it. You need to add a condition to your fetch so it only runs when the primary key page item has a value in it.
    Hope this helps
    Paul

Maybe you are looking for

  • A download jsp error  with weblogic6.1

    I have a jsp like follows: <% String filename = "200352491128.pdf"; String filepath = "e:\xmldb\"; response.setContentType("application/x-download"); response.setHeader("Content-Disposition", "attachment; filename="" + filename + """); java.io.FileIn

  • Error running serialver

    I did a quick search of the forum and did not see an answer for this. I am trying to run serialver on a class, but when I do I get the following error: Exception in thread "main" java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionBindingLi

  • How do I add a splash screen?

    Hi, I'm developing for the iPhone and I wish to know how to put a splash screen on my app. I think it would look better than the normal black loading screen. Thanx for the help!

  • Receiving "Installer failed to Intialize" error trying to load application manager

    I am trying to download my Adobe After Effects free trial and I receive this error I then precede to go and download the application manager and receive this error I have tried running the adobe cleaner tool, to no avail. I'm not sure what else to do

  • MBP 15" 2010 doesn't allow boot up from DVD/CD.

    My Macbook Pro 15" mid 2010 won't allow boot up from CD/DVD using the C key or choosing it from boot menu. It's running 10.6.7 and the boot up media i'm using are the origianl 10.6 and 10.5 disc. The CD's will show up when computer is booted up. Also