How do you detect duplicate detail records

Hi,
How do i detect that a user is capturing a duplicate detail record as the user transverses detail records before saving. I don't want to keep a unique constraint on the database, but trap the duplicate record as the user captures. i want to notify the user values he captured for a record have already been captured on an earlier record as he is capturing.
I found using collections to be messy as they have to be updated each time the user updates any value on the detail record. So it becomes difficult to manage the collection.
I normally have to loop through the detail block before the user saves and check for duplicate values and raise a error when one is found.
Is there a better way of achieving this in forms? IS there some block property I can set?
Edited by: parthiv108 on Mar 21, 2011 3:52 AM

a simple method is doing the check in the PRE-INSERT and PRE-UPDATE trigger, like
DECLARE
    v_cnt NUMBER;
BEGIN
    SELECT COUNT(*)
    INTO v_cnt
    FROM your_table
    WHERE  .... <your_criteria>
    IF v_cnt > 0 THEN
        MESSAGE('Duplicate Record found! Please clear this record!');
        RAISE FORM_TRIGGER_FAILURE;
    END IF;
END;disadvantage: the check will not be done immediatly at user entry, but on commit ....

Similar Messages

  • How do you delete duplicate tracks off your playlist?!

    How do you delete duplicate tracks off your playlist - everytime I connect my hard-drive it adds another of every single track - argh!!!!
    I remember there being a 'delete duplicate tracks' option on a much older version of itunes - is this still available and if not if you opt for the 'consolidate library' option will this automatically save to you computer as I have too much music for my laptops memory capacity! On top of that how can I stop this issue from contantly re-occuring everytime I connect my hard-drive?! Apologies if im being thick here.... xX*laura*Xx

    You are doing something wrong, iTunes doesn't add tracks to the library unless you ask it to, so there is a problem somewhere in your workflow which is creating the duplicates. For example, having iTunes set up to "Copy files to the iTunes Media folder when adding to library" and then repeatedly adding in a folder from an external drive would do it.
    Once you've worked out how to stop creating new duplicates you can look at the issue of deduping what you already have. See this recent post for some thoughts and a script that may prove useful.
    tt2

  • How do you delete duplicate songs in your library without having to delete each song individually??

    How do you delete duplicate songs in your library without having to delete each song individually?

    mauijiminar wrote:
    Go to iTunes, select view and click show duplicates. Hold control and A ( select all) and then delete.
    Not a good idea! The "show duplicates" feature shows "all" duplicate tracks, but you only want to delete the "extra" copies, not the "originals".
    I've written a script called DeDuper which can help remove unwanted duplicates. See this  thread for background, including how to delete the extra tracks manually if you prefer.
    tt2

  • How do you delete duplicate photos in the photo section of your iPad?

    How do you delete duplicate photos in the photo section of your iPad?  My iPad has duplicated n tripled my photos n want let me delete them.  I can delete photos from any other section but not in photos, this is taken up all my memory. Help!!

    The links below have instructions for deleting photos.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    iPad Tip: How to Delete Photos from Your iPad in the Photos App
    http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
    Another Way to Quickly Delete Photos from Your iPad (Mac Only)
    http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
    How to Delete Photos from iPad
    http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
    How to: Batch Delete Photos on the iPad
    http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
    (With iOS 5.1, use 2 fingers)
    How to Delete Photos from iCloud’s Photo Stream
    http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
     Cheers, Tom

  • How can you delete duplicate songs in total, not one at a time?

    How can you delete duplicate songs in total, instead of the tedious task of one at a time. I have hundreds of duplicates.

    Maybe:
    Duplicate songs on my iPod Touch: Apple Support Communities
    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?
    Also maybe
    - Restore from backup. See:                                                
    iOS: How to back up                  
    I know this will work                                                                 
    - Restore to factory settings/new iOS device.

  • HT1386 HOW DO YOU DISPLAY DUPLICATES IN PLAYLISTS?

    How do you display duplicates on the playlist with the new itunes format?

    Note that, as with the iTunes feature, this lists make no distinction between "originals" and "dupes", you have to decide which is which.
    There is also my DeDuper script for automatically removing duplicates copies but keeping one remaining copy of each set. This can preserve ratings, play counts, playlist membership, etc. which are lost in a manual clean up. Please take note of the warning to backup your library before deduping. See this thread for background on deduping and the script.
    If you want to manually remove duplicate tracks use shift-delete to remove selected tracks from the library as well as the playlist. Keep one of each repeated group of files and don't send the others to the recycle bin unless you are sure that there are multiple files on the disc as opposed to multiple entries to the same file. Same advice to backup applies.
    tt2

  • In AS3 how can you detect if someone pulls their camera out of the USB port?

    In AS3 if the SWF gets a hold of someone's camera successfully and they start streaming video across and everything, but then mid-stream, either they accidentally wiggle their camera out of the USB port, or the camera just sort of breaks down, or something else like that, how could you detect it from that user's side?  I've tried using event listeners and also polling different variables every five seconds, but neither has worked; none of the public properties of Camera or its events seem to act funny at all when something like that happens.  And apparently you can't just keep scanning the computer for devices (for good reason, I guess).
    Is there something I'm missing here?  Is there a way to detect from a user's copy of a SWF (FP or AIR, but much more importantly FP) when their camera has effectively stopped as the result of something going wrong, such as them wiggling it out of the computer by mistake?  If so how?  Thanks!

    Run your code and disconnect your camera. What are the common properties of it? Does your stream stop? Return only a specific color frame? Those things are usable to detect it but you're right in saying you can't detect much more than a loss of packets from a NetStream object.

  • ITunes 11 ... How do you display duplicates?

    iTunes 11 ... How do you display duplicates?

    That function isn't in iTunes 11. Apple has said there will be a small update that will add that function back but no time frame was given.

  • How do you eliminate duplicate iphoto photos?

    How do you eliminate duplicate iphoto photos?

    There are two apps, actually one app and one Applescript script, for finding and removing duplicate photos from iPhoto. They are:
    Duplicate Annihilator
    iPhoto AppleScript to Remove Duplicates
    OT

  • How do you detect url redirects when connecting to a URL

    how do you detect url redirects when connecting to a URL?
    Thanks in advance
    stev

    Hai
    (i) If it a jsp we can get the URL by request object.
    Like
    String url = request.getHeader("Referer");
    u can do it in Servlet aslo by request object variable.
    If this explanation is not ok, Explain ur doubt in more briefed Manner

  • How do you set a pre-recorded message to play when a caller calls your iPhone before you pick up?

    How do you set a pre-recorded message to play when a caller calls your iPhone before you pick up? My office is trying to use an iPhone for our business, and we want to give a brief introductory message that the caller will hear, before we pick up the line. Are there ay apps for this? Thanks!

    There is no setting for that on the phone. Some carriers provide ringback tones, which play instead of the caller hearing a ring. But I am not aware of an app that would play a message prior to you picking up the phone. The amount of time before you pick up is not a constant, and if it lasts too long, then the call would go to voicemail.

  • How do you delete duplicates but keep the orginials?

    How do you deleter duplicates but keep the originals?

    Mark,
    Since you are having a problem that is not directly related to the original (and old) post (and I say that because  this thread seems to answer the OP's question, but not yours), it woud be better to ask in a new thread.  New threads have a better chance of getting answered, and you can give credit to good answers of your own questions.  I..e., if someone else answers your question in this thread, you cannot give them credit.
    When you pose your new question, it might be good to include a screen shot and a better description of how you have deduced that two projects are identical, along with what you have done to try to find them and where exactly you have looked.
    nathan

  • How do you remove duplicate images from your all images file on your mac desktop

    How do you remove duplicate images from your all images file on your mac desktop?

    Don't under any circumstances.
    All images is not a file. It's not a place. It's a list. Specifically, it's the result of an instruction: List all the images on my machine.
    When you delete something from All Images, then you have no idea what you're removing from where - files that are part of word processing docs, interface elements, corrupting your iPhoto Library. There are many perfectly legitimate reasons why you might have what appears to be duplicates but are not.
    Rule number One: Never delete anything on your machine whose job you don't understand.

  • Hello, this might be a basic question, but how do you open QuickTime to record a new webinar? I have a new MacBook Pro with Yosemite and can only get QuickTime to appear in Finder but not actually open to allow me to record something new. Thx.

    Hello, this might be a basic question, but how do you open QuickTime to record a new webinar? I have a new MacBook Pro with Yosemite and can only get QuickTime to appear in Finder but not actually open to allow me to record something new. Thx.

    Hi Winterwilly,
    Welcome to Apple Support Communities. 
    The article linked below answers your question of how to use QuickTime to record something on your MacBook Pro’s screen.
    QuickTime Player 10.x: Record your computer’s screen
    Cheers,
    -Jason

  • How do you identify duplicates?

    Since a photo can be assigned to multiple albums, how do you identify duplicates and their source?  Upon moving over to Photos, I now see a lot of duplicates showing up and have no idea where they belong so cannot just delete them ;-(

    hello,
    it is nice when you can answer your own question...
    looked in 'common...media core...' and found the new blue trial plugins
    also had the duplicates of the new blue plugins in the AE plugins 'effects' folder
    deleted the plugins from the 'media core' folder
    no more warning signs...
    cool deal
    back to work,
    j

Maybe you are looking for

  • How can I email itunes support?

    i keep filling in the support form but when I go to select ipad from drop down menu of device used  and submit it highlights it in red and says this is a required field, iI tried selecting very other option and resubmitting but it's not working,, hel

  • Will resetting the whole PC fix any problem?

    So I had this problem with my NEWLY HP PAVILION that it said that there was an error in something during the startup. So I researched and look for some ways to fix it. Luckily I found this an answer, in the site too. Here's the link: http://h10025.ww

  • Problem with start up Adobe Photoshop Elements 8

    Tried to start up my Adobe Photoshop Elements 8 on my MacBook Pro running on Maverick 10.9.5  it would not startup and this message popped up! Can anyone help? I need to use my scanner for scanning and Photoshop Elements to merge the pix together (us

  • Uncaught exception on blackberry 9300

    I am getting an error message Uncaught exception: Application Registry.waitFor (0x1c26ebcd7b130582) time out. I cannot connect mt phone to my desktop manager or indeed make any use of my phone.  any help Kamelaht Solved! Go to Solution.

  • Product Batch Number in CRM

    We are working on CORM System and I want to clarify how the Product Btach number is maintained in CRM.We dont have any standalone system (R/3).Is the batch number is created while the prodct is created .Please give me any conif document if any one is