Is there an easy way to fetch next/previous record in Apex?

I am new to APEX/Oracle, but have a lot of expierence as a mainframe programmer and some experience with SQL.
I have been tasked by my boss to create a set of pages in an application as follows.
Page 1: Select an Employees Name and go to Page 2.
Page 2: Display Employee's Biography Information.
Add a "Next Employee" button and a "Previous Employee" button that will fetch the next/previous Employees Biography info respectively.
In essence, he wants a query with every employee's biography information with the employee selected on page 1 used as the starting pointer.
I have successfully built "select an Employee's name on page 1" and "display his/her info on page 2" with a query that returns a single record.
What I can not figure out is how to get a next and previous button to get the next or previous record in a multi record query, using the intially selcted employee as the intial pointer.
Is their an easy way to build this using built-in APEX functionailty, or will it require programming to achieve this requirement?

Bob,
I installed the Aria application, but now I wish I'd run the preview first. It's a cool application, but I don't see anything like what greich requested. I'm looking for the same thing.
<ol>
<li>     and clicked the Edit or View Details button for an individual. </li>
<li>That takes me to a custom Form page that shows one person. </li>
</ol>
I'm trying to imagine how I'd code buttons for that Form page to let me click to see the next or previous person on that same form. My mind gets totally boggled when I consider that the user might have filtered the report to only show a few records. How do I have any idea what those IDs were and what order they were showing in, to know which is the next individual.
My only thought it to create a process on the report that could save primary key (e.g. employee ID) to a table or Apex collection? Then the form button runs a process that finds the current ID then uses next or previous?
I'm not sure how I could capture the PK in the report in order to save it.
Does this make sense? Anyone got a better idea?
Thanks,
Stew

