A list definition defines a schema for a SharePoint list. It contains information on what views are being used, which columns and content types are being used, and other metadata information.

learn more… | top users | synonyms

1
vote
1answer
1k views

Add image column to Sharepoint Foundation list

Trying to use Visual Studio to add an image/thumbnail column to the schema.xml of a Sharepoint Foundation list (Can't use the Type="Image" as this is Foundation). Any ideas? TIA
1
vote
1answer
112 views

What is the order in which Custom field type,Fields,Content type,List definition are creating?

I am creating a custom field type, Content type and List definition. I have a custom field type inheriting from Multicolumn value and I am adding new fields of my custom type to my new ...
1
vote
1answer
181 views

ContentTypRef and Schema.xml

I am studying List Definition in sharepoint 2010.I have two files one schema.xml and another elements.xml elements.xml <ContentType ID="0x0101005CF0DB5B6075417a8664EFD23835C831" Name= ...
1
vote
1answer
3k views

Creating a List Definition in Visual Studio 2012

Dont know if I'm missing something or just blind, but did MS not include the Add new List Definition template to VS2012 ? It was there in VS2010. VS 2010 screenshot VS 2012 screenshot
1
vote
3answers
280 views

how to get guid in list definition

I have noticed that many examples of internet which show creating the list definition have a GUID in the id of the field. How is this ID got? e.x. Where is this GUID got from?
1
vote
2answers
818 views

Is it possible to create a List Definition project with multiple custom content types, pushed to several sites at once?

There's plenty of documentation online on how to configure a List Definition project to create a single list using a custom content type, but how does one go about creating a project that contains ...
1
vote
1answer
4k views

Add a last modified date column for each row in Sharepoint 2010 list

I have a list where I have some columns, my requirement is that I need to add a column, which will update the last modified date for each row. That is if I edit one row today, add today's date to ...
1
vote
3answers
682 views

Define contenttype with list

I have defined my list definition as following: <List xmlns:ows="Microsoft SharePoint" Title="Requests List Definition" FolderCreation="FALSE" Direction="$Resources:Direction;" ...
1
vote
1answer
472 views

ContenTypes on List Definition not added

I've an ListDefinition with some references to existing Content Types (provided by CTH) but when the list is created the content types are not added. elements.xml <Elements ...
1
vote
1answer
721 views

Lookup column of type “User” showing #ERR

I've defined two list definitions and instances in a feature in VS2010. One list only contains a required field "Employee" which is of type User. The second list has two fields, a simple text field ...
1
vote
1answer
1k views

List Templates and Custom Contenttypes missing document template on list creation

I want to create a new document library definition for general use in our SharePoint environment. This new list has some predefined content-types. Users will add this list themselves one or more times ...
1
vote
1answer
437 views

Using an imported list template's (build in SP designer) xml as the basis for a new list definition in VS

I'm a SP 2010 beginner (although a long time ASP.NET developer) and I thought a good learning exercise would be to: Create a list template in SP Designer Import that list into VS 2010 Create a new ...
1
vote
1answer
355 views

How do I set the property for a custom field type that I am using in my custom list definition?

I have a list definition that will have a title, description, and a few picture fields. Each entry in the list will represent a project. I do not like to use the SharePoint hyperlink/picture field ...
1
vote
1answer
936 views

Updating a content type via feature receiver at the list definition level

Problem is I am trying to update a content type (created within a list definition, going into a new list instance) and it is not liking the ID I pass in code. I tried passing JUST the child ID, ...
1
vote
1answer
503 views

Provision list instance with title and description from resources issue

I have created feature which contains list definition and list instance based on that definition. I also added feature resource files to localize it. I created invariant and pl-PL resource files. When ...
1
vote
1answer
500 views

Xml defintion of Field and FieldRef elements and the precedence of attributes

Anybody out there with a good understanding or a good reference of how the attributes that make up a custom list definition apply to the list columns when you define Fields and FieldRefs in multiple ...
1
vote
1answer
200 views

Why can't a Managed Metadata field be sealed?

I am creating a custom list definition that contains Managed Metadata fields (TaxonomyFieldType). These taxonomy fields are !important so users should not be able to delete them through the UI. I ...
1
vote
1answer
507 views

Set Event Recurrence ShowInNewForm programmatically

I have a custom list template based on the "Calendar" default list template with the "Recurrence" field disabled. In my case, disabled means ShowInNewForm, ShowInDisplayForm, and ShowInEditForm ...
1
vote
2answers
34 views

Add custom webpart to AllItems.aspx of list Definition

i have a custom list definition which works fine, i have also made a custom webpart which i would like included on the Allitems.aspx page by default when a list is created from the list definition. I ...
1
vote
1answer
19 views

In List Design View, List is disabled

I have two lists that the List toolbar item (Columns/Views/List) is disabled. Attempting to click does nothing. I've also noticed that when I deploy it, they don't render appropriately. For example, ...
1
vote
0answers
15 views

Content type keeps document properties when overwritting file

A document library we have implemented on our SharePoint 2010 environment is behaving strangely. It has been created using a custom content type with several multi-lookup fields. When a file is ...
1
vote
2answers
97 views

Change default document library

Is there a way i can change the settings on the document library template? There is a column we want to add as standard, so that it is there when they create it in the first place. I am aware I can ...
1
vote
0answers
198 views

Adding values to column filter of a list

Ive created some custom xsl for a view in a project i am working on. One of the columns shows a custom message depending on some date comparisons i am performing against other columns in the xsl. ...
1
vote
0answers
303 views

Sharepoint 2013 custom toolbar in list definition (VS 2013)

i've a problem with the customization of the toolbar in a list definition created in a custom view. I write the following code: <View BaseViewID="4" ...
1
vote
2answers
1k views

Fail to export custom SPList to Excel

Im trying to export a SharePoint-List(created from a custom Listdefinition) to Excel by using the "Export to Excel"-button on the ribbon. It works when im trying with other default SharePoint-lists ...
1
vote
1answer
857 views

Set Enforce Unique Values for Title Field in Custom List Definition

I have custom content type, custom list definition from this content type, and list instance in my visual studio project. I could not set Enforce Unique Values for Title Field. How can i achieve this. ...
1
vote
0answers
458 views

Missing my custom content type in UI List instance

In visual studio I defined some content types. In addition I added each content type to a list definition and created a list instance from each list definition. When I install my solution in ...
1
vote
0answers
41 views

Listdefinitions use Listname as Contenttype

I have a Sharepoint 2010 Foundation, VS2010 and i use the Sharepointfactory(spsf.codeplex.com), if this is important. My typical approach are: I create first some fields, then i use these in a ...
1
vote
1answer
934 views

SharePoint 2013 Document Library Template

I'm in the process of migrating code from SP 2010 to SP 2013. I have a document library (both definition and instance) which is defined via XML in a Visual Studio project. I moved the definition into ...
1
vote
1answer
2k views

Creating a custom EditForm for a document library

I have been following this article: http://ikarstein.wordpress.com/2010/12/29/walkthrough-create-custom-sharepoint-2010-list-form-for-deployment-in-a-visual-studio-2010-project/ I have followed every ...
1
vote
1answer
915 views

An item with the same key has already been added when trying to recover my list using Linq (SPMetal)

I have a problem with my application SharePoint. The problem is that I added a List in my SharePoint site (directly in SharePoint), then I used SPMetal LINQ to generate a File in which I can recover ...
1
vote
0answers
60 views

Same custom button on 2 totaly different lists

Is it possible to have just the same custom button, show on 2 totaly different lits? Because when i use the same type for the lists TemplateType="10777" then the list have the same fields. So i need ...
1
vote
0answers
96 views

How can i enter User information in the Data element of a list instance

For example... <Rows> <Row> <Field Name="ClassName">Programming 101</Field> <Field Name="Attendee">Domain\User</Field> </Row> </Rows> ...
1
vote
0answers
532 views

Creating Custom List Definitions that Use InfoPath Forms - Deploy everything using Visual Studio 2010

I'm trying to create a list instance from a list definition, all from a VS2010 solution and want to have custom InfoPath forms for the list instance. This article keeps popping around in my searches: ...
1
vote
0answers
31 views

How do I import a spreadsheet to create a list, but specify which column should be the “title”?

I'm not a programmer, just a frustrated user. Is there a way for me when I create a custom list by importing a spreadsheet to specify which column should become the "title" for each row in the list? ...
1
vote
0answers
472 views

How should I go about modifying the Discussion Board?

So our client wants a Discussion Board, but wants to change the functionality and look 'n' feel significantly. We want to be able to deploy changes via a VS 2010 solution (farm) and a deployable wsp. ...
1
vote
1answer
213 views

How do you decode the Flag attribute on the List element?

How to decode the Flags attribute of a SharePoint List? What does 4104 mean? <List DocTemplateUrl="/SiteAssets/Forms/template.doc" DefaultViewUrl="/SiteAssets/Forms/AllItems.aspx" ... ...
0
votes
3answers
161 views

Create a document library from custom list definition with powershell

I have a question regarding the creating a Document Library based on the custom list definition, how can I do that using the PowerShell. Thanks
0
votes
1answer
2k views

Trouble with custom Sharepoint List views created in Visual Studio 2010

Probably something simple but i'm not sure what the problem is here. I create several custom list views in my schema.xml for my list. I deploy and go in sharepoint designer to make sure everything ...
0
votes
2answers
259 views

create list definition under sub site in site definition

I want to Create List Definition & List Instance under particular Sub-site.It can not been seen under site Collection.
0
votes
2answers
434 views

deploy a list with specific item-level permissions in ListAdded event receiver method

I have a certain type of custom list I have designed in my 'solution.wsp', that, whenever an instance of it is instantiated, it should have at the outset a specific Item-Level permission. To further ...
0
votes
1answer
567 views

How to keep synchronized Deployed Custom List with List Definition

I'm wondering, if there is any way to keep synchronized deployed custom list with it's list definition in Visual Studio. To make it clear, and avoid confusion let me bring en example. Let's say I have ...
0
votes
2answers
337 views

How to tell all the differences between 2 SharePoint lists?

I have 2 SharePoint servers (2007) a staging and production server. Both have the same list but now that the test server is undergoing a few changes, the fields are somewhat out of sync. Is there an ...
0
votes
1answer
75 views

ListDefinition and ListInstance failures with custom content type

In VisualStudio 2012 I have a custom content type that I want to use in a ListInstance. When I create a ListDefinition or ListInstance using VisualStudio and add my ContentType I get feature ...
0
votes
2answers
878 views

“Value does not fall within the expected range.” After adding a column in a existing list

I updated a list of mine by adding a column. After this update I receive the following error "Value does not fall within the expected range" when I try to get the data in the colum. This is the code ...
0
votes
1answer
1k views

List validation on multiple fields?

I would like to validate a list item so that if one field is true, then another must be completed. If the first one is false, then it can be ignored. =(([Start Deferment]="Specific Date") AND [Start ...
0
votes
3answers
3k views

Display Calculated Field as link

in a custom ListDefinition I used a calculated field to format a Text into an URL. I'm developping in VisualStudio2010 for SP2010. Here is my ListDefinition: <Fields> <Field ...
0
votes
2answers
1k views

ListInstance with CustomSchema breaks OnQuickLaunch

I have a solution in which one of the features defines a collection of External Content Types. The solution also has a feature that creates an External List Instance for accessing one of the ECTs. ...
0
votes
1answer
797 views

Make field editable in List, EditForm?

[N00b to SP, sorry! Inherited an SP2007 site] I have a List in SP2007, when I Edit an item, it opens up the EditForm.aspx page, however, some of the fields are not editable. I now need to make one ...
0
votes
1answer
394 views

How to add header to AllItems.aspx

Wondering if and how this is possible. I have a Document Library list definition that I use to create several lists. I want to modify the AllItems.aspx so that there is a header with the lists name ...