Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. Prevent duplicates in sharepoint list (Urgent)

Prevent duplicates in sharepoint list (Urgent)

Scheduled Pinned Locked Moved SharePoint
helpquestionsharepointcom
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Eranda Ketawalage
    wrote on last edited by
    #1

    Im using MOSS 2007 and Im new to sharepoint. I have to create a custom list and want to prevent duplicate value in a particular field. How do I do it. I have used this http://features.codeplex.com/[^] and it gives error when i re type a field value rather popping up a message or other. So, please help me to solve this? how do i handle this using event handling???

    N R R 3 Replies Last reply
    0
    • E Eranda Ketawalage

      Im using MOSS 2007 and Im new to sharepoint. I have to create a custom list and want to prevent duplicate value in a particular field. How do I do it. I have used this http://features.codeplex.com/[^] and it gives error when i re type a field value rather popping up a message or other. So, please help me to solve this? how do i handle this using event handling???

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      First, it is very rude here to mark your post as Urgent. It may be urgent to you but not to us. Have you cantacted the author of this feature? What error?


      I know the language. I've read a book. - _Madmatt

      1 Reply Last reply
      0
      • E Eranda Ketawalage

        Im using MOSS 2007 and Im new to sharepoint. I have to create a custom list and want to prevent duplicate value in a particular field. How do I do it. I have used this http://features.codeplex.com/[^] and it gives error when i re type a field value rather popping up a message or other. So, please help me to solve this? how do i handle this using event handling???

        R Offline
        R Offline
        Rajesh Sitaraman
        wrote on last edited by
        #3

        Hi, You have to write EventReceiver for the Custom list. In EventReceiver override the ItemAdding event and use the duplicate prevention logic over there. Google for EventReceiver samples, you'll find a lot.

        --- Rajesh MVP

        1 Reply Last reply
        0
        • E Eranda Ketawalage

          Im using MOSS 2007 and Im new to sharepoint. I have to create a custom list and want to prevent duplicate value in a particular field. How do I do it. I have used this http://features.codeplex.com/[^] and it gives error when i re type a field value rather popping up a message or other. So, please help me to solve this? how do i handle this using event handling???

          R Offline
          R Offline
          RahulPuneet
          wrote on last edited by
          #4

          Can you please provide us the code so that we can able to look into that and able to figure out the error. Apart from that you can do this by using customizing your code and on that particular field you can put the javascript which give a popup message to you.

          N 1 Reply Last reply
          0
          • R RahulPuneet

            Can you please provide us the code so that we can able to look into that and able to figure out the error. Apart from that you can do this by using customizing your code and on that particular field you can put the javascript which give a popup message to you.

            N Offline
            N Offline
            Not Active
            wrote on last edited by
            #5

            You have no idea what you are talking about. First, the OP gave a link to the code they were using. Second, you can not add JavaScript to display a message box without completely customizing the display and edit forms for the list. Know what you are talking about before responding.


            I know the language. I've read a book. - _Madmatt

            R 1 Reply Last reply
            0
            • N Not Active

              You have no idea what you are talking about. First, the OP gave a link to the code they were using. Second, you can not add JavaScript to display a message box without completely customizing the display and edit forms for the list. Know what you are talking about before responding.


              I know the language. I've read a book. - _Madmatt

              R Offline
              R Offline
              RahulPuneet
              wrote on last edited by
              #6

              You can open the same custom list into the sharepoint designer and provide the custom validation over there. I donot know how much you are comfortable with the sharepoint desigener but you can put the custom validation / javascript form there while adding a new record or edit the same record.

              N 1 Reply Last reply
              0
              • R RahulPuneet

                You can open the same custom list into the sharepoint designer and provide the custom validation over there. I donot know how much you are comfortable with the sharepoint desigener but you can put the custom validation / javascript form there while adding a new record or edit the same record.

                N Offline
                N Offline
                Not Active
                wrote on last edited by
                #7

                I am appreantly more comfortable and understand SharePoint better than you. Please stop posting until you have some value to add and understand the tools and technology.


                I know the language. I've read a book. - _Madmatt

                R 1 Reply Last reply
                0
                • N Not Active

                  I am appreantly more comfortable and understand SharePoint better than you. Please stop posting until you have some value to add and understand the tools and technology.


                  I know the language. I've read a book. - _Madmatt

                  R Offline
                  R Offline
                  RahulPuneet
                  wrote on last edited by
                  #8

                  Now i able to understand that you are more comfortable to understand the sharepoint. Thanks again.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups