Ask a questionAsk a question
 

AnswerHow to Disable Check-In functionality in MOSS

  • Wednesday, June 24, 2009 12:52 PMAnil Chowdary Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

      I am doing check-in and check-out functionalities for a sharepoint document library through SDK program. I want to remove the check-in option through programtically. Is it possible?

    Thanks & Regards
    Anil Chowdary  

Answers

  • Wednesday, June 24, 2009 1:37 PMNaresh kilaru [MCTS] Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi

    To enable/disable check-in and check-out on a SharePoint document library:

    1. Navigate to the SharePoint document library on which you want to enable check-in and check-out.
    2. On the Settings menu, click Document Library Settings .
    3. On the Customize page under General Settings , click Versioning settings .
    4. On the Document Library Versioning Settings page, select Yes /No for Require documents to be checked out before they can be edited? , and click OK .

    To enable version control on a SharePoint document library:

    1. Navigate to the SharePoint document library on which you want to enable version control.
    2. On the Settings menu, click Document Library Settings .
    3. On the Customize page under General Settings , click Versioning settings .
    4. On the Document Library Versioning Settings page, select Create major versions if you only want to enable major versions on documents or select Create major and minor (draft) versions if you want both major and minor versions on documents, and click OK .

All Replies

  • Wednesday, June 24, 2009 1:35 PMSteve.CurranMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    If you want to disable both check in/ check out context menu items in the document library then see the following link which describes how to add custom menu items to a document library via a hidden "content editor web part". Add that to your web part page and add the following to the "source editor"

    <script language="javascript">

    function AddCheckinCheckoutMenuItem(m, ctx, url)
    {return;}

    </script>

    This will override the core.js function which adds these items to the context menu.


    http://blogs.msdn.com/bowerm/articles/175691.aspx


    certdev.com
  • Wednesday, June 24, 2009 1:37 PMNaresh kilaru [MCTS] Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi

    To enable/disable check-in and check-out on a SharePoint document library:

    1. Navigate to the SharePoint document library on which you want to enable check-in and check-out.
    2. On the Settings menu, click Document Library Settings .
    3. On the Customize page under General Settings , click Versioning settings .
    4. On the Document Library Versioning Settings page, select Yes /No for Require documents to be checked out before they can be edited? , and click OK .

    To enable version control on a SharePoint document library:

    1. Navigate to the SharePoint document library on which you want to enable version control.
    2. On the Settings menu, click Document Library Settings .
    3. On the Customize page under General Settings , click Versioning settings .
    4. On the Document Library Versioning Settings page, select Create major versions if you only want to enable major versions on documents or select Create major and minor (draft) versions if you want both major and minor versions on documents, and click OK .
  • Thursday, June 25, 2009 9:16 AMAnil Chowdary Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Steve,

         Thanks for your response. Is it possible to disable check-in / check-out  for only some of document libraries?

    Thanks 
    Anil Chowdary
  • Tuesday, January 26, 2010 7:07 PMJoeStillwell Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Is there any way to change Version Settings with a script? I have a SharePoint site collection with hundreds of document libraries. Version control is enabled with unlimited versions. I have been asked by management to change the setting to 3 versions. Don't ask why unlimited versions was setup in the first place. I inherited the server this way and was told not to change it until now that we are running out of disk space.