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

4
votes
1answer
990 views

How to create List Definition based on Wiki Page Library in Visual Studio 2010

While creating Wiki Page Library from the browser (Site Actions->More Options->Wiki Page Library) is easy, doing it form Visual Studio not so much. When I create new ListDefinition in Visual Studio ...
3
votes
1answer
44 views

Updating fields display names in Schema.xml of list definition is not working

I have created a list and deployed it to the SharePoint site. (It is SharePoint 2010 on-premise, but I think the process is same the for 2010 and 2013) Later on client wanted to change the display ...
3
votes
1answer
50 views

Lookup column field is empty after item is added in list (l created using list definition)

This is the code I used in Schema.xml <Field Name="employee" ID="{44678273-e07d-43de-8096-dc2ce3c105cf}" DisplayName="employee" Type="Lookup" List="Lists/Employee" ShowField="Address" ...
3
votes
1answer
2k 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. ...
2
votes
1answer
184 views

How to hide inherited fields in the custom list definition?

I have defined a Site Content Type which has inherited fields (inherited from parent content type). Also, created new custom list definition that uses the content type created. I want to hide the ...
0
votes
1answer
119 views

How to Use List View Web Part in List Definition / List Template?

Currently trying to import List View WebPart, and use that Code in List Definition/List template. So For That added List View Web Part Manually on a Publishing Page,Trying To import web Part,But There ...
0
votes
1answer
533 views

Custom Assets Library List Definition

I need to create a custom list definition for "Asset Library" in SharePoint 2013. Eventually i need to add my custom content type to it. Hence the reason for the custom list definition. The custom ...
2
votes
0answers
649 views

user field in a list definition thorough VS code (schema.xml)

I create a user field in a list definition thorough VS code (schema.xml). <Field ID="{0A9DDA0E-1EB8-467B-AFFA-AFB04057FCF7}" Name="ChannelManager" DisplayName="Channel Manager" StaticName="MyUser"...
2
votes
0answers
774 views

create list using CustomSchemaXml from client object model

I'm using Client Object model of SharePoint 2010. What is the property CustomXmlScheme in list creation? MSDN say nothing about it. It seems not working. I'm using this code: string xml = @" <?xml ...
2
votes
0answers
2k views

Pagination and group by for Custom views created using list definition not working

I created a list using the list definition + list instance from VS 2010. I also created the list views for the list. When I add Group by and paging properties for custom views other than All Items ...
1
vote
0answers
97 views

Creating List definition for Survey list in SharePoint 2010

I wanted to create a Survey List definition through visual Studio. But when i tried creating it - there was no option available to create list definition for Survey List Please let me know how to go ...
1
vote
0answers
45 views

AllItems customization

I have a custom list definition where I have defined a view with BaseViewID = 1 (AllItems.aspx) <View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,...
1
vote
0answers
30 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
0answers
468 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
719 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" Name="f879f300-9dc7-4bcb-9e16-7dee86a118d7"...
1
vote
0answers
737 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
51 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
0answers
1k 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
61 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
110 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
652 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
35 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
616 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. ...
0
votes
0answers
17 views

Update a (custom) EditForm for a list

(sp2010, farm solution) I have a list defintion with a custom newform.aspx, MyNewForm.aspx below. It has an error in it and needs to be updated. The only way I have successfully got it updated was ...
0
votes
0answers
19 views

Creating a Custom List Definition and overwriting DisplayTemplate OOB Fields

We have a custom List Definition based on a OOB Task ContenType, then we need a custom names for some existing columns like Title, Body, etc. By the way, this is the Fields section into schema.xml: &...
0
votes
0answers
22 views

Sharepoint List Definition with custom column

Im working on Sharepoint 2010 project. I created farm solution with some list definitions. Now i would like to use Autocomplete Lookup Field in one of list definition. But if I look on Schema.xml ...
0
votes
0answers
78 views

List instance in not created after deploying a feature which has this list definition and instance

I have a site definition: inside that I am creating a list definition & instance, one visual web part. I am creating a feature and putting all these list definition, instance and visual web part ...
0
votes
0answers
90 views

Is it possible to create a custom list in a public facing website on SharePoint Online O365

I am trying to figure out of it is possible to programmatically (list definition/instance via solution) create a custom list in a public facing website on SharePoint Online. I have managed to create ...
0
votes
0answers
16 views

why is it a must to replace the type attribute value when creating list defn and instance via VS?

We have created a VS project and added to it a content type and a list defn that uses this content type. We have selected the content type and the check box while creating the list definition to auto ...