Similar Messages

  • Best way to fetch next/previous N records without  re-querying DB?

    because the db query is very expensive I only want to do this once and the web app should "remember" all the records. any suggestions? Thanks!

    BobXu wrote:
    I have tried my best to improve on the backend, but it is not something so I better find a way to solve this problem on the front end.
    I am thinking maybe Ajax. any thoughts?Ajax isn't a panacea to fix all your woes.
    You will want to optimize your DB queries. If a single access is expensive, break it down into several smaller queries and only pull out a sub-list of data for each page. If you don't need to display every piece of data at a single time, then why ask the database for it all? Hop on over to the JDBC forum and ask them if there isn't room for improvement in your query, table format, or access style.
    That said, if the contents of the database are relatively static and paging won't help for some reason, and there is nothing you can do to clean up the connection to the server, you might try caching the results to a local file system or a smaller database that is on the same machine as the web server.

  • Is there any easier way to edit imovie files that have been exported as mov file then added to FCE 4?? As every move I make has to be rendered and takes forever??? Also my recording is going out of focus without me touching the camera, why has this happen

    Is there any easier way to edit imovie files that have been exported as mov file then added to FCE 4?? As every move I make has to be rendered and takes forever??? Also my recording is going out of focus without me touching the camera, why has this happened any idea what causes this??
    iMovie '08, Mac OS X (10.5.8), FCE 4

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • I have a new computer and want to sync my Iphone and Ipad2 to the new computer, is there an easy way to do this?

    I have a new computer and want to sync my Iphone and Ipad2 to the new computer (PC) instead of the old one, is there an easy way to do this?

    Extract from one of our senior participant.
    Syncing with new computer
    1) Without connecting your iPad to your laptop, start iTunes. Click on Edit. Click on Preferences. Click on Devices. Check the box next to "Prevent your iPod etc. from automatically syncing." Click OK.
    2) Now connect your iPad to your laptop and start iTunes.
    3) When iTunes starts, right click on your iPad under Devices in the left column. Select Transfer purchases etc.
    4) After it finishes transferring all your apps to your new laptop, right click on your iPad and select Backup your iPad.
    5) After it finishes backing up your iPad, right click on your iPad and select Restore etc.
    6) After it finishes restoring, left click on your iPad , then click on the Apps tab on top, and check the box next to Sync Apps, then click on Apply below.
    If everything on your iPad looks good after the sync, go back and click on Edit / Preferences / Devices and UN-check the box next to Prevent your iPod etc. The only other thing you may want to check is if your contacts, bookmarks, etc. are syncing correctly now. If not, go to the Info tab after connecting and make sure you indicate which features you want to sync with what sources.

  • HT1766 On an iPhone 5, Is there an easy way to move app icons as a group? instead of one by one?

    On an iPhone 5, Is there an easy way to move app icons as a group? instead of one by one?

    If you have a bunch of apps on one screen yunwantnto move to another as a group, create a folder by holding your finger on ne app until all the icons start shaking and show and "x" in the top left corner of the icon. Press again and don't lift your finger; move that icon with your finger over one of the other icons you want to add to the folder, which will create a folder. Then you can move the other apps you want to move into that folder. When you have all the apps you want to move into that folder, close the folder by tapping on the screen outside the folder. The icons should still be shaking. Then press on the folder you want to move and slide it to the edge of the screen, left or right, until the folder moves to the next screen. Once you get it to the screen of choice, you can leave the apps in that folder or move them out by the same process. When you are done moving things around, press the Home button and the icons will stop shaking. Now they will stay put.
    Alternatively,my can sync your device with iTunes and move the icons around in the Apps windows in iTunes, then re-sync your device after you're finished. That will rearrange your icons on the device.
    Good luck!

  • I have two iTunes libraries I need to merge.  Both contain over 34,000 songs, so I cannot do this manually.  Is there an easy way to do this?

    I have two iTunes libraries I need to merge.  Both contain over 34,000 songs, so I cannot do it manually.  Is there an easy way to do this?

    Drag the media folder from one over to an open iTunes window.  Go away and have a long lunch.  Of course if you have a lot of common content you will be spending your next vacation sorting out the duplicates.  Oh, you can search the Internet because I am sure somebody has some wonder tool that purportedly prevents duplicates, not that I would trust any automated method.  I always deal with duplicates one by one.
    Consolidating Multiple iTunes Libraries - http://www.ilounge.com/index.php/articles/comments/consolidating-multiple-itunes -libraries-api1/ - Basically using consolidate/organize to make sure all your media are in one place, then copying media from a second library to the main one by simply adding the media as new files.
    Commercial software that purportedly helps merge libraries (not a complete list, nor have I tried any of them):
    http://supersync.com/
    PowerTunes - http://www.fatcatsoftware.com/powertunes/ (commercial software)

  • Is there an easy way to concatenate 2 MIDI songs in the same project

    Hi!
    I have 2 different songs, different instruments, different tempo (tempo list in fact!). But everything is MIDI.
    Is there an easy way to concatenate the 2 songs in the same file (the end of one is the beginning of the next)? I know I can make space to import one into the other, etc. but then how do you import the instruments, the tempo list, etc. and copying track by track is long.
    Thanks!
    Daniel

    Oh, and as far as copying instruments? If an instrument in B doesn't exist in A, copy and paste them from B's Environment into A's Environment. DO NOT use the Environment import functions. They will ruin your life (I'm quite serious about that). You have been warned.
    You may find that after you get A + B together that some of B's tracks aren't assigned to the right instrument. You'll have to manually re-assign them. There's no way around this.
    Do this as the last step in your process.
    To do this concatenation sucessfully it's important that you follow the steps I outlined in the order I presented them. Otherwise you're in for headaches. But it's totally do-able.

  • Is there an easy way to make JSpinner wrap around at max/min values?

    I have several pages with a couple dozen JSpinners to set various values - mostly numeric, but some are not.
    I would like to make them wrap around when either the max or min values are reached.
    Is there an easy way to do this?
    I was hoping for something like an "enableWraparound" property, but I haven't found such an animal.
    I suspect I could add value change listeners to all the components and do it by brute force,
    but there are too many spinners scattered around to make that an option I would like to take.
    Any suggestions?
    Thanks.

    Ok, it looks like custom spinner models are the way to go.
    Hopefully, I can create a couple that are generic enough to meet my requirements without too much pain.
    It looks like the ones I have already created will be easy enough to modify.
    Thanks for the feedback.

  • Is there an easy way to clear the contents of Download Folder?

    Is there an easier way to clear out files (send to trash) from the downloads folder, other than dragging one by one? The downloads folder closes immediately upon dragging one file out.

    You do not need to invoke Finder to do this. Create a new empty Automator workflow and use the "Run Shell Script" option. Paste in the following....
    mv ~/Downloads/* ~/.Trash
    You can then save the workflow as an application, attach it as a Finder action or add it to the scripts menu, whichever you like better.
    If you would like to bypass the Trash and just completely delete the Downloads folder contents immediately, then paste in this command:
    rm -rf ~/Downloads/*

  • HT1660 is there an easy way to delete the whole itunes library and and start again. I notice there is only an add file/folder button but no remove facility

    I recently upgraded to the iphone 5 and managed to sort the transition out with little trouble but noticed when I tried to put my music on that Itunes has messed with album info and either it or me has generated several copies of the same albums over the years and it makes it quite dificult to sort it all out before reloading on the phone. To stop the chaos I had hoped to clear the library and start again but cant find a way to do it. I was hoping to sort all my music out in original files and consolidate them into a proper folder. HOw do I do this. I notice there is an add fole and folder button but no take away??? is there an easy way?

    Use Shift > View > Show Exact Duplicate Items as this is normally a more useful selection. You need to manually select all but one of each group to remove. If you have multiple references to the same files then don't send to the recycle bin. Use my DeDuper script if you don't want to do it by hand. See this thread for background and please take note of the warning to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed)
    tt2

  • Is there an easy way to reimport all songs in my itunes folder?

    This may sound like a weird question but here goes... When I bring up my iTunes I have 8731 files (mostly music) that come to about 41.33G's but when I right click on my iTunes Music folder and select properties there are 8809 files and a total of 48.5G's. I am trying to free up some disk space and can't figure out why there is such a difference. I had issues with Norton 360 and removed it but I had to restore my music files from an external drive and when I did so I lost the links for music that I added after my last back-up. I noticed that TV shows I bought from Apple were not in my iTunes but I was able to locate them in the folder, and import them back into iTunes. I have a feeling there are music files in my folders that are not linked to iTunes but can't figure out how to import them without going through all 8800+ files. Is there an easy way to import all the files without losing the current playcounts or a way to figure out which files may be duplicated in my iTunes Music folder. Seems like I am wasting 7G somewhere that I would like to recover. I already went through the duplicate songs and that didn't help. Any suggestions would be great...
    hp pc m260n   Windows XP   media center

    I have a feeling there are music files in my folders that are not linked to iTunes but can't figure out how to import them without going through all 8800+ files. Is there an easy way to import all the files without losing the current playcounts
    AFIK there isn't an easy way of linking up to a lot of dead tracks and retaining play counts etc, except by finding the dead tracks and repairing each link individually. The only exception to this is if there is a simple error in the path that can be fixed by a search and replace on the xml library file, then rebuilding the library. However it doesn't sound as though that would be a solution for you.
    This MacMuse tip has a way of finding dead tracks if that helps.
    http://discussions.apple.com/thread.jspa?threadID=121967
    It is much simpler to sacrifice the playcount information and just reimport your iTunes Music folder. Then you can eliminate the dead tracks with a script. One of the forum members has written one that you can find here:
    http://home.comcast.net/~teridon73/itunesscripts/

  • I am looking to "move out" of my computer and into my wife's, is there an easy way to accomplish this task, keeping all my files and setting up a second user?

    I just bought a new external 3TB hard drive for this task and want to keep my items seperate from hers for both our sanity.
    I figured that I would do a time machine back up and use that to do the move part of things.
    But as to setting up the new user on her computer I am just not sure if I can "tell" the computer to only use the new drive for my stuff and only acces the new drive for all things related to that new profile.
    More then anything else I want to be able to say that all things that are hers have not been touched/acccesed/deleted by any of my actions. And that I am "confined" to the new drive.
    I hope this makes sence.
    Mr Geef

    I have a feeling there are music files in my folders that are not linked to iTunes but can't figure out how to import them without going through all 8800+ files. Is there an easy way to import all the files without losing the current playcounts
    AFIK there isn't an easy way of linking up to a lot of dead tracks and retaining play counts etc, except by finding the dead tracks and repairing each link individually. The only exception to this is if there is a simple error in the path that can be fixed by a search and replace on the xml library file, then rebuilding the library. However it doesn't sound as though that would be a solution for you.
    This MacMuse tip has a way of finding dead tracks if that helps.
    http://discussions.apple.com/thread.jspa?threadID=121967
    It is much simpler to sacrifice the playcount information and just reimport your iTunes Music folder. Then you can eliminate the dead tracks with a script. One of the forum members has written one that you can find here:
    http://home.comcast.net/~teridon73/itunesscripts/

  • Is there an easy way to filter a 2-d array based on the values of two of the fields?

    Is there an easy way to filter a 2-d array based on the values of one of the fields. In my attached VI the output array has the following format:
    TimeStamp        Ident                Frame Type          Bytes    Data
    10:57:07.621   3AD00016   CAN Data Frame   8          0000000000000000
    10:57:07.622   3AD00017   CAN Data Frame   8          000005E000000000
    10:57:07.624   3AD00018   CAN Data Frame   8          0000000003300000
    10:57:07.625   2DC00000   CAN Data Frame   8          0000000000000000
    10:57:07.626   3AD00019   CAN Data Frame    4         0000030000000000
    I would like to delete any rows that do not have an "Ident" between the values of 3AD00000 and 3AD0001E. So for the above data the fourth row would be deleted. The only way I can see to do it is to form a 1-d array. Is there a better approach?
    Thank you.
    Solved!
    Go to Solution.
    Attachments:
    CMM_SN_MULTI.vi ‏20 KB

    Hi chuck72352,
    after you have sorted your data, you can use the InRange Function. Combined with a "search 1D Array" you'll get the range you really want.
    Mike
    Attachments:
    ArraySubset.PNG ‏25 KB

  • Is there an EASY way to submit podcasts to the itunes store? i've tried creating podcasts in garageband, then somewhere after wordpress  itunes  doesn't recognize the feed. my process has been (i am open to suggestions for other free and EASY services/me

    is there an EASY way to submit podcasts to the itunes store? i've tried creating podcasts in garageband, then somewhere after wordpress  itunes  doesn't recognize the feed.
    my process has been (i am open to suggestions for other free and EASY services/methods):
    garageband : create & edit audio. add 1400x1400 image.
    share to itunes.
    drag file to desktop.
    upload .m4a file to google drive.
    create a link post in wordpress using "podcast" tag & create "podcast" category.
    click on "entries rss" in wordpress, which takes me to the rss subscribe page (which is basically just my wordpress address with "/feed" at the end.
    i copy this url.
    go to itunes store > then "submit a podcast"
    itunes gives me the error message "we had difficulty downloading episodes from your feed."
    when i try to subscribe to my podcast in itunes, it does, but gives me no episodes available.
    i went back into wordpress and changed settings/ reading settings to : "full text" from "summary"
    still the same error message.
    i added a feedburner step after wordpress but got the same errors. i don't think i should have to add feedburner.
    wordpress seems to be encapsulating the rss, what am i doing wrong?
    this so much easier when you could go directly from garage band to iweb to mobileme; i miss those apple days (also idisk).

    if anyone has a super EASY process, i would LOVE to know what it is. EASY, meaning no html and also free. there are many free online storage systems available, many of which i currently use. the above process was just me trying to figure it out, if you have an easier method, please share. thank you so much!

  • Is there an easy way to generate a site map of an APEX application ?

    Hi.
    Is there an easy way to generate a site map of an APEX application ?
    Thanks.

    Depends on your definition of "easy"...
    Patrick Wolf provided one way to do this a few years ago.

Maybe you are looking for

  • Active Directory login problem

    I have my MacBook Pro bound to the domain. It has a computer account viewable in the Active Directory. However, after this I then expected to be able to enter my domain credentials at the OS LoginWindow instead of logging on using a local account but

  • Queries on Web Dynpro

    Hi All I have few queries 1. Is it possible to launch an external web application in new browser using suspend plug? If yes can you please share the details how can we do it? 2. Is there any API available in Web DynPro which I can use to launch an ex

  • How come I can't access itunes when I could  yesterday?

    How come I can't access itunes when i could yesterday?  When I hooked up my iphone to sync it asked me to reset phone to factory settings!  I don't think so!  Then when I tried to download update it won't do it.

  • Uneven pen pressure in Photoshop CS6 Extended with Wacom Intuos5

    I got Photoshop CS6 Extended recently, but the lines I draw in it aren't smooth, like they should be (example below). The tablet produces perfect lines in any other bit of software (Flash,  ToonBoom, etc.), but not Photoshop. I've tried lots of diffe

  • 8.02 POA crashes w/ntdll.dll fault after power loss

    Hi, Running GW 8.0.2 on Windows 2003 server (POA, MTA and GWIA). After power loss on Friday, POA will not stay up for long - crashes with: "Faulting application gwpoa.exe, version 8.0.2.10840, faulting module ntdll.dll version 5.2.3790.4455" error. M