Tag Info

Hot answers tagged

5

In a way yes - try using the "Link to a document" content type instead of the document. or use the "Send To" option which would create a syncronized copy of the document (multiple locations possible) which can be easily maintained. In the case of Send To, yes, i believe -which should also answer your 3rd question (but if not) Hope it helps, C:\Marius


5

No, there is no native web service that allows you to create a DocSet. You have to write code to do this. Two techniques: Use the client OM to create one: http://sharepointfieldnotes.blogspot.com/2010/02/how-to-create-document-set-remotely.html Use the server OM to create one: ...


4

The SharePoint "Append Changes to Existing Text" column is a HACK implemented by the SharePoint team, in reality it's just an ordinary text field, but where the rendering is grapping the text from previous versions and using these to create what appears to be a functioning append text field. So the field is very dependend on the prior versions to exist (you ...


3

First of all there is no document set library in SharePoint. There is only a content type that is called "Document Set" and this can exists on certain document libraries. You need in to use in your declaration the RegistrationType="ContentType" and for the RegistrationId="0x0120D520". Last one is the id of the content Type "Document Set". The required ...


3

This has to do with how SharePoint "builds" content types I think. It needs to know where to find the parent, or more specifically, the parent's original schema (XML). If Inherits is set to true, it will include the parent's fields directly in its own schema, when this is not the case. it will always require a schema to be based on, which can be found in the ...


3

