Array or Table of Records or...what is best for my scenario?

I have been given task to trap last 5 action taken on a form application by user. This would be used where user gets a FRM or ORA error, dump last 5 steps to a table in the database along with error. Trapping FRM or ORA error is easy; I am wondering what & how should I note last 5 steps ( like, what page, what block & what form the user was clicking/entering data etc) when error occurred. I am planning to use when-mouse-click or some other triggers to capture the data; but at every action if I try inserting one record & deleting one record from the database table ( last one knocked out), there is going to be a lot of I/O & that table is going to be too hot. I am trying to avoid that unwanted I/O & keep those 5 steps info somewhere in forms till user gets a error. And, when he/she gets error, he/she can dump those 5 steps info along with error messages/number in a error table.
My question is: what do I use? Array or Table of records..or something else. I have never used any of these & thought to discuss this before going deep into implementation.
Any suggestion would be appreciated.
Thanks.

You could use a table of records or a record group. They both achieve similar results but with very different syntax. I am not sure if there is any difference in performance.
Record groups are good for certain things like lists populated from the database because built-ins are provided for manipulating them. If you are going to do the manipulation programatically, I personally find the syntax for tables of records less cumbersome than record groups. Learning the syntax for tables of records is also likely to be more universally useful to you as they have various uses such as passing data between procedures.
In your situation the table of records needs to exist throughout the forms session rather than just during the execution of a single pl/sql block. The way to do that is create a program unit which is a package header without a body. Declare the table in there and it can be used throughout the form.
However, if you only ever want to keep 5 records, it would probably be easier just to have 5 ordinary items in a control block on the null canvas (or global variables). When you want to record your new action just do:
:item5 := :item4;
:item4 := :item3;
:item3 := :item2;
:item2 := :item1;
:item1 := :new_stuff;
You could even construct the above in a loop using
copy(name_in('item'||i),'item'i+i)
but with only 5 items to manipulate, is it worth the bother ?
Whatever method you decide to use, you are not going to get anything simpler than 5 little assignment statements.

