Moving the row in the Iterator

Hi I am using ADF Business component and UIX.
I have a uix page that displays a Table and two buttons
The buttons job is move a particilar row up or down .
Here is the code for the move up button.
int index = transaction.getCurrentRowIndexInRange()-1 ;
Row currTrans = transaction.getCurrentRow() ;
currTrans.removeAndRetain();
transaction.getNavigatableRowIterator().insertRowAtRangeIndex(index,currTrans);
It works the row is moved BUT it throws this Exception:
oracle.jbo.DeadViewRowAccessException: JBO-27102: Attempt to access dead view row of persistent id 645.
Thank's
Omar Dawod.

Hi.
I tryed to change the Sync mode from Batch to Immediate.
The row moving worked sucessfully.
But Other pages in my web app stopped to work.
forexample I have a uix page that displays companies as master and branches as detail .When user attempt to create new branch the user is taken to a branch form .
When he clicks save changes , this exception appears in the message box (java.lang.NullpointerException).
I tryed to keep the Sync mode Batch. And change it at runtime in the beginning of the moveUp and moveDown methos using.
DCBindingContainer.getApplicationModule().setSyncMode(ApplicationModule.SYNC_IMMEDIATE)
and then at the end of those methods I turned it back:
DCBindingContainer.getApplicationModule().setSyncMode(ApplicationModule.SYNC_LAZY)
BUT it still throws this Exception :
oracle.jbo.DeadViewRowAccessException: JBO-27102: Attempt to access dead view row of persistent id 2,554
Thank's .
Omar Dawod.

