Move resultset's cursor to last position

Hi, i want to say, if it is possible, what can i do to move the curser of resultset before the last position, because i want to read che last record.
Thanks and excuse me for my english.
Daniele.

Some thoughts:
1) why do you call next() before last() - it should not be necessary.
2) you should test the return valiue of last() - if your resultset is empty (no rows retrieved), you get false, and this means you are not on a valid row, so getString() would fail.
3) Where do you catch the exception - show it to us.
What do you mean with: "i receice an exception: null" ?
- What kind of exception? A NullPointerException?
- print out e.printStackTrace() and post it.
I assume your driver doesn't support this feature. Which driver is it?

Similar Messages

  • In address book how do I move all cards from my 'last import' smart group into a new group?

    In Address Book, how do I move all cards from my 'last import' smart group into a new group that I will create? So far I am not being allowed to Edit Smart Group!
    Thank you x

    Simon
    You’re going to have a very big problem and very soon. These missing pics are the beginning of trouble.
    the total size of all my folders on my 60gb internal drive is 46.5 gb, yet only 1.9 gb is available,
    OS X needs about 10 gigs of free space on the hard drive for normal OS operations such as virtual memory and temporary files. Without this space the machine slows down as the OS hunts for free space, files become fragmented and applications begin to crash. The risk of data corruption increases exponentially.
    You must, as a matter of urgency, make space on the drive. I cannot stress this enough.
    You may be able to recover the pics from your camera card using an app such as MediaRecover
    Regards
    TD

  • How to  Place the Cursor at Specific Position with-in a Char Field ?

    Forms 4.5 ver.
    Sun Solaris / Citrix env.
    Char Field - Length 65434
    How Can I Place the Cursor at "Specific Location"
    with in a Field ?
    with GO_ITEM('field Name') I can place the Cursor at Specific Field.
    But, How Can I achieve to Place the Cursor at Specific
    Position within that Field ?
    I know, the starting position, length of string I want to hightlight with the Cursor.
    tried using :
    go_item('substr(field_name,position,length)') ;
    but didn't work !
    Is it possible ?
    Thanks, Peri

    The only cursor postion behavior that can be controled is the item property "Keep Position".
    The following is the text from the on-line help for item property "Keep Position"
    KEEP_POSITION Specifies whether the Keep Position property should be True or False. When Keep Position is True, the cursor returns to the same position it was in when it left the text item. When Keep Position is False, the cursor returns to the default position in the text item. Valid values are PROPERTY_TRUE and PROPERTY_FALSE.

  • Can't insert new row in last position in row set

    I am trying to programmatically insert a new row into the last slot of a View Object's default row set.
    I normally can do this:
    Row newRow = vo.createRow();
    // set stuff on the row
    vo.last();
    vo.next();
    vo.insert(newRow);and, voila, the row is in the last position.
    But on this particualr view object, when I do the above, the row is inserted in the first slot.
    There doesn't seem to be anything unusual about the View object. it is a child Vo in the data model, but that shouldn't matter.
    When I debug with vo.getCurrentRowSlot(), even after performing last(); next();, vo.getCurrentRowSlot() returns 0, never 3.
    Has anyone else run into this behavior and if so, any resolution or explanation?
    FYI, I was able to use the following workaround:
    Row lastRow = vo.last();
    if (lastRow != null){
        int indx = vo.getRangeIndexOf(lastRow) + 1;
        vo.insertRowAtRangeIndex(indx, newRow);
    } else {
       vo.insertRow(newRow);
    }   

    would this solve your problem
    http://kohlivikram.blogspot.com/2008/10/add-new-row-in-adf-table-on-button.html

  • Return to last position after record?

    I have a key command ("return") set to return to last position. The problem is, when I record a take, this function returns me to the beginning of the recorded clip instead of where I actually started from. If i don't record anything, this works fine. How do I get around this? Thanks,
    -RS

    I think the last position is the punch in point. It's a separate locator event from where the place you manually started. So..therefore it takes priority.
    best,
    Jon

  • I need show 3D plane wing movement based on measured 3 axises position. Can anyone tell me how?

    I am working on a project to control plane wing with 3 axises movement. It is required to show this movement based on measured 3 axises position. I have no idea on how to implement 3D animation by Labview. Can anyone give me a hand?
    I really appreciate!

    Hi,
    Do you have any idea about the number of samples? If it is limitted you can
    use LV's activex 3d functions. Otherwise you could turn to DIAdem, or make a
    OpenGL wrapper.
    An work around is to display two or three 2d charts with points or lines
    (like 3d programs have). This should give the viewer an idea about the
    movements.
    Regards,
    Wiebe.
    "jaja" wrote in message
    news:[email protected]..
    > I am working on a project to control plane wing with 3 axises
    > movement. It is required to show this movement based on measured 3
    > axises position. I have no idea on how to implement 3D animation by
    > Labview. Can anyone give me a hand?
    > I really appreciate!

  • Remembering last position

    I've added the new Harry Potter CDs to my Ipod, but these consist of over 1000 1 or 2 minutres tracks.
    Is there any way of getting my ipod to remember where I last finished. I ticked "Remember last position" against all, the tracks but this only seems to work on each short track
    Thanks
    Ainsley

    I can think of two solutions.
    One would be to use the program iTunesJoin (can be downloaded from versiontracker.com) to join the tracks from each CD--it will create chapter markers where each original track was. If you have 13 CD's, you could then have 13 long tracks with each track containing chapter markers for the smaller original tracks.
    The 2nd possible solution would be to place the CD tracks in order in a smartlist. Make is so that the smartlist only contained the HP album trakcs, only contained tracks whose playcount was 0, and set to live update. As you listen to a track, it will automatically drop off of the playlist.
    I actually combined these two solutions. Used iTunesJoin so that I wasn't dealing with 100's-1000's of tracks and then used the smartlist so that each CD/track dropped off once I listened to it. Then when I went back to the playlist, it automatically started with the first CD that hadn't hit a playcount of 0 and picked up wherever in the CD/track I left off.
    Hope this makes sense. I know that it sounds kind of confusing.

  • PODCAST doesn´t start in the last position

    Hi too all,
    I have an iPhone 6 with last IOS 8.2.1. If I'm listening a Podcast, then I stop it, when I back to listen, Podcast doesn't start it from the last position. It is always starting a lot of time before the las point.
    Any solution????? I am turning crazy bcs I cannot follow any podcast.
    Thks
    Miguel

    Hello Corbella,
    Thanks for the question. After reviewing your post, it sounds like the Podcast App is not saving the playbac position. I would recommend that you read this article, it may be able to help the issue.
    Podcasts for iOS: Sync podcasts - Apple Support
    Playback position
    Podcasts can remember your playback position between devices and computers, so you can always start where you left off. If Sync Podcasts is on for your iOS device, playback position will sync. However, you might need to turn on this setting in iTunes on your Mac or PC.
    Select iTunes > Preferences.
    Click the Store tab.
    Select "Sync playback information across devices." It may take a few minutes to sync.    
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • I am running Elements 11 on Windows 8.  When I use the healing tool, the entire image moves with the cursor.  How do I fix???  Thanks!

    I am running Elements 11 on Windows 8.  When I use the healing tool, the entire image moves with the cursor.  How do I fix???  Thanks!

    With the Healing Brush Tool selected, in the Tool Options, click on Clone Overlay and check Clipped.

  • DE 1.5 and 1.6 does not store the last position correctly

    Hi!
    I've seen this problem in DE 1.5, now I tried to install 1.6 and I see the problem is still here.
    I have some DRM-protected ebooks on my laptop. I open one of them, read, close on some page (for example, 162). Then I open another ebook, close it. Then I open the first ebook again and the position is 163-th page, not 162. Close and open again, the position is 164. And so on.
    I expect DE should store the last position without any "auto next page" functionality. Could somebody say me what is wrong here? Or, perhaps, this a bug of DE...

    Alexey,
    Please open a Digital Editions 1.5 Technical Support case. Use the contact links at http://www.adobe.com/support/digitaleditions.
    Regards,
    Bentley Wolfe
    Senior Support Engineer, Flash/Flash Player/Digital Editions
    Adobe

  • My new photoshop Elements 11 opens off centered and won't move with my cursor (on a MacBook )why?

    My new photoshop Elements 11 opens off centered and won't move with my cursor (on a MacBook )why?

    Try deleting/renaming 'psa.prf' and 'status.dat' file from '~/library/Application Support/Adobe/Elements Organizer/11.0/Organizer'.
    ~Andromeda

  • HT5622 I lost all my pictures! Please help:( I added all my photo to a new album from the camera roll and i delete the picture that already move to new album, at last all my picture was gone !:'( Please, anyway to recover back all my photo? please help :'

    I lost all my pictures! Please help:( I added all my photo to a new album from the camera roll and i delete the picture that already move to new album, at last all my picture was gone !:'( Please, anyway to recover back all my photo? please help :'( Apple Service Center or Branch can help?

    Albums is a way or sorting photos. Photos aren't moved from the Camera roll. The Camera Roll consists of all the photos on the phone. If you delete from Camera Roll they are deleted everywhere but Photo Stream.
    Are you using Photo Stream? Your photos, providing they wer recent should still be in Photo Stream. If you have Photo Stream set up on your computer they should all be there.

  • How to control the movement of mouse cursor?

    Hi,
    I would like to ask
    how to write a java program to control the movement of mouse cursor?
    For example, when I press the "��" key on the keyboard, then the mouse cursor move upward.
    Thanks you very much

    Have a look at java.awt.Robot

  • ITunes forgetting "Remember Last Position" setting

    Hi, first post
    Have a problem with iTunes that's only started happening recently. I have put some audiobooks into iTunes, selected them all, right click, Get Info, and tick "Remember Last Position" and "Skip When Shuffling". Click OK, then if I immediately go back into "Get Info" and look again, they've gone back to their default position of not remembering, and not skipping when shuffling.
    If I choose an individual file and try to do the same, those two options are greyed out and can't be changed....which is odd.
    Am I doing something wrong, or does it sound like a bug?
    Thanks in advance

    Those 2 settings are stored in a file named iTunes Library.itl, I'm pretty sure, instead of the actual content file tags.
    I suspect your Win 7 permissions aren't allowing itunes to change it, somehow. Which is really weird, if you can still add music.
    When things are grayed out in the Info screen, it usually comes down to windows permissions. Even if you are the only user and an admin account.
    Make sure you have *full control* and ownership of that file. Here is quick lesson with screenshots on changing permissions, whether you want delete it, or in your case, modify it.
    http://helpdeskgeek.com/windows-7/windows-7-how-to-delete-files-protected-by-tru stedinstaller/
    Remember to restart itunes after changing any permissions, so it will read the new settings.
    If it still doesn't let you make changes, try temporarily turning off UAC.

  • When I started my iMac, I could move my mouse cursor but I could not clik

    When I started my iMac, I could move my mouse cursor but I could not clik. Following some advices from the discussion board, I did run the safe mode. Nothing changed. Hence I could not log in. Need help, please.

    I am using an Apple Magic Mouse and up to yesterday there was no problem.
    This morning when I logged in, I got a note that my trackpad battery is low.
    I tried to close that notice, failed. I tried open finder, fail. I could move my cursor but could not clik. I turned off.
    Now here I am.
    When I started my iMac, I could move my mouse cursor but I could not clik. Following some advices from the discussion board, I did run the safe mode. Nothing changed. Hence I could not log in. Need help, please.

Maybe you are looking for

  • How do I delete an old g mail account

    Had a previous BB and got a new Curve9320. Used Desktop software to back up and restore from old to new phone. The old phone has been wiped and returned to my former employer BUT my new has 2 personal email accounts but also a icon for my former work

  • Reading two files at a time

    Hi, My sender system sends two files 1.Header 2.Item I need to read both the files at a time. If only both the files are present in the directory,i want pick the files otherwise not. How can i do this validation in XI?? Thanks. Rushikesh

  • Can't upload photos to my ipad what should i do?

    Everytime i try uploding photos to my ipad it goes wrong and say that can't save to my disk please HELP!!

  • Error while building binutils for msp430

    [anish@thinkpad binutils-msp430]$ makepkg pkgbuild ==> Making package: binutils-msp430 2.21.1a-2 (Fri Mar 15 20:28:31 UTC 2013) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving Sources... -> Found mspgcc-2012

  • Leopard client, Tiger server & ACLs

    I've been reading many discussions on improper ACL settings due to a Tiger client being upgraded to Leopard. I'm having a similar issue, just a different setting. I'm using a Tiger server and did a fresh install of Leopard on all the clients. Everyth