Advanced table copy and delete slow when done programatically

I am modifying a line in an advanced table, then copying it and deleting it. What I noticed is that
it takes a lot less time to copy and delete manually within the application verses doing it programatically.
To copy or delete 10 lines it takes about 1 or 2 seconds within the form. When I do this programatically
it can take up to 20 seconds. Does anyone know why it takes so much longer?
Here is a sample of my code.
          porequisitionlinesvorowimpl.setSelected("Y"); //programatically select line for copy
     ArrayList deletearraylist = null;
     String s1 = porequisitionlinesvorowimpl.getItemNumber();
          java.sql.Connection connection = oadbtransaction.getJdbcConnection();
          //Query values from for child item.
          OraclePreparedStatement oraclepreparedstatement = null;
          ResultSet resultset = null;
          try {oraclepreparedstatement = (OraclePreparedStatement)connection.prepareStatement("SELECT I2.DESCRIPTION WHERE                       I.SEGMENT1 = ?");
                           int i = 1;
                           oraclepreparedstatement.defineColumnType(i++, 12, 240);                                                                 oraclepreparedstatement.setString(1, s1);
                           resultset = oraclepreparedstatement.executeQuery();
                           while(resultset.next())
                                //Collect values from query for child item.
                                String desc = resultset.getString(1);
                          porequisitionlinesvorowimpl.setItemDescription(desc);
                          //Copy modified parent to produce a child line.
                          ArrayList copyarraylist = new ArrayList(2);
                           copyarraylist.add("populateAndDuplicate");
                           copyarraylist.add("lines");
                           executeServerCommand(oapagecontext, oaapplicationmodule, "CheckoutLinesSvrCmd", copyarraylist);
                           } //while loop for resultset
          resultset.close();
     oraclepreparedstatement.close();
          catch(SQLException sqlexception) {
               ErrorUtil.handleFatalException(oadbtransaction, sqlexception, this);
          //Delete original Kit Parent           
          deletearraylist = new ArrayList(2);
          deletearraylist.add("populateAndDeleteReqLines");
          deletearraylist.add("lines");
          executeServerCommand(oapagecontext, oaapplicationmodule, "CheckoutLinesSvrCmd", deletearraylist);

I timed these too and they appeared to completed very quickly. The only events that took a significant amount of time where the calls to the executeServerCommand when I copied and deleted lines.
Can the database connection and looping the resultset be slowing these activities down?
There is no VO existing that generates the query results I am looking for. Do I need to create my own VO?

Similar Messages

  • I installed Windows 7 in my Macbook pro, I can access Windows data in Mac, but I can't copy and delete it. and the same case while i am working in Windows. Could you please guide me if there is any solution, where I could copy/paste/delete my data.

    I installed Windows 7 in my Macbook pro, I can access Windows data in Mac, but I can't copy and delete it. and the same case while i am working in Windows. Could you please guide me if there is any solution, where I could copy/paste/delete my data.

    OS X can natively read NTFS of Windows, but not write to it.
    Windows can't read or write to HFS+ of OSX, and that's a good thing from a security standpoint.
    Ideally if you share files between operating systems you should have a FAT/MSDOS formated USB key or hard drive. (exFAT external drive if any of your files are over 4GB in size) both these formats are universal for OS X or Windows.
    If you install software into Windows and OS X to read each others formats, then you have to pay to update/upgrade it deal with headaches.
    If you swtich between Windows and OS X a lot, don't need full hardware performance for Windows, you may consider installing virtual machine software like VMFusion or Parallels which can take a copy of your Windows in Bootcamp and place it into OS X as a file then run that copy of Windows in a window in OS X like so.
    Advantage here is you run most of your light weight Windows programs like this at the same time as OS X.
    Benefit is you can run just about any Windows or Linux version and OSX server editions (not client versions)
    Bootcamp only allows Windows 7, that's it now.
    You'll also be interested in two fre pieces of software, Carbon Copy Cloner and Winclone on macupdate.com.
    CCC clones OS X partition and Winclone clones the Bootcamp partition. Valuable for you.
    Good Luck

  • Bug: Copy and Paste shortcuts still don't work

    Copy and Paste shortcuts still don't function.  I have to manually go to the menu to copy and paste.  Is this being addressed? This is a basic function used often.
    Mac OS X 10.7.5
    Adobe Story Plus: Build 1196
    When I started software AIR updated.
    Appreciate the help.
    Best,
    Randy

    Hi Randy,
    Can you please let us know if you still observe this issue after upgrading to latest version of Adobe AIR?
    You can download the latest version of AIR from: http://get.adobe.com/air

  • Hi from the last two days my iphone have very slow to open the apps and very slow when i check the notification window , it taking too much time to open when i tap to down . help me to resolve the issue.

    Hi,  from the last two days my iphone( iphone 4 with ios 5) have very slow to open the apps and very slow when i check the notification window , it taking too much time to open when i tap to down . help me to resolve the issue.

    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore...
    iPhone Reset
    http://support.apple.com/kb/ht1430
    Try this First... You will Not Lose Any Data...
    Turn the Phone Off...
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear and then Disappear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...
    Turn the Phone On...
    If that does not help... See Here:
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414

  • TS4036 how can I view backed up files and delete things I don't need

    how do I view backed up files and delete thing I don't need

    You can't view individual files contained in the backup.  You can control which apps are backed up, and whether or not the camera roll is included in the backup, by going to Settings>iCloud>Storage & Backup>Manage Storage, tapping the name of your device under Backups, then looking under Backup Options.

  • Getting eroor while copying and deleting user

    Hi All,
      I am unable to copy and delete users from one client, we are in ecc6.0. i am getting the following error while copying and deleting. the error is
    NUMBER_GET_NEXT AENDBELEG INTERVAL_MISSING.
    Please help me in this regard,
    thanks,
    praveen

    Hi Praveen,
    Implement the program correction to ensure that the system issues the correct error message.
    Manually create the missing interval.
    You can use error message CD 121 to enable you to identify the error more accurately. Depending on the additional information, the status is as follows:
    OBJECT_MISSING : The entire AENDBELEG number range object is missing and must be created.
    INTERVAL_MISSING: Number range interval 01 is missing and must be created.
    INTERVAL_NOT_INTERNAL: The definition of number range interval 01 is incorrectly set to 'external number assignment'. Delete the 'external' selection in the interval definition.
    Check the definition of the AENDBELEG number range object in transaction SNRO:
    Object name:   AENDBELEG
    Short text:    Change documents
    Long text:     Number Ranges for Change Documents
    To-year flag:                        Do not select
    Number length domain:                 CHAR10
    No interval rolling:                  Do not select
    Number range transaction:             SCDN
    Warning %:                            10.0
    Main memory buffering:
    No. of numbers in buffer:             10
    You must define the following interval:
    Interval No. 01
    from 0000000001
    to 9999999999
    internal number assignment
    Please look st SAP Note: <b>659573</b>
    Hope it helps.
    Please award points if it is useful.
    Thanks & Regards,
    Santosh

  • How do I search for lines with a particular pattern and delete them when a match occurs

    How do I search for lines with a particular patter and delete them when a match occurs? For example delete lines containing SUB_NAME = "?" where ? is any string. 

    How do I search for lines with a particular patter and delete them when a match occurs? For example delete lines containing SUB_NAME = "?" where ? is any string. 
    Lines in what? And what language are you using to develop with?
    Are the lines in a text file? A RichTextBox? A TextBox? Some other control? A List(Of String)?
    Is there some expectation by you that by providing what you wrote in your question post that the knowledge in your mind about what you are thinking about will mysteriously emanate to anybody reading your post so all of the sudden your knowledge will
    become their knowledge and they will be able to provide you with an answer as they will suddenly understand what you are trying to do? Because that's probably impossible. Most people try providing enough information in a question so anybody, even stupid people
    like me, can understand what they want. Maybe you should try that. As well as selecting an appropriate forum for your question in the future. Usually a question like this is related to programming in a particular language therefore a language forum may be
    a good choice. Or not.
    La vida loca

  • Still not able to use fire fox, Fire fox works in safe mode but then it will freeze up and run slow when i try to use a link. All my drivers ect are up to date.

    My Fire Fox will only open in xp sp1 but then it will run slow and freeze up when i try to view a link, i have just about given up with this problem as i have tried every thing that might fix this problem.

    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    If this doesnt work, may you please reply and respond with a list of things you have tried.

  • Defining event handlers for renaming, moving, copying and deleting of files.

    Hi every one.
    I had created a tool for InDesign CS6 written using Javascript to manipulate portions of text in nested way by marking them with small non-printing small anchored text frames contains sequenced numbers and storing these portions as snippets in a spicific folder beside the InDesign documents.
    This tool is open source and free of charge, the only this that I want from you (after downloading) as a user to feedback and as a developer to improve it and join me.
    sourceforge.net/projects/livesnippets
    My question is not about this but I want to trace when the user rename, move, copy or delete a file of these snippets or any container folder and interact according to that by reserving the links between snippet files and their instances which interspersed in InDesign documents.
    Thanks.

    Here is an example of using Bridge events… What this scrript will do if you add it to Bridge scripts… is set *all* indesign snippets in the folders you browse to… to be locked/readonly… This means that users will get an extra dialog if they want to delete the file… Finder or Bridge… You can't just rename the file Finder or Bridge… and Bridge's Batch Rename will only function if the user makes copies to new location… You could set this property using the File Object with indesign…
    #target bridge
    onDocLoaded = function( event ) {
        if ( event.object instanceof Document && event.type == 'loaded' ) {
            lockIDSnippets();
            return { handled: true };
    function lockIDSnippets() {
        var i, count, doc, thum;
        doc = app.document;
        count = doc.visibleThumbnailsLength;
        for ( var i = 0; i < count; i++ ) {
            thum = doc.visibleThumbnails[i];
            if ( /\.idms/.test( thum.spec.name ) ) {
                thum.spec.readonly = true;
    // Register event handler
    app.eventHandlers.push( { handler: onDocLoaded } );

  • Copy and delete using FM - HR_INFOTYPE_OPERATION..

    Hi All,
    I would like to copy the record and delete the record using the FM - HR_INFOTYPE_OPERATION..
    Scenario : For Example IT 0010
    Existing Record
    BEGDA                      ENDDA
    01.01.2005     30.09.2007
    I would like to copy the records with new begda - 01.10.2007, this is working fine and I am doing the commit work after FM - HR_INFOTYPE_OPERATION with Action COPY.. After this I have put a break point and cross checked theire are two records in IT 0010
    BEGDA                      ENDDA
    01.01.2005     30.09.2007
    01.10.2007     31.12.9999
    After this again I am using HR_READ_INFOTYPE with BEGDA and ENDDA as 01.10.2007, I was expecting the latest record that begda with 01.10.2007 but I am getting the old record that 01.01.2005 and 31.12.2007….!! When I cross check using PA20/PA0010 It shows two records but when I use HR_READ_INFOTYPE it still access the old records…!!, how do we overcome this , for me I need to record with begda 01.10.2007 and endda 31.12.9999 so that I can delete it…!!
    Please suggest..
    Regards,
    Mangalagi S V

    Dear Suresh,
    Thanks for the suggestion., it's worked..!!
    Regards,
    Mangalagi S V

  • ABAP Client proxy to JDBC (two tables update and deletion)

    Hi Champs
    We have a source structure lpopulated via Proxy looks like:
    (A) Header
          ___Log_Rec
    TimeStamp
    Rec_Count
    Rec_Type
    (B) Data
    Master_Data
    LFA1- NAME
    (C) Trailer
    Total Packages
    Actual Package Number
    From Proxy we are sending records in batches of say 500 records, if there are 5000 records pulled by report then proxy will be sending 500 records at a time. we say 500 records as 1 package, so total 10 packges will be received by XI during one report execution. After receiving first package(In source structure when Actual Package number is 1) in XI, XI has to first clear the data from table(Clearinf of sata can bve done based on timestamp from SAP data and Database table records time stamp value) and then post master data(B) to one of the table in SQL, Once XI received all the packages(10) then one log entry has to be done in separate log table, 
    We were planning like is there any way we can compare Total Packages and Actual Package number based on which we can do operations on Database table.
    What will be the best practice to achieve this scenario?
    Best Regards,
    Div

    Div,
    You can do this easily using ccBPM,do you have any reason not to use ccBPM.
    A BPM instance can manage 10 packages (or one report output ) and do exectly what you want.
    Since you gave the total pacakage and the current pacakage info in the message,you can use that to contriol the BPM.
    Bikram

  • Why won't illustrator Cs5 allow me to copy and paste layers when they aren't locked?

    I am working on a project and when I try to copy and paste unlocked layers to paste them in to another image it doesn't paste. The only thing it pastes is the text unformatted. I tried resetting the settings by removing the setting file to see if I can set Illustrator back to square one and it isn't working. See Picture for before (copy) and After (paste)
    Before
    http://i.imgur.com/rqJhc.jpg
    After
    http://i.imgur.com/FN0jA.jpg
    I am also using windows 8 on a pc. I would say it was the OS but it was working fine untill yesterday. I am begging for help on this. It is really ruining my work flow today.
    Thanks for any help you can give.

    I just opened the document "san_jan_email.ai" and this is what i see:
    i didn't try to copy and past yet, cause the document it seems fine, have you fixed it? otherwise i can say another stupid thing, i dont know if it's cause the document is too "heavy" for your computer? have you seen if you are not going out of ram or of some hard disk space? at first i could thinking about resetting the settings in Illustrator but since you just said that you already did it, and also that you tried with a CS6 copy, i think it's not that the case.
    edit: i tried to copy and paste as well, for me it's working.

  • Using a server side package to copy and delete flat files.

    Can anyone tell me if it is possible to copy or delete flat files using comands issued from within a PL/SQL program unit on the server. I know of the package UTL_FILE for the reading and writing of flat files.

    Malcolm,
    if you use 8i, you can create a Java class to do that for you, and call one of it's metohds from PL/SQL, see http://www.oracle.com/oramag/oracle/00-Mar/o20java.html
    null

  • Within the Sendible, I cannot copy and paste links (when not hyperlinked). The help info indicated it was connected to a Mozilla profile issue. But I cannot make these changes on my own. Please help! PKennedy

    Mozilla will not allow me to copy and paste a URL from Sendible. The info indicated I had to update my profile information, but I'm not able to do this on my own. Please help!

    Clear Cookies & Cache
    * https://support.mozilla.com/en-US/kb/Template:clearCookiesCache
    Clear the Network Cache
    * https://support.mozilla.com/en-US/kb/How%20to%20clear%20the%20cache#w_clear-the-cache
    Troubleshooting extensions and themes
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    Check and tell if its working.

  • Can I programmatically copy and delete VIs within LLBs?

    When I try to programmatically copy a vi within a llb using the "copy"-vi I get an error. The same occurs with "delete". Is there any way in LabView 5.1 to get that going? Does it work in LV 6? Thanks for any idea,
    Daniel Troendle

    Dennis is partially correct. I think all LV versions have it, because it is used in the menu system to manage VI libraries.
    If you go to vi.lib->utility->libraryn.llb, you'll see the librarian vis, including the librarian delete. This will allow you to delete a file in a library.
    I don't have the professional version, and I have it. I tried it, and it works.
    Mark

Maybe you are looking for

  • Cannot Open A Library File Using the 'Option' key When Launching iTunes

    I found that when I tried to open a different iTunes library file then my default by using the 'option' key when lanching iTunes that the iTunes Library file was greyed out. I looked in the previous Library Folder and noticed that the old file had th

  • MacbookPro Reset + Other Problems

    I don't know how many of you are mac users or have any idea what might be the problem with my baby but it's dying on me... so heres the gist of it: ~~ It's a bit of a long story, but if you'll bear with me: It started with a simple problem of my para

  • Oracle TimesTen - Cyrillic names problem

    Hi, Guys! I am trying to adopt Oracle TimesTen to speedup my database. My database has alot of objects with Cyrillic names. I`ve tried almost all the character sets which support Cyrillics, but it does not gives me a chance to create this objects. I`

  • Error message when trying create image from RAID

    I am trying to backup my RAID (697 GB) by creating an image (Disk Utility) on an external firewire drive. The settings are Read Only - I get an error message "image/device is too large" Is my RAID too large at 697GB to create an image? Thanks, Steven

  • Itune cant find iphone 4s, error 0xE8000084 occured, please advise

    if any can advise, appreciate