Similar Messages

  • Change the current row in an iterator and reflect the change on page

    Hi there,
    I have a jspx with a creation form created as usual draging and droping the data control. In same page, I inserted a commandButton which ActionListener executes a method in a managed bean called validate(). Through such a method what Im trying to do is to fill the form with data from specified entry of the database if certain condition is true. I know it is kinda twisted but unfortunately is the requirement for the page.
    So basically in "validate" method, if the condition I mentioned is reached, I do the following:
    // execute a Rollback (included in Page Definition) in order to cancel the previous auto-invoked "Create".
    FacesContext context = FacesContext.getCurrentInstance();
    Application app = context.getApplication();
    BindingContainer bindings =(BindingContainer)app.getVariableResolver().resolveVariable(context,"bindings");
    OperationBinding opBinding = bindings.getOperationBinding("Rollback");
    opBinding .execute();
    //get the iterator and asociated VO from the binding container
    ValueBinding vb = app.createValueBinding("#{bindings.AccountsVOIterator}");
    DCIteratorBinding dciter = (DCIteratorBinding) vb.getValue(FacesContext.getCurrentInstance());
    ViewObject view = dciter.getViewObject();
    //and set the current row with the specified entry I have mentioned above.
    Object keyValues[] = new Object[2];
    keyValues[0] = "1"; keyValues[1] = "98543";
    Row[] row = view.findByKey(new Key(keyValues),1);
    AccountsVpnVORowImpl client = (AccountsVpnVORowImpl)row[0];
    view.setCurrentRow(client);
    view.executeQuery();
    dciter.setCurrentRowWithKey(client.getKey().toStringFormat(true));
    dciter.executeQuery();
    opBinding = bindings.getOperationBinding("Execute");
    opBinding.execute();
    All this works perfectly when I debbug it but I cannot see the changes in the page(even refreshing browser). I need that when such a condition is met, the creation form turns into a modify-specific entry form, filling all fields with the specific data in order user can modify it, and all in the same page.
    Any clue?
    Thanks so much in advance for your time.

    Hi,
    I could see the problem with call to executeQuery and execute methods at the end of your method which re-sets the current row.
    Once you set the current row you should not call execute or executequery methods. Try removing those calls and also make sure that you have added partialTriggers property on the table is set to commandbutton id and partialSubmit property is set to true on commandButton to refresh the table partially on click of a button
    Sireesha

  • How to set the iterator on a particular row by a value?

    Hi all,
    What I'm trying to do is:
    Duplicate a row by a database function and setting the iterator on the duplicated row.
    The first part works fine, but I've got no idea on how to set the iterator on the new row.
    The function returns the primary key for the new row.
    Has anybody got an idea how to find out where the new row is inserted into the iterator?
    Thanks alot in advance
    Sebastian Lorenz

    Take a look at the documentation. You should be able to build a complex key as an array of the key values.
    Key public Key(java.lang.Object[] keyValues)Constructs a Key from a set of key values.
    A key may be constructed to identify a row or a set of rows. If it is to identify a unique row, the key values must match the row's key attributes exactly.
    A partial key (where some key values are null) may be used to locate a set of partially matching rows. This is applicable only for oracle.jbo.RowIterator's findByKey(Key) method. See oracle.jbo.RowIterator.findByKey(Key) for details.
    The key values should be ordered as in the defintion for the given row (that of the Entity or the View Object).
    Parameters:keyValues - an array of key values.
    Hope this helps

  • Why does moving the mouse over an IMAQ image display slow the GUI down so much?

    I have a large application with several vi's running simultaneously under labview 8.6.1.  When I mouse over an image display control in one of the vi's, everything slows down a shocking amount in all the other vi's.  The windows task manager does not show a large increase in CPU use.  My pc is has a quad cpu with 4GB of RAM, and the CPU and memory loads do not appear to be terribly taxing to the system.  However, many of my vi's apparently come almost to a standstill if I just move the mouse in a circle around my image control.
    This looks like it is largely a GUI display issue.  If I make a new vi and put a while loop in it that only displays the iteration loop number to an indicator, I can see the iterating occurring, then stopping totally when I mouse inside the image display control.  When I stop moving the mouse inside the control, or when I move it outside the control, the interation loop number jumps up, as if it had been incrementing behind the scenes the whole time.  So only display of the interating was halted.
    This problem occurs even if the vi with the image control is not executing.  If the vi with the image control is open but not running, and I mouse over the image on it, the other guis all come to a screeching halt.
    Does mousing in the image display control really utterly crush all other guis in all other labview windows?  Is this an issue inherent to the image display control?  If so, is there anything I can do about this? 
    Also, this issue is not entirely limited to display.  I started looking at it in greater detail because this issue also exposed what I think is a race condition in my code.  I have a vi that acquires an image from a ccd and puts it into an IMAQ image.ctl.  This image then gets passed up to a vi up the call chain, and is put on a queue and sent over to be de-queued by a vi that has the image display control.  Here's the kicker:  when I mouse over the image display control, the image successfully gets acquired inside the subvi, and if I probe the wire leading to the output IMAQ image display.ctl, I see the image.  If I simultaneously probe the wire coming out of the subvi one level up the call chain, the image gets lost about half the time.  This only happens if I am mousing in the image display control IN A TOTALLY DIFFERENT AND SEPARATE VI.  If I bump up the priority of the ccd image acquisition vi to 'highest priority', the problem only happens about 1% of the time, and I really have to mouse around to make it happen.  Still, it's disturbing that mousing in the GUI in one window results in a failure of a separate subvi to simply pass an image up the call chain.  I understand that IMAQ images are referenced rather than passed by value, but I don't see why there should be a failure to pass the image up the call chain.  I've looked for a race condition, but can't find one.
    Eric

    I have finally been able to replicate the behavior that you are seeing on another computer once the image was large enough.  Here are a few notes about this behavior:
    First. The UI only slows down when the images are large, 16 bit images.  The reason why this is unique to 16 bit images is that they can only be displayed on the front panel as 8 bit images.  The workaround that Weiyuan suggested to change the 16 bit display mapping hints towards the root of the problem...that any time a mouse runs over the indicator, Windows asks the entire image to re-draw (having a separate indicator overlapping the image will create the same behavior).  With a 16 bit image, not only does the image have to re-draw on the screen but the 16 bit pixels need to be mapped to 8 bits.  When setting the 16 bit display mapping to Full Dynamic, this requires mor computation/pixel than 90% dynamic or one of the other mapping schemes.
    This is expected behavior if your program is running and you're trying to display a large 16 bit image.  To fix this behavior there are a couple options:
    Change the 16 bit display mapping to something other than full dynamic.  You can choose which 8 bits to display or if you want to map the bits. 
    Resize the image just for viewing purposes on your front panel (since you aren't going to view every single pixel of you image on the screen). You can use the IMAQ Resample.vi to do this.  This will allow you to take your 1500x1500 pixel image and only display a 500x500 pixel version.
    If you are interested in viewing small details of the large image, consider just displaying a smaller region of interest at a time.
    Let me know if any of these solutions work for you.  Good luck on your application.
    Zach C.
    Field Engineer
    Greater Los Angeles

  • VO fetches 25 records, when there are 150 in the iterator.

    Hi All,
    I'm using View Objects as part of my AD form. In the bean associatd with the form, in one fo my methods, I loop through the Iterator associated with this VO.
    I notice that only 25 records are being fetched, even though the number of rows is clearly more than that. I've looped through usinga for loop and printed each and every record within the VO and it only prints 25.
    How can I tune this VO to bring back all my records at once?Will it always only bring back 25 at a time?
    JDev-11g used.
    The code I use to bring back the rows is :
    int numRows = vo.getRowCount();
    System.out.println("*Number of rows*" + numRows); // This returns 150
    for (int i = 0; i < numRows; i++) {
    System.out.println("Role data" + roledata);
    I'm trying to print out each line's role data : I notice only 25 printed lines in the logs.
    //some code
    What am I doing incorrect here?
    Thanks
    Preethi.
    Edited by: 859810 on 08-Aug-2011 02:38

    On the page go to bindings - executables - select the iterator and set its range size to -1.
    setting -1 will fetch all the records
    Edited by: in the line of fire on Aug 8, 2011 1:41 PM

  • DCIteratorBinding : how to set the iterator value programatically,URGENT

    Hi all
    I have a af:selectOneChoice component bound to Iterator(DCIteratorBinding)
    I want to set the value of the af:selectOneChoice to specific value, I want to do so by setting the current row of the iterator to the value I want
    for example the iterator contains objects of class Dept which has two attributes deptno and deptName
    how can I set the Iterator to point at department with deptno=30, because the iterator deals only with keys

    do you mean setting a default value? If so, look at Re: Using af:selectOneChoice value in Router's case

  • HT1436 My Power Mac G5 will not fully boot without safe mode, it only comes to a blue screen where my cursor duplicates in to 2, (one is frozen, one can move by moving the mouse). What is my problem, and how do I fix it?

    My Power Mac G5 will not fully boot without safe mode, it only comes to a blue screen where my cursor duplicates in to 2, (one is frozen, one can move by moving the mouse). What is my problem, and how do I fix it?

    Great clue Lukas...
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport, or some USB or Firewire device, or 3rd party add-on, Check System Preferences>Accounts>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Also look in these if they exist, some are invisible...
    /private/var/run/StartupItems
    /Library/StartupItems
    /System/Library/StartupItems
    /System/Library/LaunchDaemons
    /Library/LaunchDaemons

  • I go to "clip adjustments" and change the length of a photo. It reverts back to original length. I also shorten it by moving the yellow "box" around a specific clip. It still reverts back to original length. Why?

    I go to "clip adjustments" and change the length of a clip. It reverts back to original length. I've also tried to shorten it by moving the yellow "box" around a specific clip to shorten. It still reverts back to original length. Why?

    Welcome to iMovie Discussions.
    See my 2nd reply to 'getzcreative', here.

  • Excel Upload and moving the data to dynamic itab

    Hi Folks,
    I am building a fieldcatalog dynamically based on the table name and then creating a dynamic internal table based on the fieldcatalog.Now I have a excel sheet having the fields in the same structure as the fieldcatalog that I built.I want to upload the data in the excel to an internal table having the structure of the fieldcatalog I built.I am having a problem in moving the data from the excel to the itab (dynamic itab built based on the fieldcatalog)
    1.Building the fieldcatalog.
    data:gt_fieldcat    TYPE lvc_t_fcat.
      ls_fieldcat-tabname    = p_tabname.
      ls_fieldcat-fieldname  = p_fieldname.  
      ls_fieldcat-inttype    = 'C'.
      ls_fieldcat-outputlen  = wa_dfies-outputlen.   
      ls_fieldcat-coltext    = wa_dfies-fieldtext.
      APPEND: ls_fieldcat TO gt_fieldcat.
      CLEAR : ls_fieldcat.
    2.Building the dynamic itab
    DATA:gp_table       TYPE REF TO data.
    FIELD-SYMBOLS: <gt_table> TYPE table,
    CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = gt_fieldcat
        IMPORTING
          ep_table        = gp_table.
      ASSIGN gp_table->* TO <gt_table>.
    3.Now I have an excel with a similar structure with data.Uploading the excel data into itab.
    DATA: g_t_xltab  TYPE STANDARD TABLE OF ty_xltab,
          it_rawdata TYPE truxs_t_text_data,
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
    *     I_FIELD_SEPERATOR    =
          i_line_header        = 'X'
          i_tab_raw_data       = it_rawdata
          i_filename           = xls_filename
        TABLES
          i_tab_converted_data = g_t_xltab[]
        EXCEPTIONS
          conversion_failed    = 1
          OTHERS               = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      Endif.
    *Move the data that got uploaded from excel into
    *respective internal tables.
        LOOP AT g_t_xltab
        here I want move the data into an internal table having the structure I built using
        the fieldcatalog/dynamic itab ie    <gt_table>.
        Endloop.
    I tried using ASSIGN COMPONENT sy-index of <gt_table> and move-corresponding but in vain as I am not that much familiar with dynamic itab using field symbols.Kindly let me know how the excel data can be moved to dynamic itab.
    Thanks,
    K.Kiran.

    Hi,
    you can try some logic like this. Please note this is just an example
    TYPE-POOLS:truxs.
    TYPES:BEGIN OF ty_xltab,
          field TYPE string,
          END OF ty_xltab.
    DATA:wa TYPE ty_xltab.
    DATA:lv_len TYPE i.
    DATA:startpos TYPE i.
    FIELD-SYMBOLS:<fs_line> TYPE mara.
    FIELD-SYMBOLS:<fs> TYPE ANY.
    DATA: g_t_xltab  TYPE STANDARD TABLE OF ty_xltab,
          it_rawdata TYPE truxs_t_text_data.
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
    *     I_FIELD_SEPERATOR    =
          i_line_header        = 'X'
          i_tab_raw_data       = it_rawdata
          i_filename           = ' '
        TABLES
          i_tab_converted_data = g_t_xltab[]
        EXCEPTIONS
          conversion_failed    = 1
          OTHERS               = 2.
    IF sy-subrc  <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    startpos = 0.
    LOOP AT g_t_xltab INTO wa.
      DO.
        ASSIGN COMPONENT sy-index OF STRUCTURE <fs_line> TO <fs>.
        IF sy-subrc = 0.
          DESCRIBE FIELD <fs> OUTPUT-LENGTH lv_len.
          IF lv_len > 0.
            <fs> = wa-field+startpos(lv_len).
            startpos = startpos + lv_len.
          ENDIF.
        ELSE.
          append <fs_line> to <fs_tab>.
          EXIT.
        ENDIF.
      ENDDO.
    ENDLOOP.
    Sorry my answer is not for you requirement..Please Ignore.
    Your solution can be easily solved by looking at the concept Assign component . Please search
    Edited by: Keshav.T on Nov 7, 2011 1:42 PM

  • I downloaded a program on my macbook pro and moved the file now everytime i open the program it says repair now...how do i fix that

    i downloaded a program and moved the file from which it was orignally downloaded now everytime i open it it says repair now...what do i do to get it to stop doing that...i hit repair now every time and it still says it everytime upon the programs startup

    Photoshop needs to be in the folder within Applications in which it was originally created. Put it back where you got it.
    Did you actually complete the download process or were you maybe running from the .dmg that you downloaded?

  • I'm using ezcap.tv 116 ezgamer capture card to record my PS3, this is on a windows laptop, Im then moving the recorded videos in mpg format over to my MacBook Pro to use IMovie to edit them to upload to youtube but it won't let me import them.

    I'm using ezcap.tv 116 ezgamer capture card to record my PS3, this is on a windows laptop, Im then moving the recorded videos in mpg format over to my MacBook Pro to use IMovie to edit them so i can upload them to youtube but it won't let me import them, even after changeing them to MP4 format, it just comes up with the message: "No Importable Files None of the selected files or folders can be imported. Change the selection and try again."
    Ive even tried opening in itunes and copying from thier but they wont open in Itunes, no message or anything they simple just dont open. its strange because it does open in quicktime player.
    please if anyone has any ideas that can help me please let me know XD thanks.

    First problem: You're fine. The hotter it gets, the more the fans spin up. The computer is designed so that at max load, at max fan speed, it won't overheat (unless it's obstructed by something, e.g. sitting on your bed swallowed by a comforter). It's not the best thing to keep it that toasty for days at a time, but a couple hours at a time shouldn't be a problem.
    Second problem: If something in the trash won't delete, just use Secure Empty Trash and it should be fine. Since .torrent files are quite small, it should only take a couple seconds.

  • How do you move an Event Library without moving the physical media

    I've got a large library of media that needs to be organized, with new keywords.  I have multiple people on different computers attacking portions of the media all stored on a single raid, accessed via gigabit ethernet.  When the libraries are created on each computer, the media is kept in it's original place.  Because the drive is networked, FCP X won't let me place the Event Library on the drive, though I can access the media.  It will also not let me move or duplicate the libraries to the networked drive.  If I connect a drive locally, I can move, copy or duplicate the Event Library, but, here's the problem, instead of copying the alias' to the media, and keeping it like the original event library, it copies the full media into the new library, unnecessarily.
    Has anybody found how to copy the Copy, Move or Duplicate the Event Libraries without moving the actual media to the new Library?  I'd like to copy the new libraries to the networked drive where the media is stored and then relink the files.  Then I could merge each computers Library into a master library.
    Does that make sense to anybody?  There has to be a way to stop FCP X from unnecessarily copying the media.

    Not sure if this is what you're looking for but - Did you uncheck 'Copy files to Final Cut Events Folder' when importing into your project?

  • How do I stream purchased movies to my Macbook Pro if I've already downloaded them and moved the source files to an external desktop hard drive and I'm away from home?

    I recently added a number of movies to my iTunes library by redeeming digital copeis that came with Blu-rays. Due to limted disc space on my MacBook Pro, and for safe keeping, once I downloaded the movies, I moved the source files to an external desktop hard drive. When I'm home and I'm able to access that external HD via my home network, I'm able to watch the movies without an issue. However, if I'm away from home and I want to watch them, I'm not sure how to do that. I thought I could "stream" purchased movies from within iTunes  - even after downloading them - using "iTunes in the Cloud" but can't figure out how to do that, or it simply isn't possible.
    What are my options?

    I understand that I can't play my downloaded movies when my external HDD is not connected becuase iTunes is looking for the downloaded files. This is not the issue. The issue is that because my HDD is not connected (as in when I'm away from home) I'd like to be able to stream the movies via the cloud.
    If I hadn't downloaded the movies when I redeemed my codes, would I have been able to keep the movies online via Apple iCloud and watched them anytime by streaming them or must the movies be downloaded in order to be viewed on my MacBook?  I read that Apple allows movies purchased (or redeemed) via iTunes to be stored in the cloud via Apple iCloud so that they can be viewed any time, on any device.  IF this is the case, how does it work? From what I can see, it looks like movies can only be "streamed" from the cloud when useing Apple TV; on my iPhone and MacBook Pro, it looks like they need to be downloaded in order to be viewed.
    Can someone clarify this for me?
    Also - Michael - when you said that If I've already downloaded the film but I'm away from my external HDD I should "Delete the entry from the iTunes library so iTunes only sees the iTunes in the Cloud version", what exactly would this mean? Would this mean that I could then stream the movie from the cloud or would I have to re-download it to my Mac's internal HDD in order to watch it?
    Many thanks!

  • HT1495 My Wife and I have separate accounts on the same Macbook Pro.  I have moved the iTunes library to a shared area and we can both access it, however, my Wife (secondary user)can't import cd's. Is there something we are missing and is there a way to d

    My Wife and I have separate accounts on the same Macbook Pro.  I have moved the iTunes library to a shared area and we can both access it, however, my Wife (secondary user)can't import cd's. Is there something we are missing and is there a way to do this?

    You are more likely to get relavant and useful suggestions posting to the Mac forums instead of the iTunes for Windows forum where you've posted.

  • Upgraded to FF4 sites were slow loading or not loading at all - then I discovered it downloads if I keep moving the cursor. If I stop moving the cursor the downloading stops or slows to a crawl again.

    Upgraded to FF4 sites were slow loading or not loading at all - then I discovered it downloads if I keep moving the cursor. If I stop moving the cursor the downloading stops or slows to a crawl again. What do I do so no need to keep having to move cursor?THE DOWNLOADING ICON STOPS MOVING UNLESS I KEEP MOVING THE CURSOR AROUND.

    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.

  • I moved the mobilesync path where my backups should be stored. However, since then I moved some folders around which I think is the source of my error. I can no longer backup my iphone. How do I fix this?

    A while ago, I moved the mobilesync path so that it would stop trying to backup onto my C drive. However, since then I moved some folders around which I think is the source of my error. I can no longer backup my iphone It just tells me that the backup is corrupted. When i go to preferences, devices, and look under backups it is empty. How do I fix this?

    Howdy there mjspace1994,
    It sounds like you are unable to backup your phone after moving the mobile sync folder from its default location. If moving it back manually does not resolve the issue, I would next use either of the following articles to remove iTunes from your computer and then re install it. The articles outline the proper order to remove them in, and step by step instructions:
    Remove and Reinstall iTunes and other software components from Windows XP
    Remove and reinstall iTunes and related software components for Windows Vista, Windows 7, or Windows 8
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

Maybe you are looking for

  • How do I install Photoshop Express on my iMac? (Can I install it on my iMac?)

    I'm a writer working on a book, and I need Photoshop Express (if it's possible) to view the size/resolution of image files that I plan to use in the book. I have a contractual deadline of this coming Monday, February 9, to get these photos to my edit

  • Elements 8 Crash on Exit in Windows 7

    Hi, I am deploying Photoshop Elements 8 to Windows 7 computers in our organization.  When exiting Elements 8 Editor, we get a crash report every time.  This is happening on multiple different models of systems on a clean Windows 7 base Image.  I have

  • XSU Problem:Error-- Cannot map Unicode to Oracle character

    Hi, I am using XSU to get the resultset from database(oracle 9.2.0.6.0) as XML.When I query data from some columns and get the XMLString, they give me error -"Cannot map Unicode to Oracle character". The database charset is "US7ASCII" . One column is

  • Split string into its number and alphabetic​al components

    I have a string constant "There are 100 pens and 200 pencils in the box".i want to split it into two parts one consisting of array of numbers i.e. 100 and 200,while the second part should display "There are pens and pencils in the box". How should i

  • How to effectively import photos from iPhoto

    I had a pretty large iPhoto library and try to keep it under control by exporting photos into folders on an external HD. I also have mobile me albums from multiple computers live. I tried importing photos from iPhoto into Aperture and encounter probl