Row.remove() problem

I have problem that sometimes remove() method doesn't work (I tried viewobject.removeCurrentRow() with the same result).
When I pass following steps:
1) 2 rows are removed:
vo.executeQuery();
while ((row = vo.first()) != null) row.remove();
2) 1 row is inserted:
row = vo.createRow();
row.setAttribute(attr, value);
vo.insertRow(row);
3) write out contents of vo (it is right - 1 inserted):
vo.executeQuery();
vo.reset();
while ((row = vo.next()) != null) System.out.println(row.getSomething());
4) commit()
5) write out contents of vo (it is sometimes right - 1 inserted row, simetimes bad - 2 rows (1 inserted and 1 removed)):
vo.executeQuery();
vo.reset();
while ((row = vo.next()) != null) System.out.println(row.getSomething());
(6) if I get values directly from database (sqlplus) - I can see the same rows I see from point 5).)
So the problem occures sometimes inside commit() - sometimes removed row are not removed inside database!
My VO is second detail - master1->master2->myvo.
My SQL dialect is SQL92 and type mapping Oracle. I use JDeveloper 9.0.5.2
Thank you very much for any help...
Jan

I found that if I change SQL dialect to Oracle, then everything os OK.
It seems there is a bug while SLQ92 dialect is set...
Anybody has similar experiencies?
Jan

