Tag Info

Hot answers tagged

46

Just moved (drag & drop) a file in Explorer View from one document library to another, and it did retain previous versions! Obviously both libraries need to have versioning enabled. Try it yourself. EDIT: note that it ONLY retains the versions if you MOVE the files. It does not do so when you perform a COPY!


10

Go to site actions -> Manage content and structure. At the first page there is a list of the files with a "view" in the toolbar on the right section. Drop this down and choose "Checked out to me". This will list all the files, you can then check the checkbox to select all items and in the actions drop down choose check in.


7

Last year I added functionality to Chris O'Brien's SharePoint Content Deployment Wizard to copy documents from one library to another. I'm pretty sure I tested that versioning copied over as well. Have a try of that and if you have any problems using it please leave me a comment here and I'll update my answer with more info.


6

If you prefer not to deploy any of your own custom code to your WFEs then you may want to consider a simple SharePoint Designer workflow as well. Have a look at this article that describes something similar and can easily be adapted (it renames a file from a workflow when it contains sensitive information in the file name). Providing feedback to the ...


6

I would take a look at these two links: http://ktskumar.wordpress.com/2009/03/10/sharepoint-databases/ http://grounding.co.za/blogs/neil/archive/2008/08/16/sql-databases-used-in-sharepoint.aspx They go over the various databases that SharePoint has under the hood and what their purposes are. That being said... I would recommend staying away from ...


5

You can use SharePoint Designer to navigate to the site / Document library. Select all files that need checking in and select Check-in from the Edit menu. Alternatively use PowerShell as described in this post.


5

Not to advertise or something but i've had excellent results with the following product SharePoint Documentation Toolkit (http://www.spdockit.com) which does the whole farm if needed to. Beyond this, manually you could simply rely on SharePoint Designer for structure and depending on what exactly "documenting" means, you could envision looking at: Site ...


4

As Anders mentions in his answer, my company SharePoint Products has a tool named CopyMove for just that. It is free to use for 1 named user - only organizations that need to offer the tool to their end-users will need to purchase a license. The product can copy/move documents, list items and folders with no loss of metadata, version history and ...


4

For SP2010 you can find it as below Site Actions -> Content and structure -> Change View (Checked Out to Me) -> Select all files using checkbox and click on Actions Menu. There's option to checkin. Thanks, Ashish Chotalia


4

Create a view in the document library with all the desired columns, set a filter Name Begins with MyFile and set the folder options to show all files without folders. If you have many thousands of documents, be sure to page the results through the view configuration. When done, click OK to save it and distribute that URL and it will show the contents ...


4

SharePoint Search will return the url to the document in Path when it thinks a file is a document (isDocument == 1), but if the file isn't a recognized file type SharePoint will treat it as a list item and return the url of the display form in Path. You can add support for more file types by adding IFilters (see here for PDF: How to configure PDF iFilter ...


4

You need to retrieve SPWebApplication.DaysToShowNewIndicator and the build a query to retrieve documents created within that number of days. For more code see Getting the list of new items from code


3

a way to move documents through doc lib is to use the Content Deployment API. using objects like SPExport and SPImport the copy, move actions of the content site and structure (sitemanagement.aspx) are performed using this API. and you can set that you want to keep the versions!


3

I know its not what you ask for, but for completeness i want to add that you can deny files by extension in Central Administration if you are using MOSS. Manage blocked file types (Office SharePoint Server) Anders Rask


3

I know of no OOTB way to do this, so you would have to code this functionality yourself. I know that Lars Fastrup has created a tool that does just what you want: CopyMove for SharePoint It also has a web service API. hth Anders Rask


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

You're not describing what performance problems you are seeing. Start with updating your question with that. There are no magical SQL maintenance jobs that will shrink your documents etc, you have to design your SharePoint farm in the correct way to handle large amounts of data. Use Site Collections to be able to spread the data over multiple content ...


3

Consider using Chris O'Brien's Sharepoint Content Deployment Wizard: http://www.sharepointnutsandbolts.com/2007/12/introducing-sharepoint-content.html It can be found on CodePlex.


3

Yes you could enable audit policies, but another option is to take advantage of the Usage and Health service that collection information into a seperate database. This is in fact the only database that you are allowed to do selects from directly. Read more on technet: http://technet.microsoft.com/en-us/library/ee748636.aspx#section3


3

I dont think you can do that OOTB but it should be possibe by using an event reciever on your document library that listens to ItemCheckingOut event. Documents need to be checked out before you can edit them and if you listen to the ItemCheckingOut event you can cancel the event and show a message to the user that says the document cannot be edited. ...


3

The closest you can get with default functionality is to impersonate a user and make a search with the user whose "linked" files you're interested in listing. Considering it is practically not possible to impersonate as each user, I would start off from this blog article and modify the code to be cross site collection and across all web apps. You could ...


3

Step 1 Add a Content Editor web part and put the following HTML code in there. <IMG alt="" src="/_layouts/images/rect.gif">&nbsp;<A onclick="createNewDocumentWithRedirect('http:\u002f\u002fwww.yoursite.com\u002fsce\u002fSubSiteName\u002fListName\u002fForms\u002ftemplate.xsn', ...


3

Check out this post - SharePoint public-facing website and Microsoft Office documents - to disable client integration and remove the OPTIONS verb from the web config.


3

The versioning in SharePoint is tracking Major (published with everyone, everything having 1.0, 2.0, etc.) and/or Minor (X.1, X.2, etc.). According to how you have setup Versioning via the List/Library Settings you would have Major or Major and Minor. In both cases when you limit versions, basically the OLDEST are deleted, so you would 0.1, 0.2, 0.3 as ...


3

Since you are trying to update item on ItemUpdated event you will get this error because another Update event was already in progress so you need to turn off EventFiring before calling SystemUpdate(). Example: SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPWeb web = properties.OpenWeb()) { var list = ...


3

There are two main concepts in how you can make this work, following the article of Olivier Carpentier "How to add programmatically users as followers with new SPSecurityEventReceiver in SharePoint 2013" we learn that: One of the behavior of this feature is that if you're adding someone as a user in this web site (for example, you're adding a user as a ...


3

The New Document button should open the template specified on the document library for the user. Then they can save the document back into the library. Upload Document is just that, uploads a doc. If you're seeing Upload for the New, I think this is because you either don't have a template specified for your content type, or you're on a browser that doesn't ...


3

No, no OOB settings can prevent a user from overwriting an existing document, unless you do one of the things suggested in the other answers OR you create an event receiver and attach it to your library. In this event receiver, for the itemAdding event handler, you then check if there's another document with the same name and in this case, you cancel the ...


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



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