Tag Info

Hot answers tagged

7

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. ...


7

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 ...


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

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

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

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);


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

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 ...


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


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 ...


4

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) { ...


4

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 ...


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

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

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

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

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 ...


2

Installing the latest service pack resolved the issue!


2

This could be a client issues. Try the following if the SP does not work. Run the Microsoft Office Diagnostic Tool, which is part you the Office installation on a client. This will look for and correct any errors in your Office installation. When the diagnostic tool is finished try to check out and edit a document. The David Klein's blog entry for ...


2

I have seen this happen when you have some Office 2007 products installed along with some Office 2003 products. This may or may not be your issue, but I have seen it fairly frequently. There is a KB article on it from Microsoft, along with a hotfix that must be run on the machine experiencing the issue: http://support.microsoft.com/kb/938888. Without ...


2

The ID of the user referenced in the CheckoutUser field is the user's unique ID in the user information list. You should be able to grab the current user's information and then do a lookup on the user information list to get their ID and then compare the values.


2

I had write down the script to get the checkout file by user name here is the script : function Get-CheckedOutFiles() { [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Sharepoint") $webapp = [Microsoft.SharePoint.Administration.SPWebApplication]::Lookup("http://moss") foreach ($site in $webapp.Sites) { Write-Host "Processing Site: ...


2

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 ...


2

Check the Level property of the SPFile object. It's a SPFileLevel enumeration with these possible values:Published, Draft, Checkout


2

Having a 'checked out' flag is useful when you have another application that will use or otherwise look at the document library. Also, that popup you get when someone's locked the file for editing? That's MS Office specific. You can't do this with text files. If you want to lock down any format that's not office to prevent save conflicts, you gotta use ...


2

In addition to what James said. You may want to test out this scenario. You are editing a document, someone else downloads the document instead of opening it straight from SharePoint makes changes and then uploads back up. I havent tried this specifically but it could in theory overwrite what you were working on. If we are talking Office 2010 and ...


2

You would need to enable versioning & content approval, via List/Library Settings. As soon as that is done you see in the bottom 2 more options: To decide Draft visibility - make sure you choose the one stating "Only users who can Approve items (and the author of the item)" !!!ONLY on Document Libraries!! - Option "Require Documents to be checked out ...


2

This is by design. If mandatory metadata is not filled in, the document will not be visible to anyone else but the author. Either don't make the metadata fields required or educate the users in the proper procedure to supply required metadata.


2

Since both CheckedOutUserId and CheckoutUser fields are declared as ReadOnly (Field.ReadOnlyField property is set to True), it values could not be updated via CSOM. From the other hand SP.File.checkOut() Method does not accept parameter for specifying the checkout user. Therefore it does not seem possible to checkout file to another user.



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