Similar Messages

  • External drives... whats the best for video.... ?

    Hi everyone,
    I'm trying to figure out what the best bang for the buck is in regards to external drives, and what works best for video.
    I have considered the LaCie enclosures, I have also considered buying a 500 GB SATA to replace the 200 GB second drive I have inside the G5. The issue than is what enclosure works the best with a MAC and is 1394 and will the firm ware support huge video files, for render or exporting?
    Can anyone give some advice based on what they have learned through past experience.
    Thanks

    I've been using LaCie FW (800 & 400) drives for about three years now with only one problem - One of the first drives I bought (I think it was a 120 GB) fried itself a few months ago. I currently have 80GB, 120 GB, 400GB and 500 GB drives, all working fine, never have dropped frames. The LaCie drives are pretty tough too, as I've sent most of them back and forth across the country at least a few times with no problems.
    However, be careful if you update the firmware for them - make sure the drive is clean as the firmware update can cause corruption of data on the drive (I found that out the hard way!). Also keep in mind that they do put off a fair amount of heat (especially the big ones) so I wouldn't consider stacking them on top of each other horizontally.

  • What apps can I download for my account, Photoshop CC, and what is best for that program

    What apps can I download for my account, Photoshop CC, and what is best for that program

    Hi Bosseb,
    You can install products listed in the Download Center, all are included except Photoshop Touch
    https://creative.adobe.com/products
    On the left hand margin you can see products based on field, Audio/Video, Gaming, Graphic Design, Photography, etc.
    If you have a fulll membership you can download any that are included that interest you.
    -Dave

  • Adobe reader does not work, what is best for viewing pdfs?

    While using Safari, I keep encountering a message that in order to view a .pdf, I need to download Adobe Reader, accept the end user agreement, then relaunch.  I have tried to do this many times and keep getting the above message. What program is best for viewing pdfs using Safari on an iMac

    Back up all data.
    If Adobe Reader or Acrobat is installed, there should be a setting in its preferences such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected. Otherwise do as follows.
    Triple-click the line of text below on this page to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present. The same goes for a plugin called "iGetter," and perhaps others.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • What settings best for screen reading & min/no header/footer?

    I prepare documents for reading online on web sites.  How can I create pages that scroll smoothly and contain maximum text and other features on the page with minimum wasted white space.  These documents are never intended to print anywhere - in fact want to discourage any such attempt.  What settings are best for this in Adobe?

    This really has nothing to do with Acrobat, but is a general question about reading information on a screen. There is no easy answer since people have monitors of different sizes and keep the monitors at different resolutions. I have no problem with discussing this here, but you might get a better response in the Design or Web Design forums. As a first step in the discussion, you might try to figure our what size monitor you want to target.

  • What's best for my battery.

    I use my macbook alot, like 8 hours a day. So I was wondering what would be the best for my battery.
    Should I always connect it to the adapter. Or should I use it on the batterypower and charge it when its underneath 20%.
    Thanks in advance.

    The consensus here seems to be: (1) that it's quite ok to leave it plugged in; (2)  It is good to use the battery occasionally, per
    Apple - Batteries - Notebooks
    (3) It is not good to run your battery all the way down, or even close to that.
    Following these guidelines I have a battery which is 15 months old, with 108 cycles and currently reads between 98-100% health.
    charlie

  • What's best for allowing document download?

    Hi All,
    Quick question really. I'm looking to create a simple HTML page which is to provide documents and photos to be downloaded. Essentially there will be several pdfs and high res images for people to download and I was wondering what the best way to do this is without creating a very long page.
    Ideally, I'd like them to be able to read the PDF and then to download it and for the images to be in some sort of gallery and that if they click on the image they want they can download it. I've got all my images stored on a website called dropbox.
    I'm very new to Dreamweaver CS3 and am trying to get through the dummies guide and free online tutorials but can't lay my finger on the answer really.
    All suggestions greatly appreciated.
    Thanks,

    PDFs are downloaded anyway when your end user's click on a direct link.  For added convenience, you could combine images and PDFs into a folder and Zip it.  I use 7-Zip  http://www.7-zip.org/
    Another approach is to use a ForceDownload script in your favorite server-side programming language.
    This demo uses PHP:
    http://alt-web.com/TEST/formtest.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • ICloud vs YouTube: what's best for storing movie clips?

    Hello all, I'm looking for pros and cons of using either of them. With my iPhone I am regularly recording movie clips that a few minutes, and need to store them somewhere and share some of them with specific user. I have an iMac running 10.6 as well.
    I am considering YouTube as it is directly integrated with iOS camera but i am wondering what are the limitations in terms of data size.  I currently store the 150-350 MB movie clips on my iMac and i've got around 30 of them. But i plan to make more (up to 100?) and to make some space on my Mac.

    Thanks for the information about iCloud storage, Julian.
    However, the purpose of this thread is more to compare online storage solutions and share experience about their online storage rather than talk about iCloud or YouTube (can an admin change the title?). What vendor do you use? What video format? How big are your files? Satisfied with it?
    Bellow is a storage vendor comparison from CNET :
    http://reviews.cnet.com/8301-13727_7-57428396-263/cloud-based-storage-options-fo r-mac-os-x/
    Most of my move clips are actually lower that 150 MB. But somestimes it is higher and when I tested Dropbox, it would not accept a file bigger than 300MB, and 2 GB storage free is quite low.
    Therefore, I will most likely choose upload via YouTube as private or unlisted. It looks like the limit is 2GB in size and 15 minutes maximum per file. There is some tuning that is recommended on Mac:
    http://support.google.com/youtube/bin/answer.py?hl=en&answer=1297408&hl=en-U S
    Thank you.

  • Time for a new Mac - Whats the BEST for Aperture?

    Its time for me to upgrade my box and while I have money to spend I don't want to break the bank. This computer is just for Aperture!!! Which is the best graphic card(s), do I need 16 gigs of memory, is two quads worth the money? If I put RAID in can I get by with just 2 hard drives or do I need 4 for speed? If I buy the best and most of everything the box and displays comes to $14,000. Do I have to spend that much? $8000 is more realistic. What do you suggest?
    TIA
    Chris

    Best is to wait until after Mac Expo SF in 2 weeks, then decide which Mac Pro is best. Aperture demands heavy hardware so the highest end MP will be "best" but some middle range model or even an older model may be most cost effective while still very good. Wait.
    Today 2 drives in a RAID 0 array probably saturates a MP as far as throughput is concerned, but we need to wait and see what new MPs, cards, etc. are before configuring an optimum Aperture box. Doing exactly that homework is much of what I will be doing at Mac Expo.
    -Allen Wicks

  • What is best for creating Drum tracks

    I play a virtuoso style metal. I need a pretty hefty collection of drum loops to meet my needs. The ones provided with garageband are not even close to what i need. Really i'm dissapointed in what drum loops come with it. it seems most are for dance music.
    are loops the way to go in creating realy intricate drum tracks or is there a nice drum sequencer that is user friendly and can give me what i need. Think of something Lars used to play with Metallica before they sent soft. that's kind of what I'm needing.

    or you can do that by hand. it took me about 20 hours to put together a drum recording of King DIamond's Welcome Home.

  • How do I change from Firefox 17 to Firefox 16 on my android and can I keep Firefox 17 at the same time on my Windows 7 PC? Whats the best for jelly bean?

    Some apps are not compatible on Acer A210 Iconia Tab jelly bean. What are the most recommended apps or widgets for Acer A210? How do I uninstall Firefox 17 and install Firefox 16 on my pc or what is the best version to use with the tablet? Thanks if you have a solution. Using Windows 7 home premium.

    The best version to use is Firefox 17 (it's the stable release). as for best apps, it's all up to you on what you want to use.

  • Deploymentshare : local or DFS? What is best for performance and failures? And what about multicast in relation to DFS?

    Hi,
    we use MDT 2013 on MS Server 2012 Standard. We deploy LTI's. We have only one (virtual) MDT-server and that has only one deploymentshare. I'm having now a discussion with my colleague about where to put the deploymentshare. He says that we should put it
    on our fileservers (which use DFS) because it's more safe and more dynamic (no idea what he means with that).  But to me it appears quite strange to separate an application and its main folder structure. I have this idea that those two need to be as close
    as possible, like to avoid network problems for instance. It's also a fact that our MDT-server is backed up every night, so if something bad happens we just ask our colleagues to restore the latest snapshot. Can someone explain which option is the better and
    why : local or DFS?
    Second thing which is related to my first question: I've read on this forum about multicast not being possible when the deploymentshare is not local on the server? Am I correct? Anymore info about this issue would be nice too. Awaiting your answers I'll
    keep looking for more clues everywhere.
    thanks,
    Paul

    IN addition to what is mentioned here.
    MDT works great with DFS. However note that MDT is *NOT* supported with Domain DFS, only stand-alone DFS, because Domain DFS implies that the client is joined to a domain when you make the call, and MDT needs to run within WinPE, where there is no domain
    infrastructure.
    Multicast should be on the same machine as your DeploymentShare, wherever that may be. If you have DFS, your deployment share would be the root.
    Another idea is to use DFS to replicate out to your DFS leaf nodes, and each Leaf node would be it's own WDS Server with Multicasting being done from there.
    Keith Garner - Principal Consultant [owner] -
    http://DeploymentLive.com

  • MacBook Pro vs MacBook air, what is best for my life

    Hello, 
     I'm looking at a MacBook air/MacBook Pro. I have no specific one in mind.  I don't know a whole lot about MacBooks aside from the fact that they are a bit pricy but they can get the job done(I think), but can a refurbished MacBook under $850? 
    The only requirements for the MacBook I can think of right now are
    • enough memory space for decent photo editing software, decent programming software, text editors, one or two utility applications and whatever software you need for learning how to make iPhone apps
    • the ability to run multiple windows at once(example: photoshop in one window, the Mac store in another, a text editor in another, and two or three web pages open; this is at max).
    • one that will last at least 5-6 hours per full charge(looking for around 7-8, but 5 hours is fine).
    • has the ability to run a better firewall than a windows computer from 2004 running an old operation system. 
    That's all I can think of at the moment. So could someone tell me what amount of memory(at minimum) and how much ram are needed(at minimum) for the MacBook to serve my purpose? Also what model would that be?

    Did I post this in the wrong section?

  • Project setup - what's best for source code versioning?

    We're about to start developing a new portal and are wondering what would be the best directory structure. It's important to decide at the beginning because we're using CVS version management for our source code (we are currently using it for our ADF development).
    Are there any issues related to directory/package structure? With ADF, we had problems when we wanted jsps from one application to call those in another application. To get around that, we had to put all of our applications within the same jdeveloper "project".
    I'm keen to hear any suggestions - especially if you work in a multi-application environment with concurrent development etc.
    thanks,
    M

    Since I don't have a Canon, I don't know the specifics of how to ingest media for that camera. But FCE does have the ability to log & transfer AVCHD, as I have done this with a Sony HandiCam and my Lumix GH-1.
    The codec that FCE transcoded to, was AIC, Apple Intermediate Codec. FCE is 'fine' if you are not using 24p frame rates, as there are no 24p sequence options. (You can use 24p in a 25p timeline... but broadcast engineers will gnash their teeth on such botchery.)
    This may or may not be an issue.
    On the 'problem' of 'wyrd things happen when I whip pan my camera'... well, yeah... There are some industry standards about how fast objects should move across the field of view to avoid artifacts.
    The "whip pan", namely quickly pivoting the camera, will produce strange imaging. While the technology and image formation is different, so the artifacts are different, but even for 'film film' there are limits.
    One rule thumb I've run across is an object should take at least 5 seconds from one side of the screen to the other. Faster will result in artifacts, strobing, or in the case of digital cameras, 'rolling shutter' issues.
    The motto of the day is... "Know thy camera"...
    There may be filters to minimize or save the day if needed, but it is just better to shoot correctly in the first place...

  • RAW or JPEG  What id best for creating an iBook?

    I have photos in both RAW and JPEG format.  I know that when a RAW file is edited it is saved as a JPEG.  I noticed that the size of the edited RAW file is often smaller than the same JPEG photo. (Sometimes it's up to 2MB or more difference.)  Believing that a larger size photo has more detail do you recommend using one file format over the other (edited RAW v. JPEG) to create an iBook?

    I'm sorry ... I may have mislead you by using the term "iBook" was inccorrect.  I want to create a photobook.  iPhoto does processes RAW images.  From iPhoto: "... iPhoto imports RAW-format photos in the same way it imports any other photos, organizes them next to your other shots, and lets you edit them using advanced editing tools designed for RAW photos.  When you edit a RAW-format photo, iPhoto saves the edited photo as a JPEG file (by default) or a TIFF file (if you select that option in Advanced preferences); the original RAW file remains unchanged."
    When I edit RAW, the edited file, a JPEG, is smaller than the original JPEG.  (I shot photos in dual format; both RAW and JPEG.  I did this only one time; the first time I used RAW.)  Thinking that a larger size photo is "better" i was wondering what one would recommend using. 
    Thanks 

Maybe you are looking for

  • Can't connect via cable, but wireless works.

    iMac, Leopard, iTunes, all current. AppleTV only shows up when I disconnect my ethernet cable. At that point my Airport base station (older version) makes the connection. If I turn Airport off in the OS, still no go. I've tried multiple cables too. I

  • Sending mail to multiple adress

    Hello friends, i have written java code for sending mail,its working fine for single mail address. if we include multiple mail address its giving ERROR:" Illegal route-addr in string" , so friends if there is any solution for this problem: please kin

  • How to view one table used percentage in sqlplus?

    if the table only one record in dba_free_space,then use 'select round(block_id/blocks,4)*100 from dba_free_space where tablespace_name='xxx'" could list used percentage, but one table have many records in dba_free_space, how to display this table's u

  • When apps on my iPhone 4  jiggle, there no  "X" in the decorner.

    When I hold down the apps on my iPhone 4, and they begin to jiggle, there no longer is an "X" in the upper left corner. I also cannot delete or add apps from iTunes. Perhaps there is a setting that I'm missing?

  • DoDateTime YYYY/MM/DD

    Hi all, i would be grateful for any help with this little date input query. i'm developing in ASP against an MS SQL database, I'm also using the Expert Calendar extension from an extension from Kaosweaver which on record insert formats the date in a