Similar Messages

  • Geting row data problem from datatable

    I have 2 buttons on jsp page(OK button and Search button) and a datatable . under search_button_click ; filling datatable with personInfo also under ok_button_click
    i get all rows using iteration..code is below...first column of datatable is selectBoolean. i try to get row that was checked.
    for (MyBean row : listTable) {
    if (row.isCbteyit()) {
    System.out.println("...:" + row.getPO_KARNE_ADET());
    problem;i can get all rows but i can't get checkbox checked info..all rows return false...
    Balus i try to do like your source code.
    http://balusc.blogspot.com/2006/06/using-datatables.html(Select multiple rows)
    also jsp side binding code is
    <h:dataTable value="#{denemeTEYIT.listData}"

    Dear Jansi
    thanks for the link,
    in SMSY i SEE a difrent massage server in the java and abap? from where did he get the massage server?
    the data source in the java is SLD but in abap is tms/rfc whay?
    regards
    Naor

  • Error: "... is not a table ..." XML not correctly interpreted after XSL-transformation. Table row quantity problem.

    Hey guys, this is one of my xml-elements:
    Jaspreet Sohi 12 18 Juliane Lenz 11 17 Sophie Charlotte Stender 10 15 Rosbeh Hamidzadeh Khayyat 12 17 Lion Stoldt 12 17 Mats Lucas Meincke 6 8 Bero Luke Vincent Ernst 6 8 Cedric Roth 6 8 Soner Cantay 6 8 The following XSL Transformation I use once for transforming all "m" tags and once in order to transform all "j" tags. Please imagine the CSL-code below to be duplicated exactly. Only the "jungs"-table-Tag is replaced by "mädchen" and all underscores _j are replace by _m. As well all "select="j[@..." parts are replaced by "select="m[@...". 1 2 3 The code is very easygoing I think and not difficult to understand. As I said, I use it twice - for both transformations. The very, extremely weird thing, my problem, is that one transformation works perfectly in InDesign and a table is created for all "kategorie"-tags (all is set within a for-each loop). But the second script does not work! I simply do not get this I can't understand it. I've tried more than anything. InDesign sais (in German, so translated based on assumption) "jungs is an invalid table element or is displayed in wrong order". The second strange thing is that I can replace my "aid:trows" attribute by any number, e.g. "10" and immediately the script works fine (as there are never more than 6 "j" tags in my XML so that never the table has more than 6 rows"). But it does not want to work correctly with the actual number, my variable "rows_j". These are my variables: They are all defined before the tables for m and j are created. So finally, why (the heck) is one table created and interpreted perfectly whereas the second - immediately following the first in the XSL.script as an EXACT copy of the first - results in an error? As i've already said, I've tried really everything. For example the script works also when one of the parts "" is randomly deleted from the script. Removing one of these parts directly makes the script working. Just one of my attempts to understand the thing but this has only shown that none of these parts "cell to end-for-each" includes an error. I'm really desperate and looking forward to being rescued by one of you geniuses :)

    Hah, No worries. The forum software is, well, different.
    What would be better, though, would be a sample ID file, any XSLT/XLT files you use, and a bit of data exactly as you have it (pre-transform state). ZIP it up, upload to say dropbox.com and feel free to send me a private message for the download link.
    Too many times there is something different between samples pasted into a post and the real thing that it is sometimes less useful time-wise. I'll keep it private, of course. Then we can communicate via PMs or email until we can (hopefully) arrive together at a solution, then post what that solution is in the forum to benefit others.
    Thank you, Mike

  • Dynamic Table Row Removal

    I'm using LiveCycle Form Designer 8 and Acrobat Reader 7.09
    I've created a simple dynamic table that has an ADD ROW button that uses _Row1.addInstance(1); to add a new row and that works great. I then added the Delete Row button in a SubForm to the first cell of the row with the JavaScript _Row1.removeInstance(this.parent.index).
    The problem is that the Delete Row button always deletes the first row instead of the row that the button is in. So that indicates that this.parent.index = 0. If I force the value it does remove that specific line but I want the removeInstance to remove the line that has been selected.
    How do I get the index to reflect the value of the row that the removeInstance button is in? I must be missing something very basic.

    I'm having the same problem. I tried removeinstance(this.index) but that seems to resolve to index 0 no matter how many instances there are.
    Cheers,
    Al

  • Front Row Video problem

    For some reason whenever i go to Front Row and go to the video section, it goes directly back to the desktop. I have restarted my computer twice and the same thing happened. Does anybody know a fix?
    P.S.
    I have tiger so its not the most recent version of front row
    Message was edited by: guitarfreak2013

    If you use the Accounts System Preferences to create a new user, log out and log in as the new user, can they open the "Videos" module? If so, then Front Row is functioning normally but you may have a file in your original user's Movies folder that's causing the trouble. If the new user can't open the videos module, then there's some kind of system-wide Front Row or QuickTime problem.
    -Doug

  • Row Selection problem in custom cell renderer

    Hi,
    I have created a custom cell renderer to set color in my table based on some value and the screen also shows colors when i set this cell renderer.
    But, I am not able to see the row selection ie. with blue background when I select any row in the table is nor appearing. Can you tell me how to solve this problem.
    Regards,
    R.Vishnu Varadhan.

    Check out this [url http://forum.java.sun.com/thread.jsp?forum=57&thread=507001]thread for a similiar example.

  • Datagrid last row flickering problem.

    Hi,
        I used flex 3.5 datagrid. It is a complex datagrid with lot of itemrenderers and itemeditors.when my datagrid has vertical scroll and when i scroll datagrid, last row keep on flickering.
         any idea or solution for this problem?   

    my grid contains 6 columns. Among 6, some of the column texts are  visible some of them hided.
    it is only happens to last row of the Datagrid.
    This is happened when i scroll my datagrid vertically.

  • Matrix Empty row Binding Problem

    Hi ,
    i created one matrix using screen painter.. all my columns are binded
    with user defined fields.(Doc Rows Table). if my total row count is 5.
    and i deleted 2 rows using rightclick deleterow event. after adding if i see the same document  it display the 2 empty rows and 3 rows with my details.. actually its showing that deleted row also.my UDT also having empty row details..
    how to resolve this?
    Regards,
    Ganesh K

    Hi Geetha,
    i think you misunderstood my scenario. while adding no empty rows
    are displayed, even if  i deleted some added row details.After adding,
    while retriving the same document  the problem occurs.if am not clear let me know..
    As you told, beforeAction = false of Add will be new form with Add mode.so not possible to check that old matrix. otherwise we can delete the empty details from database using query..in beforeaction false pval.actionsucess true part...
    regards,
    Ganesh k.

  • Empty row removal

    I have copied and pasted information into a spreadsheet. There are blank/empty rows that are not adjacent that I would like to remove. There are 1400 pages so I don't want to do it manually. Is there a way to do it automatically?

    Open up the Reorganize window
    Filter to show only rows that are blank.
    Select all but one of the blank rows and delete them en masse.
    Unfilter
    Delete the last blank row.

  • Primary key foreign key remove problem

    hi expretrs,
    I create 5 tables in ddic.
    1. zpr_cmp Company Master
    2. zpr_dpt Department Master
    3. zpr_dsg Designation Master
    4. zpr_emp Employee master.
    5. zpr_slm Salary Master.
    Foreign key reference in zpr_emp from table 1,2 and 3 created and
    table zpr_emp has
    cmpcd, Company Code
    empcd, Employee Code
    dptcd , Department Code
    dsgcd Designation Code
    as key fields.
    I have upload data and create module pool and reports.
    My problem that hr person say that we want to change deptcd/dsgcd of employee (zpr_emp) and
    dptcd and dsgcd is as key fields in zpr_emp when i change the table zpr_emp and remove
    two key fields dptcd/dsgcd and active error display.
    I also try with se14 (Activate and Adjust database) but error still.
    how can i remove key field from zpr_emp and active table without loss data and without any change of
    module pool/reports
    pl. help

    Diagnosis
    ZPR_EMP table is defined as a check table. For reasons of consistency, changes to the primary key of the table are not allowed.
    Procedure
    If it is essential that you change the primary key, you must delete the relevant foreign keys. Refer to the where-used list to find all tables containing a field that is checked against this table. Delete the foreign keys for these fields.
    If necessary, maintain the deleted foreign keys again.
    Value table - It's a field in a domain it helps in domain level data validation.
    Check table - unlike value table it helps in feild level data validation.
    The relational data model contains not only tables, but also relationships between tables. These relationships are defined in the ABAP/4 Dictionary by foreign keys. An important function of foreign keys is to support data integrity in the relational data model. Foreign key fields may assume only those values allowed by the check table, in other words, values occurring in the primary key of the check table.
    A foreign key provides a link between two tables, for eg.,T1 and T2 by including a reference in table T1 to the primary key of table T2. For this purpose, Foreign key fields assigned to the primary key fields of T2 are included in T1. Table T1, which is the one being checked, is called a foreign key table, and table T2 is called a check table. The terms dependent (foreign key) table and referenced (check) table are also used.
    VALUE TABLE:If the domain of the check field has a value table, this is proposed by the system as check table in the foreign field maintenance. The key fields of the value table are in this case assigned fields of the foreign key table with the same domain. These fields may assume only those values allowed by the value table.
    The value range of the domain can be defined by specifying value table.All table fields referring to this domain can then be checked against the corresponding field of this value table.In order the check can be executed, a foreign key must be defined for the value table.

  • Fix with remove problem

    Using the Essbase version 6.2 I have tried without luck to do a fix combined with remove.My problem is that I want to remove 2 nodes. If have tried the following.FIX (@remove(@idescendants(D_ABM_MEASURE),"TOTAL COST"));CALC DIM (D_ABM_GL_ACC_DIM, D_ABM_YEARSCEN_DIM, D_ABM_BU_DIM, D_ABM_LEDGER_DIM,D_ABM_RES_DIM, DAC_DEPARTMENT, D_ABM_TIME_DIM);ENDFIXAnd this works, but it only removes one node (Total Cost). To remove a second one I use the list function as a second parameter. Which looks like this:FIX (@remove(@idescendants(D_ABM_MEASURE),@LIST(PERCENT, "TOTAL COST")));CALC DIM (D_ABM_GL_ACC_DIM, /.../D_ABM_TIME_DIM);ENDFIXWhen I run this it doesn't calculate anything.RegardsHenrik.

    I think a closed brace is missingtry this FIX (@remove(@idescendants(D_ABM_MEASURE),@LIST(PERCENT, "TOTAL COST")))); CALC DIM (D_ABM_GL_ACC_DIM, /.../ D_ABM_TIME_DIM); ENDFIX

  • Table rows lock problem

    Dear Oracle Tech.
    As end user of Oracle Database, we seek advise from Oracle on the following issue :
    Our business application is an OLTP system and currently we have an adhoc batch process that needs to be executed. This batch process mirrors a normal online user process in the way some tables are updated on the database. Our concern arises when our customer requested to run the batch process during normal office hours which actually is not the norm. We would like to have your opinion on running batch update process during normal office hours, are there issues of lock contention and risk of deadlock? We understand Oracle databases have lock mechanisms built into it but is there a risk of the deadlock situation arising if we do execute the batch process during normal office hours? And if deadlock does occurs, how easy is it to detect and resolve the deadlock and return the application to normal operation?
    Our database is Oracle 7.3.4 running on Solaris 2.6 over a network, our online application is built with PowerBuilder 7 and running on Windows95 clients.
    Thank You.

    I have a related problem and thought that one of you might be able to help me. I am relatively new to JDBC.
    My code is very similar to Alex' except that the queries are simpler (what does 'FOR UPDATE' do?).
    con.setAutoCommit(false);
    con.setTransactionIsolation( Connection.TRANSACTION_REPEATABLE_READ);
    query1:
    select * from table_bla where a=b
    query2:
    update table_bla set ... where a=b
    The problem is that in between these 2 queries, the new rows get inserted into table_bla that satisfy a=b. Consequently, these rows get updated by query2, even though they haven't been retrieved by query1.
    How do I synchronize this, so that nothing can be inserted into table_bla until my block of queries is executed (or how can I ensure that only the stuff that was retrieved by query1 is updated in the table)?
    Help much appreciated.
    Thanks!
    Sladjana

  • Table row lock problem

    Dear Oracle Tech.
    As end user of Oracle Database, we seek advise from Oracle on the following issue :
    Our business application is an OLTP system and currently we have an adhoc batch process that needs to be executed. This batch process mirrors a normal online user process in the way some tables are updated on the database. Our concern arises when our customer requested to run the batch process during normal office hours which actually is not the norm. We would like to have your opinion on running batch update process during normal office hours, are there issues of lock contention and risk of deadlock? We understand Oracle databases have lock mechanisms built into it but is there a risk of the deadlock situation arising if we do execute the batch process during normal office hours? And if deadlock does occurs, how easy is it to detect and resolve the deadlock and return the application to normal operation?
    Our database is Oracle 7.3.4 running on Solaris 2.6 over a network, our online application is built with PowerBuilder 7 and running on Windows95 clients.
    Thank You.

    Hi,
    fortunately Oracle tries by default to minimize all locking issues on its objects, only those rows are locked(until a commit or rollback occurs),which are modified by transactions, table locking will normally not happen. This is very appropriate and works well for OLTP applications. But, indeed, concurrent batch operations with bulk data loading could produce problems. In general, because of their resource consumption and also because of growing locking issues. Consider this example:
    You have (in your batch procedure) an update statement, which updates a complete table.
    UPDATE big_table SET field1 = anything;
    no WHERE clause reduces the affected rows.
    When this update has been started, all affected rows are locked, this may be many and the transaction will last for a long time, no other user can update (or delete) any of these rows. This issue is not resolved, until a commit or rollback occurs.
    Deadlocks are relatively rare and are selfdetected and resolved by oracle (the blocking transaction will be rollbacked). You will find an entry in the alert log and a trace file is produced.
    I'm not familiar with PowerBuilder, but I know sometimes Oracle's default locking methods are overwritten by third party software.
    Regards
    Werner

  • Trying to update iTunes, older version removal problems

    Trying to update my iTunes account on my computer and the new 10.5.2.11 version would not download, so the web told me to remove iTunes and reinstall it, now I am having trouble because the ( older version removal ) does not happen, so the download stops and it refers me to tech services.  How do I fix this problem?

    Download the Windows Installer CleanUp utility from the following page (use one of the links under the thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    To install the utility, doubleclick the msicuu2.exe file you downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • DKU-2 Driver Removal Problem

    Sir, Madame, Comrade
    I cannot install PC Suite 6.83 over the 6.6 version due to the system’s inability to uninstall the DKU-2 cable driver. I have tried several times, but this is all the same. The PC Suite installation process aborts, and the message appears: ‘Another version of Nokia Connectivity Driver has been detected. Please remove it before continuing’. And when I try to uninstall the driver, the uninstallation fails (no system messages returned). I have downloaded the latest Nokia Connectivity Driver from the official site, but it is unable to overwrite its own previous version.
    Is there any way to tackle that problem?
    Here is my config:
    Phone: Nokia 6260
    PC: Acer Aspire 3610
    OS: WinXP HE SP2
    Cable: DKU-2
    Cable Driver: 1.00.150.6
    PC Suite: 6.6 rel. 18/ None

    Hi. I had the same problem.
    Started regedit: HKEY_CLASSES_ROOT\Installer\Products
    Browsed through all the things listed. Found 2 of them containt somthing with conectivety driver. Deleted them and tryed starting the installation of the newest PC-Suite software AGAIN. And it worked! Hope this can help you too.

Maybe you are looking for

  • How can I edit an RH9 .hhc file (XML format) to include a portion of a RH8 TOC (HTML format)?

    I blend output from a third-part application (Sandcastle) into an existing RH8 project.  I do this by decompiling and importing the HTML, then editing the RH8 .hhc file to include the .hhc information from Sandcastle. This worked fine until RH9 (and

  • 'Playlist is' criteria breaks Smart Playlists  on iPhone 3G?

    I am using the 'Last Played and' 'Playlist is' criteria for my 3G's Smart Playlist. This method works great in iTunes but does not seem to update on the 3G. Essentially, the music track I just played does not remove itself from the playlist. Using 'P

  • Song from iTunes doesn't play in full

    Recently downloaded an album from iTunes but track 1 of said album doesn't play in full.  I've downloaded the album as well as the track in question; nothing changed.  Anyone else have this problem?  If so how did you solve it?

  • Need a Quary To get sign(- or +) values

    I have a table CREATE TABLE N    (     M NUMBER,      N NUMBER INSERT INTO N VALUES(-50,-60) INSERT INTO N VALUES(-50,-70) INSERT INTO N VALUES(-50,-80) INSERT INTO N VALUES(78,78) INSERT INTO N VALUES(79,90) M       N -50       -60 -50       -70 -60

  • USB Compressor Mic Problem Help please

    I plug in the usb compressor mic. Then I go and select it for my device. Next I select input 1 for my input and Out 1-2 for my out put under 0/l in the Audio 1 thing to the left of the screen. After it is selected I have no audio. As in, If I hit pla