Fazer uma PerguntaFazer uma Pergunta
 

RespondidoDuplication in SharePoint

  • sexta-feira, 3 de outubro de 2008 14:14Manoj Kumar P Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     

    I Have to restrict user to enter Item If Title Already Exist. By Default SharePoint only restrict Only The Row Duplication. Any one Help me on this?

     

    Thanks in Advance

     
    Sharepoint

Respostas

  • terça-feira, 7 de outubro de 2008 7:07Jamil Haddadin Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido
     There is a tool on http://www.codeplex.com/features/Release/ProjectReleases.aspx?ReleaseId=2502  called "Uniuq Column policy Feature", download it  (*.wsp file) then install it on your server using the following command:


    C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsadm -o addsolution -filename "C:\Documents and Settings\Administrator\Desktop\UniqueColumnPolicy.wsp"

    then go to Central Administration>Operations> Solution management, you will find a solution called uniquecolumnpolicy.wsp, go and deploy it.

    Then go to your document library or list> Settings> docuemnt library settings>Information management policy settings > Select Define a Policy, you will find "Unique Column Policy" then check the "Unique Column Policy" box  next to it, then you will have the list of columns in your document library, select the column you want to apply a unique constrains on.


    Cheers
     
    • Marcado como RespostaManoj Kumar P terça-feira, 7 de outubro de 2008 11:22
    •  

Todas as Respostas

  • sexta-feira, 3 de outubro de 2008 14:32Michael Nemtsev [MVP]MVPMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    Could you explain in more details what are you doing and what's wrong?!
    Visual C# MVP | My SharePoint blog
  • domingo, 5 de outubro de 2008 10:09Jamil Haddadin Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    sharepoint doesnt take care of duplications out of the box, you can easily do it by object model where you can cancel all the new / Editted items that contains a title used in on of the old items.
  • segunda-feira, 6 de outubro de 2008 2:20burlo Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    Write an list item event handler (http://www.wrox.com/WileyCDA/Section/Programming-Event-Handling-in-Windows-SharePoint-Services.id-306329.html) that overrides the ItemAdding method. In this method you want to check if the title exists (i.e use a CAML query not a foreach loop, its more efficient) if it does not exist then add it, other wise cancel the action and display a message to the user.
  • terça-feira, 7 de outubro de 2008 7:07Jamil Haddadin Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido
     There is a tool on http://www.codeplex.com/features/Release/ProjectReleases.aspx?ReleaseId=2502  called "Uniuq Column policy Feature", download it  (*.wsp file) then install it on your server using the following command:


    C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsadm -o addsolution -filename "C:\Documents and Settings\Administrator\Desktop\UniqueColumnPolicy.wsp"

    then go to Central Administration>Operations> Solution management, you will find a solution called uniquecolumnpolicy.wsp, go and deploy it.

    Then go to your document library or list> Settings> docuemnt library settings>Information management policy settings > Select Define a Policy, you will find "Unique Column Policy" then check the "Unique Column Policy" box  next to it, then you will have the list of columns in your document library, select the column you want to apply a unique constrains on.


    Cheers
     
    • Marcado como RespostaManoj Kumar P terça-feira, 7 de outubro de 2008 11:22
    •  
  • terça-feira, 7 de outubro de 2008 9:12Manoj Kumar P Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    Thank you Jamil

    I am going to try this tool.

    Sharepoint
  • terça-feira, 7 de outubro de 2008 11:24Manoj Kumar P Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    Thank you Jamil,

    That Solution Works for Me

    How ever it is For Single Column Constrains

    Is there any option for Multiple columns constraints

    Thanks in advance

    Manojkumar P


    Sharepoint
  • segunda-feira, 15 de junho de 2009 14:04ptrive Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
     There is a tool on http://www.codeplex.com/features/Release/ProjectReleases.aspx?ReleaseId=2502  called "Uniuq Column policy Feature", download it  (*.wsp file) then install it on your server using the following command:


    C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN>stsadm -o addsolution -filename "C:\Documents and Settings\Administrator\Desktop\UniqueColumnPolicy.wsp"

    then go to Central Administration>Operations> Solution management, you will find a solution called uniquecolumnpolicy.wsp, go and deploy it.

    Then go to your document library or list> Settings> docuemnt library settings>Information management policy settings > Select Define a Policy, you will find "Unique Column Policy" then check the "Unique Column Policy" box  next to it, then you will have the list of columns in your document library, select the column you want to apply a unique constrains on.


    Cheers
     

    Thank you Jamil,

    Is there any option available to avoid duplicate entried in column (multilines)?
    Do we need to srite any event handler for work breaker or something like that ?

    Regards
    Pramod