Hot answers tagged

9

Depending on what you are trying to do there are a few approaches to this: -- Use the Manage Content and Structure Reports as per http://blogs.syrinx.com/blogs/sharepoint/archive/2008/04/14/content-and-structure-reports-just-a-caml-ride-away.aspx but this is fairly limited as it doesn't let you specify who checked out the document and on which site. -- Use ...


9

If you have administrative rights, it is possible to override the check-out via the View All Site Content page: Site Actions View All Site Content Pages Hover the item you want to check out, and from the context-menu (arrow-down next to the filename), choose "Discard Check Out" It is also possible to perform this routine through SharePoint Designer. ...


6

try to use this query: SPQuery q = new SPQuery(); q.ViewAttributes = "Scope=\"Recursive\"" q.Query = "<Where><Geq><FieldRef Name='CheckoutUser' LookupId='TRUE'/><Value Type='int'>0</Value></Geq></Where>"; var pages = pagesList.GetItems(q);


6

I ended up finding my answer on the Microsoft Support pages. It turns out if the user selected "Edit in [client application name]" to edit the document then after they check it in there is a 10 minute delay before the write lock on the document is released. Below is a link to the support page where I found my answer. http://support.microsoft.com/kb/899709 ...


6

You could use REST and the CheckOut method. Altered from MSDN for jQuery and non-app approach: $.ajax({ type: 'POST', url: "/_api/Web/GetFileByServerRelativeUrl('<your file>')/checkout", headers: { 'X-RequestDigest': $('#__REQUESTDIGEST').val() } });


5

SharePoint document libraries III: Work with version history at the office website says no. The first link is for SharePoint 2007 where it's easy to find, but if you want it confirmed for SharePoint 2010 then it's also mentioned in the description for the selection "Keep the following number of major versions" in Enable and configure versioning for a ...


5

You can use the Client Object Model to get a reference to the file and then use the checkOutType property to see if it has been checked out. SP.File.checkOutType property


5

SP.File.checkOutType property gets a value that indicates how the file is checked out of a document library Get file checkout type via REST $.ajax({url: "/_api/web/getFileByServerRelativeUrl('" + pageUrl + "')/checkOutType", headers: { "Accept": "application/json; odata=verbose" }, success: function(data) { ...


5

1) You can replace the icon "CheckOutToOverlay.gif". You find it under \14\TEMPLATE\IMAGES. If you want to do it "right" you probably need to write code that replaces the icon on every server. But it should work by replacing it manually -until an update/service pack overwrites you changes. 2) You can change the association to the icons via the ...


5

This is default behavior and I don't think there is a way to prompt user on closing. There are simply no options to send information back to Sharepoint that document is closed. The only option would be to integrate some custom logic into the application responsible for document handling, but I think it is not worthwhile. UPDATE Since there are most likely ...


5

Use SharePoint Designer and follow these steps: Connect to SharePoint site in SharePoint designer. On the left pane click All Files. Then on the list select "Style Library". Select the CSS file you want to edit and then click "Edit file". If check out is required it will do it for you after your confirmation. Make your changes, save the file, and don't ...


4

Have you actually tried it yet? Log in as a normal user. Edit a page. Save it, but don't check it in. Log in as an admin, check the page in. See if the changes the user made are there. My suspicions tell me that they will be there, as an administrator can always see the most recent version of a document, major or minor. The only thing is that the 'last ...


4

One possible cause: If a file has never been checked in before, no accounts can access it except the one responsible for adding it. This usually happens when files are uploaded without all the required fields being filled out (most commonly this is the result of using Explorer View to drop files into the library). One easy solution is to run a recursive ...


3

They're both working, thanks! I've found another way, a little faster because it doesn't need to call the server back again, but it can only to determine if the file is checked out by the current user, not by a generic user. I've found a way to achieve this, tested on Sharepoint 2013. Just add the following script inside a script webpart after putting ...


3

There is an out of the box way of doing this - Navigate to /_layouts/ManageCheckedOutFiles.aspx?List=ListGUID and take ownership for the Checked out files and check in


3

The answer provided by SharePoint Dude only applies to files with no checked in version. It's accessible through the Library Settings page in the browser UI. But James Love and Ashish Patel are right - as an admin, if you find a file and choose 'check in' the user's changes will be preserved. (Tested using SP 2010.) Sharepoint asks you to confirm if you ...


3

Another, non code way to get a list of all checked out items, is the following. This is a neat small tool for your content editors, too. go to http://website/Reports%20List/AllItems.aspx Add new item. At the same query as above (0) go to the sitemanager http:///_layouts/sitemanager.aspx Select your library with publishing pages in it. Select in "View" the ...


3

NO-Code: Try building a view that ignores Folders and filters out by the CheckOut To column not being NULL - this means actually the document is checkout.


3

Did you check this msdn post. It basically says to check - The Require documents to be checked out before they can be edited setting on the Document Library. Select 'Yes' to have the prompt appear. This affects both Word 2003 and Word 2007 Offline Editing settings in Word 2007 Word 2007: Office button > Word Options Save See the Offline editing ...


3

Solution ASP.net Ajax 1.0 web.config settings messed up check out. Particularly this line in httpHandlers section: <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> After removing this line it ...


3

Your getting confused with the terms. Check in and out is not upload and download! when the file within any document library that is checked in than its locked to all users. You cant make any ammendments to the file and its in public view. At this point if you have the right access you can check out the file. When you check out there is now a lock in ...


3

Check-in/ Check-out is only available for document libraries. The physical check in/out process is done on the SPFile (document) and not the list item. List items can be tracked using versioning. sharepoint does not allow entry of values concurrently, meaning if you are modyfying list item 1 and user 2 also trys to do it, only after user 1 changes are ...


3

This may be caused by the enabled "Require content approval" setting of the library and/or required fields not being populated while uploading via WebDAV (aka Explorer View or UNC network drive mapped to the document library). Until the required fields are filled appropriately, SharePoint considers such uploads drafts not worthy of bothering anyone except ...


2

You might need to do the following: In the library settings click "Versioning settings" Set "Requite Check Out" to true Done Update: I've just realized that you need to check out the document when you are adding it, not editing... Then this might work for you: SPListItem.File.CheckOut


2

In addition to the above answer, check in means your changes will be visible to all the users. It does not mean you will get an option to upload from local drive. If you do not have access to SharePoint Designer, you can download your css file, make changes and upload it again. For that file needs to be checked-out first (that means you are making some ...


2

You can create a new permission using specific permission level. Maybe you can call it "Add and View" or something similar. In the site collection site settings, you can create a new permission level that you get to pick and choose the permissions you want the user with it to have. Site Settings -> Users and Permissions -> Site Permissions Manage -> ...


2

I think you need to specify what type of CheckIn you're doing. Such as Item.File.CheckIn("Checked in programatically!", SPCheckinType.MajorCheckIn);


2

No, that is a library level setting. SPFile.RequiresCheckout is a read only property that tells you is 'check out required' setting set for the document library.


2

I can suggest 3 ways to achieve this: First 2 are REST and Javascript: You could use SP.File.checkOutType property to determine whether document is checked out of a document library REST $.ajax({url: "/_api/web/getFileByServerRelativeUrl('" + docUrl + "')/checkOutType", headers: { "Accept": "application/json; odata=verbose" }, success: ...


2

Create a View with a filter. The condition for the filter would be: Select field "Checked-out to" "Is not equal to" Leave value empty



Only top voted, non community-wiki answers of a minimum length are eligible