Here you have something quite similar (just few changes needed): How to Display a SharePoint Dialog from Ribbon Button and Get Selected Item Context Basically you need two things: Custom ribbon/button similar to one described in article. With usage of dialog framework you open custom page and pass selected items values as querystring (all described in ...


3

First off its not available in SharePoint Foundation, so you need the full SharePoint 2010 Server. Here it can be enabled at site collection level. The feature is called Document Sets. When enabled you can add a document set content type to your list, giving you the ability to create document sets from the "new document" button in the ribbon.


3

The url for the document set welcome page includes an ID in the query string, so you can use this parameter to find the document set: http://server/MyDocumentLibrary/Forms/MyDocumentSet/docsethomepage.aspx?ID=2 var id = Convert.ToInt32(HttpContext.Current.Request.QueryString["ID"]); SPListItem item = ...


2

OOTB the views are the same when displaying the list of document sets and displaying one document set with all the files in it. But you can set different views: Create a new view to use when displaying the files in the document set Go to the list settings and allow management of content types in Advanced Settings Select the Document Set contenttype In the ...


2

My guess would be that as the DocumentSet object derives from SPFolder, you should use the same method to rename a folder than a document set so something like set.Item[SPBuiltInFieldId.Title] = newDsName; set.Item.Update(); //or SystemUpdate(false) or you could use the MoveTo Method on the SPFolder Object


2

Yep you can. You need to make sure that you have the Document Set feature enabled on the Site Collection and then from the Content Organizer Rules you can specify the Group as 'Document Set Content Types' and the type as 'Document Set'. One thing people frequently forget is that you also need to have the content type available within the destination ...


2

I'm not sure if I'm answering the right question, but I used this method to check if Doc Set (folder) exists, and if not, create: [Microsoft.SharePoint.SPFolder]$targetFolder = $rootWeb.GetFolder($targetDocLib.RootFolder.ServerRelativeUrl + "/$docSetName") if (-not $targetFolder.Exists) { # create } This approach worked for me.


2

It looks like folders aren't offically supported by Microsoft within Document Sets. See the Document Sets planning (SharePoint Server 2010) From the document: Folders are not allowed in document sets, and metadata navigation cannot be used in a Document Set There may be an unsupported way, but it will likely cause problems.


2

Unfortunately there is no standard SharePoint Designer Action to copy/move a document into a document set. The only similar action is to copy the list item which could copy it from one list to another. Seems like you will have to create your own SharePoint Designer Activity which allows you to move/copy a file to a document set - keep in mind that a ...


2

Here's an idea. Navigate to the Document Set library Go to the Library tab in the Library Tools section at the top of the page. Click "Open with Explorer" Rightclick the Document Set you want to view the size of and click "Properties" The size of the folder will show the size of the document set with all of it's contents.


2

If the desired view is consistent across the Document Sets, you can configure it once when configuring your Document Set content type and all new instances of this Document Set will reflect this. The settings you're looking for are referred to as the "Welcome Page" settings. See: Create and configure a new Document Set content type Under the heading ...


2

public static SPFile CopyFile(SPWeb web, string sourceUrl, DocumentSet docSet) { SPFile file = web.GetFile(sourceUrl); string destinationFolderUrl = docSet.Folder.Url; destinationFolderUrl = (!destinationFolderUrl.EndsWith("/")) ? destinationFolderUrl + "/" : destinationFolderUrl; file.CopyTo(destinationFolderUrl + file.Name, true); web.Update(); ...


1

There is a known SharePoint bug using shared Content Type columns within a Document Set on MS Office documents. This issue was outlined in the YouTube video: SharePoint 2010 Document Set Bug with Office Documents. This issue can be resolved by patching to the latest CU. May or may not solve your problem, but I'd start out there.


1

The following code worked-(check the comments in the code) CamlQuery q = new CamlQuery(); q.ViewXml = @"<View Scope='Recursive'> <Query> </Query> </View>"; // This line did the trick!!! - "Test" is actually the name of document set I am trying ...


1

I suspect this is linked to the fact that Document Sets don't automatically create versions, I'm assuming that the column is on a Document Set? Test the behaviour when this column is added to a document content type in the same library. If the document behaves correctly then roll a custom ItemUpdating event receiver to handle doing the appending.


1

I've ran into this before when using "Append-Only" within a Document Library. I've had success in the past using the OOTB Site Column called: Append-Only Comments This seem to function as expected however I did notice some odd behavior when changing the Display Name of the column. That was in 2007 however. YMMV


1

I don't think you can do that directly. What you can do is to use the /_layouts/Upload.aspx page and use an ajax file uploader. What I would do: Use an third part ajax file uploaded such as valums / file-uploader. Find the ID of your library (list). var title = 'D'; var ctx = new SP.ClientContext(); var list = ...


1

I have a work-around where you can create your Doc Set content type, set Inherits="True", and still keep all your custom XMLDocuments. Basically the idea is to use a feature receiver on the feature where you deploy your ctype definitions, pull out the elements.xml files, and copy your XMLDocuments into the ctype defs on the site (which have ignored your ...


1

You need to keep in mind that Document Sets are just folders on steroids. I tried to make HashTable approach to work without any luck. But this code will do the job: using (var site = new SPSite("http://myultracooltestsite")) { using (var web = site.OpenWeb()) { SPList list = web.Lists["MyCoolDocLib"]; DocumentSet ds = ...


1

The listing of all document sets is just a view of the document library, just exclude the column Test from the view. When you select a document set a 'welcome page' is shown with details about the document set and the documents in the set. I guess what you want is to show the column Test on the welcome page, this can be accomplished in the settings of the ...


1

It depends on what you see as an ootb solution. A Document Set is a 'special' content type with ContentType ID="0x0120D520", so sort of a Folder content type. To add custom properties (fields) to a document set you can go several ways: Add a site/list column through the SharePoint UI as you would do with a regular content type Add a SPField in code, e.g. ...


1

SharePoint 2010 takes the document library's default Content Type (which by default is the first CT) as the CT of the document being uploaded in the Document Set, even when it's not an allowed CT of that Document Set. (which indeed seems to be a bug) The "New Document" ribbon item does however show the right Content Types that are allowed in the Document ...


1

I know this really should not be an answer, and should be a comment on the accepted answer, but apparently I cannot add a comment. In any case, I have a potential solution to the problem of the Inherits attribute, and needing to set it to True so you can publish content types correctly vs. needing to set it to False so that you can preserve your declarative ...


1

There is CodePlex project I used to solve something similar: Lookup Field with Picker 2010 Features Single- and multi-Selection Mode Cross site picking Search in picker dialog Search Operators: equals, not equal, contains, begins with, greater than, greater or equal than, less than, less or equal than. Select fields you would like to ...


1

I don't use SPMetal against a Document Library, but I do against a Photo Gallery. The following seems to work for me. Hopefully this can help get you started. This should return a list of the items within a given folder in a photo gallery. SPMetal XML: <?xml version="1.0" encoding="utf-8"?> <Web AccessModifier="Public" Class="PhotoGalleryDao" ...



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