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
991 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 ...
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 ...
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. ...
3
votes
1answer
33 views

How to package a workflow with a list definition in a Visual Studio feature?

Here is the scenario: I have created a custom list definition in Visual Studio 2015, and I'm packaging it in a Site scoped feature (Farm solution). I have also created an event receiver that will ...
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: &...
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" ...
6
votes
4answers
10k views

Set “Allow management of content types?” set to “Yes” within a Content Type or List Definition

How do you set "Allow management of content types?" to "Yes" within a Content Type or List Definition?
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
1answer
81 views

Two SharePoint lists with different names, but same contents error

I have written a SharePoint solution which should create two SharePoint lists with completely different list definitions. If I deploy the solution, I get a strange behaviour. There are two different ...
1
vote
1answer
155 views

Change Field's DisplayName in a List in view

I have view with following fields <ViewFields> <FieldRef Name="DocIcon" /> <FieldRef Name="Title" /> <FieldRef Name="Modified" /> </ViewFields>...
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
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 ...
1
vote
1answer
2k views

create a custom ListDefinition based on a custom Content Type

I have created a custom content type that inherits from the Basic Page content type. I want to create a custom ListTemplate that will store pages, the library must use my custom content type I ...
0
votes
1answer
1k views

Create Calendar view using list definition with visual 2010 (sharepoint 2010)

I'm a newer in sharepoint 2010 .I want to create calendar view for my list definition using list definition. I think i need to do something in schema.xml file, but i can't find any document talk about ...
0
votes
1answer
534 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 ...
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 ...
4
votes
3answers
5k views

error activate feature list template/instance in site definition

i've created a SiteDefiniton project and a Sharepoint ListDefinition project. In the SiteDefinition I created a listinstance of my template, but in deployment the activation of the ListInstanceFeture ...
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 ...
3
votes
2answers
728 views

Using part of date in CAML query

I want to create new view for my list. The list contains a column called Year, which is a number and contains, as name suggests, year. Eg.: 2012 2011 2010 2009 I would like create a view, where I ...
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 ...
13
votes
2answers
15k views

How can I export a schema.xml file for a list from a SharePoint site?

I've been troubleshooting my schema.xml file for a list definition and getting more and more frustrated. So I thought, "Hey, I'll just get it to look right in the UI and then export that and compare ...
0
votes
1answer
359 views

Field required in Content type, but not in my list

I don't know why but when I try to bind a list with my content type, fields having a status to "Required" in my content type are not Required at all in my List. I'm binding the field with this ...
1
vote
2answers
3k 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
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 ...
2
votes
1answer
6k views

Error occurred in deployment step 'Activate Features': Cannot complete this action

In my SharePoint 2013 solution (created from visual studio), I created a project that contains all the artifacts form my solution: I put in this project custom fields, custom content types as well as ...
1
vote
1answer
139 views

Redeploying List Definitions and preventing data loss

In the initial release, I had 2 solutions: one is timer job and the other is event receivers/lists. In hindsight, the event receivers/lists should've been separated as well. In the newest iteration, ...
3
votes
2answers
833 views

How to make Add new Item link to navigate to Custom Form

I have made Custom Content Type, and List Definition from that Content Type. What I'm trying to do now, is create custom display/edit/add forms for List Item, and when user clicks on Add New Item, ...
0
votes
1answer
4k views

Error Message - Field type Int is not installed properly. Go to the list settings page to delete this field

I saw similar post on SO but it didn't worked out for me. I've created a List Definition project in VS. On one of the fields I set type to Int instead of Integer, and tried to deploy List Definition. ...
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,...
0
votes
1answer
598 views

SPMetal, lookups without EntityRef

I defined site definition with two content types and two list definitions. I have lookup site column <Field ID="{4318c52f-11c6-129a-b832-5ab22450b17c}" Type="Lookup" List="Lists/...
0
votes
1answer
535 views

List item field values incorrect in AllItems view, but correct in detail view

I've created a custom content type and a list definition and list instance based on it. In a web part, I add an SPListItem to the list, set its field values, and then call item.Update(). However, ...
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"...
0
votes
1answer
1k views

How to configure Currency field?

How to set currency symbol for a field (in list definition)? <Field ID="{1706A5C3-AC44-4685-A075-6019FAF9D940}" Name="Budget" DisplayName="Volumen (in €)" Type="Currency" /> SharePoint is in ...
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 ...
3
votes
3answers
7k views

How to modify width of standard dialog form sharepoint 2010

Please, help me! I need to modify width of standard dialog form for adding element into library. If I click to ribbon button for adding element, form opened with width=402px: <div class="ms-...
1
vote
2answers
372 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
3answers
1k 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;" Url="Lists/...
1
vote
1answer
35 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, ...
2
votes
1answer
1k views

create custom sharepoint new form in visual studio

I am creating a custom list inside a feature receiver. I would like to create a custom New Form for my list. So, the list is not created via List definition. Can anyone guide me how to create the ...
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 ...
0
votes
1answer
832 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 ...
6
votes
1answer
489 views

List Template showing the wrong image

I've created a list definition from a content type in Visual Studio 2010 for SharePoint 2010. They are based off a custom list. When I deploy locally, I see the correct image in View All Site Content ...
2
votes
1answer
734 views

Custom list definition shows title even if it is not declared in schema

I created an own list definition with list instance in the project. I described all the fields in the schema which should be shown. ANd it is ok, after deploying when i visit the list it show all mine ...
3
votes
1answer
364 views

Importing a list from one visual studio project to another

I have sp project (say project a) in visual studio that is supposed to deploy the sp solution to my website (say that its running at http://localhost:xxxx/). My goal would be to add the list ...
0
votes
3answers
496 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
2
votes
2answers
82 views

Why do we use list definition? When we need to use site definition in SharePoint?

I have a question for that need know absolution from this invoke. why do we use list definition? when does useful for site definition in SharePoint?
3
votes
2answers
10k views

How can I provision a list with a calculated field?

I am trying to create some fields, a content type, a list definition and a list instance in Visual Studio. All of my fields are working, showing up in the list etc. except for calculated fields. What ...
2
votes
1answer
58 views

Is there a relative URL for files hosted in the TEMPLATE\FEATURES directory?

Is there a relative URL for files hosted in the TEMPLATE\FEATURES directory? What I'm trying to do is re-provision data every time my feature is activated without deleting the SPList. The idea is to ...
1
vote
1answer
310 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 listdefinition....