Prevent duplicates in sharepoint list (Urgent)
-
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???
-
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???
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
-
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???
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
-
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???
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.
-
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.
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
-
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
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.
-
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.
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
-
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
Now i able to understand that you are more comfortable to understand the sharepoint. Thanks again.