0
votes
0answers
32 views

Problem creating content types programatically on a Content Type Hub

So I've been having issues with a module I built to create content types. It goes by steps like this: 1 - I create an empty content type (it may or may not inherit from another content type -which ...
0
votes
0answers
95 views

Programatically Assign a content type id to 'CreateTaskWithContentType' in SharePoint 2013

I already have a content type created via the UI that inherits 'Task' and added to the 'Tasks' list. as show below: Via C#, How can I associate this content type id with the ...
0
votes
2answers
389 views

Hide Columns in Document Information Panel, but show in properties panel

I am trying to hide some columns from view in the DIP, but allow users to change them in the properties panel for the document. I am trying to associate 3 base content types for attaching different ...
0
votes
2answers
513 views

How to open a file using Item Id in SharePoint document library?

I am working on SharePoint Foundation 2010. I want to open file from a link. I found a solution "Link To Document" content type. But in "Link To Document" content type we need filename of original ...
0
votes
1answer
78 views

Changing character limit on inherited column of custom content type

I've inherited the OOTB content type 'Announcement'. I want to set a character limit on the 'Body' column for this particular child content type. Is this possible/feasible or is this generally ...
2
votes
1answer
259 views

Content Type Lifecycle management best practices

I saw thisarticle in the link below and I wonder if you could help me with some questions I have http://msdn.microsoft.com/en-us/library/ee330223(v=office.12).aspx In our current project, which we ...
1
vote
2answers
301 views

How to check if a list content type has its link broken from the site collection content type definition

Its very clear to me that content types after they are deployed their inherited lists shouldnt be changed manually using the web gui. “Do not, under any circumstances, update the content type ...
2
votes
1answer
199 views

rootFolder.ContentTypeOrder throws unexpected error for sandbox solution

I'm trying to add content types into a library list, in order to make "Visible on New" option ticked. Firstly I enabled contenttypes in the library, then I want to do this: SPFolder rootFolder = ...
2
votes
1answer
124 views

Help Return Lists With With No List Items

This is my first time posting and I'm looking for some help, so hopefully someone has an answer. I used the search, but didn't find anything. I created a custom list definition, and content type ...
4
votes
2answers
398 views

Add new Content Type to Multiple Document Libraries in SharePoint online(Office 365)

I have one Sample Document Library on SharePoint Online (office 365). this Library has 5 different document content type. And using this Library as a template i have created 300 new Document Libraries ...
0
votes
2answers
916 views

Error “duplicate field name” while adding content type programmatically

