How to Disable Check-In functionality in MOSS
- 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 & RegardsAnil Chowdary
Answers
- Hi
To enable/disable check-in and check-out on a SharePoint document library:
- Navigate to the SharePoint document library on which you want to enable check-in and check-out.
- On the Settings menu, click Document Library Settings .
- On the Customize page under General Settings , click Versioning settings .
- 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:
- Navigate to the SharePoint document library on which you want to enable version control.
- On the Settings menu, click Document Library Settings .
- On the Customize page under General Settings , click Versioning settings .
- 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 .
- Marked As Answer byXing-Bing Yu - MSFT Thursday, July 02, 2009 1:23 AM
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- Hi
To enable/disable check-in and check-out on a SharePoint document library:
- Navigate to the SharePoint document library on which you want to enable check-in and check-out.
- On the Settings menu, click Document Library Settings .
- On the Customize page under General Settings , click Versioning settings .
- 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:
- Navigate to the SharePoint document library on which you want to enable version control.
- On the Settings menu, click Document Library Settings .
- On the Customize page under General Settings , click Versioning settings .
- 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 .
- Marked As Answer byXing-Bing Yu - MSFT Thursday, July 02, 2009 1:23 AM
- Hi Steve,Thanks for your response. Is it possible to disable check-in / check-out for only some of document libraries?ThanksAnil Chowdary
- 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.

