How to prevent duplicate entry in Details block

Dear All
I am using Forms 10g.
I have a detail block.
There is a column called Ip_Address.
There i want to prevent duplicate entry .
How can i do this ?

hey i have a requirement that to restrict duplicate entry in both block(both multi record).the blocks are DEPT(MATER)
EMP(DETAIL)
the associated fieds in master block DEPT.DEPT_NO,in detail EMP.EMP_ID .
I have done' Kevin D Clarke’s calculated item ' both in master and detail block
its working fine for master block but in case of detail block its only respond to the current session(i.e. if the new value is inserted or save it will restrict another record to be inserted of that last record's value),it does not restrict duplicate value enter ,checking with other existing records(which are saved in earlier session,though after query it is shown on the form)
can anyone guide me why its not working

Similar Messages

  • Need advice on preventing duplicate entries in People table

    Hi,
    In my database, I have a "People" table where I store basic information about people e.g. PersonId, FirstName, LastName, Gender, etc.
    There will be lots of entries made into this table and I want to prevent duplicate entries as much as humanly possible. I'd appreciate some pointers on what I should do to minimize duplicates.
    My primary concerns are:
    Duplicate entries for the same person using the person's full name vs. given name e.g. Mike Smith and Michael Smith
    Making sure that two separate individuals with identical names do get entered into the table and get their unique PersonId's.
    Not even sure how I can even possibly know if two individuals with identical names are two different people without having additional information but I wanted to ask the question anyway.
    Thanks, Sam

    Thank you all very much for your responses.
    There are three separate issues/points here.
    It is clear that it is impossible to prevent duplicates using only a person's first, middle and last names. Once I rely on an additional piece of information, then things get "easier" though nothing is bullet proof. I felt that this was self evident but
    wanted to ask the question anyway.
    Second issue is "potential" duplicates where there are some variations in the name e.g. Mike vs Michael. I'd like a bit more advice on this. I assume I need to create a table to define variations of a name to catch potential duplicates.
    The third point is what Celko brought up -- rather nicely too :-) I understand both his and Erland's points on this as typical relational DB designs usually create people/user tables based upon their context e.g. Employees, Customers, etc.
    I fundamentally disagree with this approach -- though it is currently the norm in most commercial DB designs. The reason for that is that it actually creates duplicates and my point is to prevent them. I'm going for more of an object based approach in the DB
    design where a person is a person regardless of the different roles he/she may play and I see no reason in repeating some of the information about the person e.g. repeating first, last name, gender, etc in both customer and employee tables.
    I strongly believe that all the information that are directly related to a person should be kept in the People table and referenced in different business contexts as necessary.
    For example, I assign every person a PersonId in the People table. I then use the PersonId as part of the primary key in the Customers or Employees table as well. Obviously, PersonId is also a foreign key in Customers and Employees tables. This prevents the
    need for a separate CustomerId and allows me to centralize all the personal data in the People table.
    In my opinion this has three advantages:
    Prevent duplication of data
    Allow global edits e.g. if the last name of a female employee changes, it is automatically updated for her within the context of "Customer" role she may play in the application.
    Last but not least, data enrichment where a person may enter additional data about himself/herself in different contexts. For example, in the employee context, we may have the person's spouse information through "Emergency Contacts" which may come handy
    within the context of customer for this person.
    Having everyone in the People table gives me these three advantages.
    Thanks, Sam

  • How to prevent duplicate web pages from loading

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/930219]]</blockquote>
    how to prevent duplicate web pages from loading

    <s>Hi berternie, can you describe this in more detail?
    Are you saying the identical page loads in two different tabs? When does that happen -- when you click a link? or when you use a bookmark?
    Or do you have multiple tabs open every time you see your home page (i.e., when you start up, open a new window, or click the home icon)?</s>
    I see, you have more info in this thread: https://support.mozilla.org/en-US/questions/930219

  • My family put multiple devices on the icloud, and I need to know how to manage duplicate entries.  Specifically contacts.  If I fix the contact list on my pc will it push the info out to the other devices and maintain it correctly?

    My family put multiple devices on the icloud, and I need to know how to manage duplicate entries.  Specifically contacts.  If I fix the contact list on my pc will it push the info out to the other devices and maintain it correctly?

    All devices signed into the same iCloud account will finish up with the same contacts. Of course if prior to joining iCloud two family members each had an entry for Uncle Fred, then you will finish up with two contact cards for Uncle Fred, and so on. If you tidy this up on your computer then the changes will propagate to everyone else.

  • How to check duplicate entries in internal table??

    Dear Friends,
    How to check duplicate entries in internal table??
    Exp: In my internal table if I am having the same records more then ones then I need to print the error message, here I am using steploop for selecting the values from screen, and the values are coming into my internal table if user enter the same value more then ones I need to print the error message.
    Thanks,
    Sridhar

    Hi,
    After storing the data into internal table say ITAb, move the data into another internal table.
    t_dup[] = itab[].
    LOOP AT itab.
        count1 = count1 + 1.
        itab-count1 = count1.
        MODIFY itab.
    ENDLOOP.
    LOOP AT t_dup.
        count2 = count2 + 1.
        t_dup-count2 = count2.
        MODIFY t_dup.
    ENDLOOP.
      DELETE ADJACENT DUPLICATES FROM itab.
      LOOP AT t_dup.
        record_dup = 'N'.
        READ TABLE itab WITH KEY count1 = t_dup-count2.
        IF sy-subrc = 0.
          record_dup = 'Y'.
        ENDIF.
        IF record_dup NE 'Y'.
          t_dup-message = 'DUPLICATE ENTRY'.
          t_dup-flag = 1.
          MODIFY t_dup.
        ENDIF.
      ENDLOOP.
    Use this sample code.
    Reward pts if it is helpfull.
    Regards
    Srimanta

  • How to delete duplicate entries in address book

    Is there an easy way to delete duplicate entries in Address Book?

    I have an iPhone where I create new contact details and a MB Air running OX X 10.7.3
    In Address Book I see duplicate entries across the whole book. The other day I was traveling without my MB and needed to urgently reach someone who's number I knew was in my iPhone contact list for sure but searched and search and couldn't find it.
    Turns out that when I had been going through the Adress Book on the MB Air trying to eliminate some of the duplicates I had chosed --without even knowing it or realzing it-- the card that I guess sync with my iPhone. It was gone. Sure enough, when I got back and looked it up on the MB Air it was still there not syncing to my iPhone.
    I have used Address Book / Card / Look for Duplicates ...
    I have also followed the Help suggesting and pressed Control / select to highlight two duplicate cards and even though the First / Last / Company / phone numbers / etc. are all the same I get the message: "The cards could not be merged because they came from different accounts."
    I have checked with guys from the office who have the exact same problem with no idea how to solve the problem.
    Is it that in order to use Address Book on both an iPhone and an OS X machine you've just got to be smarter, more sophisticated, more IT oriented?
    Seems like a pretty easy thing not to be struggling with.
    I should mention that I was a Mobile Me subscriber and now use iCloud which I'm sure has something to do with all of this.
    But it seems pretty basic to me. If I have an Address Book it should synchronize between OX X and IOS.

  • How to prevent duplicate submission?

    Hello!
    I have a page for gathering some data:
    private function saveHander():void {
        // Gathering data into database.
    <mx:TextInput id="name" />
    <mx:TextInput id="age" />
    <s:Button id="Submit" label="Submit" click="saveHandler();" />
    When focus on submit button,I click at the button and press the space bar at the same time,saveHander function execute two times.
    How can I prevent duplicate submission? thanks!

    Assuming this is a form you are attempting to save, good UX practice is to disable the form once you begin local form validation (submit button clicked) prior to forming your data packet for save.
    Doing so will prevent the anomaly you are experiencing.
    In other cases where the above practice is not practical, you can setFocus to another component (off the submit button) because as long as the focus remains on the button, depressing the space bar will trigger the mouse event for the button. Research ADA compliance if you want more details.
    HTH. 

  • How to delete duplicate entries in table for the object DNL_CUST_BASIS2

    Hi All,
    I am trying to download the object DNL_CUST_BASIS2.
    In the SMQ2 the status is SYSFAIL.
    I checked in the ST22 for dumps.It says about the error while accessing the table T006.
    While analysing this,i found some duplicate entries in the related tables of this object.
    Can somebody help me how to delete these duplicate entries?
    Thanks,
    Senthil.

    Delete them directly from the table using se16:
    select the entries in the classic view (not ALV or grid view).
    activate the debugger.
    press the view button. --> you'll enter in the debugger
    press F7
    locate the sy-ucomm variable & change it to "DELE".
    press F8
    delete the entries.
    Trick-shots
    but it works!
    Michael.

  • Duplicate Item in Details Block

    Dear Expert,
    I written some code for checking of the same item in detail block, when I am using keyboard it is runing ok, but when I nevigate the same from mouse to another item, it will not check the duplicate item, my problem is when I move the mouse from one filed to another my Item-Code will be validate every time when I leave the mouse from One Item to another.
    Please give me your expert adive.
    s mishra

    Hi Mark,
    Actually this my code but it doesn't work.....
    if :slcl.bulk_question_answer = 'N' then
    Set_Item_Instance_Property('SLCL.BULK_ERROR_DETAILS', CURRENT_RECORD, UPDATE_ALLOWED,PROPERTY_TRUE);
    elsif :slcl.bulk_question_answer = 'Y' then
    Set_Item_Instance_Property('SLCL.BULK_ERROR_DETAILS', CURRENT_RECORD, UPDATE_ALLOWED, PROPERTY_FALSE);
    :SLCL.BULK_ERROR_DETAILS := '';      
    end if;
    Please remember I put this code in the when-checkbox-changed trigger the default if YES.
    Any further advice or idea are greatly appreciated....
    Thanks.
    Regards,
    Jun

  • Prevent duplicate entry

    I would like to make sure there are no duplicate data entries in my Oracle 9i table (called MainTable) which has an Id field that is the primary key, ValData with a varchar data type, Fid and Fid2 are number data types.
    Id   ValData   Fid   Fid2
    1    abc       34    2
    2    efg       23    34
    3    zeo       25    43Sometimes someone can enter a duplicate ValData, Fid and Fid2 and it will end up like this:
    Id   ValData   Fid   Fid2
    1    abc       34    2
    2    efg       23    34
    3    zeo       25    43
    4    zeo       25    43What constraints or restrictions can I place on the MainTable where it will never allow a duplicate entry into the table?
    I would like to do this somehow in the database. If someone tries to enter a duplicate I should get a error message or something to indicate an attempt to enter duplicate data.
    Please advise if this is possible?

    We told you above - next level of support is onsite but not sure your zipcode is similar to mine.
    First you have to clarify if the three fields must be uniq as a combination or if valdata alone cannot be duplicated. In other words:
    id valdata fid fid2
    1 abc 34 2
    2 abc 23 34
    is this legal?
    Depending on the answer you apply the appropriate solution. If answer is yes, you apply this:
    alter table <table name> add constraint uniq_combination unique (valdata, fid, fid2);
    if answer is that it is illegal because you want to prevent valdata alone to assume duplicate values, then:
    alter table <table name> add constraint uniq_valdata unique (valdata);
    See Guido's comment above concerning the handling of the DB generated error.
    enrico

  • How to Prevent duplicates on Combination of Lookup columns in sharepoint 2010 using infopath 2010 form.

    Hi All,
    I have list with some Lookup columns like  City, Pin, and Text Column Name. All these are required columns.
    Now I want to prevent duplicates while submitting InfoPath form if a Combination of  City,Pin & Name. (like a Composite primary in Database is used.)
    Can some one help me on how to achieve this using InfoPath  2010 Rules, writing  rule in Xpath.
    Thanks in Advance.

    1. Add a secondary data connection to the list where the form will be submitted.
    2. Prior to submit via rules, set the query fields in the above connection: City, Pin & Name with values entered in the form. Query the data source and check if the result has values.
    3. Show error messages accordingly if exists else continue with Submit.
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • How to prevent duplicate vendor reference no on SAP B1 v8.8?

    Helo experts,
    I have SAP B1 v.8.8 and they system is allowing me to enter the same Vendor Reference for different POs but same BP.
    Is there a way to prevent duplicaton?
    I read in other post that there was an option in Admin'-System Initialisation-Document settings......to block duplication, but that does not show on my screen.
    Do you have any ideas or suggestions?
    Thank you

    Hello Gordon,
    Thanks for the link but I had already read those posts.
    I understand there is a way to prevent duplicate to enter vendor reference numbers.
    However, my question would be if the version that I am using would have the option to block release when When duplicated Vendor Reference No occurs as I cannot find it.
    Please advise,
    Thanks

  • How to prevent IPV6 entries in DNS from server End

    Hello,
    My concern is to stop the IPV6 DNS entries being added to the DNS , but the main goal is to prevent it from the server end instead of going and disabling the IPV6 entries on each client machine.
    I have gone through this article but my goal is to fix it from the server end
    http://social.technet.microsoft.com/Forums/en-US/cd1a87f0-caf3-498e-9a20-e728e474b626/how-to-prevent-ipv6-addresses-from-being-registered-in-dns-server?forum=winserverDS
    Looking forward for the reply.
    Muhammad Asif Server Administrator Linux/Windows

    Hi,
    You can use Group Policy to disable IPV6 on clients within your domain, assuming you have an Acgive Directory environment.
    There are ADM/ADMX templates that are actually doing this. You just have to import it on PolicyDefinition folder on one of your domain controller then configure a group opliy and link it to your structure.
    http://social.technet.microsoft.com/wiki/contents/articles/5927.how-to-disable-ipv6-through-group-policy.aspx
    Hope this help.
    Regards,
    Calin

  • How to prevent duplicates in your contacts

    When syncing two iphones via icloud with your computer how do I prevent duplicate contacts between both phones, icloud and yahoo?

    I have 11 people designated under faces.
    Do you see the 11 People when using the "Faces" view from the source list in the Library Inspector or from the "Faces" button in the toolbar?
    If you are using the Faces button from the toolbar, you may have been excluding faces stacks you already created. Then, when you enter search strings, Aperture will suggest names from your contacts and you may create the same stack again.
    Also, if the search field is not empty, you may already have more "Faces" stacks than you are actually seeing.
    As you certainly know, you can always unite "Faces" stacks by dragging a stack onto the other to merge them. The merged stack will use the name of the stack you dragged to.
    Regards
    Léonie

  • How to prevent duplicate web pages loading

    when clicking on a link, two duplicate web pages load, how to prevent this

    This started when you installed Firefox 13? Which version did you have before -- Firefox 12 or Firefox 3.6?
    Does this occur on all sites or only on particular sites?
    Do you have a very sensitive mouse or touchpad that might be double-clicking the link?

Maybe you are looking for

  • Generation of .ecs file and .xsd file

    Hi, I am working on the Acme-GlobalChips tutorial Query using File 1.0 protocol. I have few question on that. While creating the Business actions and Trading partner IN B2B we use two 850.ecs and 850.xsd.Can these be used for all the trading partners

  • Linking a common Pages file to several other Pages files

    I have a common section called "Terms and Conditions" that is used in several different documents. If I change the "Terms and Conditions" I have to edit every file that contains that section. Is there a way to "Link" a seperate "Terms and Conditions"

  • Very urgent mm classification view

    hi all, am an abap guy ,am uploading a data in tran mm01 where my functional consultant is not selecting classical view can lsmw work without it coz am getting an error even my functional consultant is not sure that can it work without classical view

  • Aperture 3.3 colour issues with DNG

    I have recently been working in a combination of Adobe Lightroom 4.1, Adobe Photoshop CS6 and Aperture 3 To maximise (or so i thought) compatibility I have been importing my RAW files using Lightrooms "Copy as DNG" option. All has been going well, ex

  • How to clear "other" space in iphone

    my iphone is using 2.5gb extra, I don't know why, Can any one tell me how to remove the extra other space??