locked
How to Disable Check-In functionality in MOSS

    Question

  • 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  
    Wednesday, June 24, 2009 12:52 PM

Answers

  • 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
    • Marked as answer by Mike Walsh FIN Tuesday, January 11, 2011 3:26 PM
    Wednesday, June 24, 2009 1:35 PM
  • 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 .
    Wednesday, June 24, 2009 1:37 PM

All replies

  • 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
    • Marked as answer by Mike Walsh FIN Tuesday, January 11, 2011 3:26 PM
    Wednesday, June 24, 2009 1:35 PM
  • 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 .
    Wednesday, June 24, 2009 1:37 PM
  • Hi Steve,

         Thanks for your response.
    Thanks 
    Anil Chowdary
    • Edited by Mike Walsh FIN Tuesday, January 11, 2011 3:26 PM New question removed
    Thursday, June 25, 2009 9:16 AM