Judging by the stack trace, one of the following lines of code is giving me an error: private void AddcontentTypesToDocumentLibrary(SPWeb web, SPList list) { SPSite site = ...
1
vote
1answer
260 views

Adding a content type to a list gives me a duplicate field error

I have the following code: list.ContentTypes.Add(contentType); It works on my dev environment, but on test fails with the following error: A duplicate field name "[GUID]" was found. I've had ...
0
votes
1answer
37 views

Number field on custom content type working inconsistently amongst items

In a document library, I've included a field of type 'Number' in my custom content type. At a particular point in my solution I increment this field by 1. On certain items it will work, on certain ...
1
vote
1answer
189 views

Can't find a site column that DOES apparently exist

Well I've deployed a site column from my xml definition and upto now it's been fine. I then checked my content type (after some unexpected errors) and it's removed itself from the content type and is ...
0
votes
1answer
54 views

How to specify the name of a ContentType in code for multi-language site?

according to the documentation I can do: <ContentTypeID="0x01000188a30d01ae4607bbe5800bbbaf2550" Name="$Resources:LocalizeContentType,ContentTypeTitle" .... However I seem ...
1
vote
1answer
89 views

Access exceptions when trying to add a content type to list

In the following method, 'list' is simply an SPList ("Documents"). I'm attempting to add ContentTypes to the list and then update it. This code is found in the FeatureActivated event of an event ...
0
votes
2answers
220 views

ContentType.FieldLinks.Add() issue with hidden and required

I have a feature that does the following in the feature activation Code : Creates a new SiteColumn (Type=Text, Hidden=False and Required =True) Set the french version of the Name (using ...
1
vote
2answers
515 views

Add field to content type in specific position

THe code below is working perfect, however I need the new field to be in the 5th position, and not at the end in the forms. Any idea how? private void UpdateDossierContentType(SPWeb parentWeb) ...
1
vote
0answers
402 views

Adding/removing items to/from a DropDownChoiceField

I can't seem to manipulate the items displayed in a DropDownChoiceField I have that's tied to a field on the custom content type with big, really frustrating problems. This field is only visible in ...
0
votes
1answer
370 views

Problem tying textfield to a content type field

I have a SharePointWebControls:TextField control on the page. It's tied to a field that has been defined as normal in the xml (I've gone through this with a fine tooth comb so I'm 99.999% sure the ...
1
vote
1answer
151 views

Non-global fields for custom content types?

I've been tasked with creating a fairly complex system in sharepoint 2010. Coming from a background of from-scratch .NET applications, I'm used to defining tables with their own "local" columns. My ...
1
vote
1answer
326 views

Dispose issue when working with content types

I am seeing an issue with un-disposed SPRequest objects in the ULS logs when i work with content types in the object model. My code is as follows (in previous methods run as part of this request, the ...
0
votes
2answers
74 views

Access title-element

I've created a contentype that inherits from the item contenttype. So the contenttype automaticaly has the field: Title. But how access this field (I want to add some custom validation and define if ...
0
votes
1answer
153 views

Leaving Content Type behind on solution retraction?

At first, I'm wondering if this would be a good idea, at all... However, I have a project (http://sharepointadlds.codeplex.com) that creates two Content Types as well as two Lists in Central ...
0
votes
1answer
4k views

The file name you specified could not be used. It may be the name of an existing file or directory

SPContentTypeCollection listctc = list.ContentTypes; In that line,. I am getting this error: Invalid file name. The file name you specified could not be used. It may be the name of an existing ...
0
votes
0answers
90 views

Access parent field values from custom field definition

I've got a form that contains different custom fields. During vallidation of field1 I need to know the value of field2. Does anyone know how to access the field? Or perhabs it is possible to connect ...
0
votes
1answer
184 views

Multiple ListItem Owner

I need to create a List that contains multiple listitems. Each listitem should have 2 autors, or 2 persons wich have permissions to change the item. The users who are allowed to change the items are ...
2
votes
4answers
1k views

Document Properties Demotion from ListItem field is not working

I have a content type in a library configured with a word document as a template, it is the default content type. When creating via the UI from New item entering information into the DIP sets values ...
1
vote
0answers
321 views

Content Types not visible under New Button

I have a Sandboxed Custom Action for SharePoint Designer that can add Content Types to Document Libraries. The problem is that it does not automatically add it under the "New Document". It's not ...
2
votes
2answers
258 views

Get ContentTypeOrder of a specific folder using CAML and/or SharePoint web services

I am trying to get the ContentTypeOrder of a specific folder using SharePoint web services and caml queries. I am using the GetListItems() method of the Lists.asmx web service. The resulting xml ...
1
vote
1answer
190 views

Centralising site columns

I'm fairly new to the SharePoint 2010 development world (I'm more of an infrastructure guy) so please bear with me. We have a number of time zones we support and we would like to make these available ...
1
vote
2answers
546 views

Is it possible to display the FieldRenderingControl of a FormField without providing a ListId?

Is it possible to display the FieldRenderingControl of a FormField without providing a ListId? I'm creating a dynamic form based off of a content type. Most of the time the data from this form will ...
6
votes
1answer
2k views

Opening the default “New Document” editor for a given ContentType from an external C# application (Sharepoint 2010)

I'm currently working on integrating some SharePoint functionality to an existing C# application we have here. Most of the requirements have be fairly easy to implement: I'm using the ListData REST ...
0
votes
1answer
488 views

Re-order Content Types for a List in code

Has anyone been able to re-order content types for a list in code? If I'm given a specific content type, I want to make it the default in a list, by re-ordering the SPList.ContentTypes collection and ...
5
votes
3answers
208 views

Equivalent of a database table in SharePoint?

I'm making a Publishing site, and part of this site will display information about company products. We have a number of products, and each one should have its own description page. The description ...
3
votes
4answers
1k views

Best way to get CAML for a custom content type

I am trying to get the CAML for a custom content type that I am creating. What I am really doing is creating the content type in Visual Studio 2010 and then deploying that content type to my sandbox. ...