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

0
votes
0answers
32 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 ...
1
vote
1answer
1k 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
615 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 VS2010 I use ...
7
votes
2answers
8k 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
580 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
269 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
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
0
votes
0answers
9 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 ...
1
vote
1answer
289 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
22 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, ...
0
votes
1answer
65 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 ...
3
votes
2answers
571 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
3k 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
23 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" ...
0
votes
1answer
469 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" ...
0
votes
1answer
319 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
43 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" ...
0
votes
0answers
36 views

Create custom document library based on default document library

I created a custom content type that is used to define an InfoPath form template. I also created a custom library template to store the instances of the form. For the most part everything is working. ...
0
votes
1answer
89 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
3k 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 ...
1
vote
2answers
132 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
912 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
23 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
26 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
264 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
171 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
684 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
125 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
220 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
53 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
5k 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
33 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
137 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 ...
3
votes
1answer
520 views

Sync Disabled for Document Library created with custom list definition

In our project we are creating custom list definition and list instance based on that definition, as follows: Elements.XML in List Definition: <ListTemplate Name="MyListsDef" Type="10000" ...
2
votes
1answer
421 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= ...
0
votes
2answers
256 views

Unable to hide the title field of content type

I have created a custom content type and applying to the list, I want the built in title column to be hidden from the all forms. I searched over the internet I found some solution but I am able to ...
0
votes
1answer
111 views

Need help with list definition with content types

I have a custom content type based on document content type, and I added some columns to this content type. I referenced this content type from list definition like this: <ContentTypes> ...
0
votes
1answer
641 views

Online Sharepoint : Custom content type not included by default in List definition

Requirement : Webtemplate with custom document libraries along with custom content types to be used in sharepoint 2013 online created the web template and content type, both are working fine in ...
2
votes
1answer
186 views

Hiding Fields in Forms in List Instances Based on List Definitions

I have a list definition that I've created in XML, and multiple list instances based on that definition. On the base list definition I am hiding certain fields from the new item form in the list ...
1
vote
0answers
392 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" ...
0
votes
2answers
354 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.
1
vote
2answers
182 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 ...
0
votes
2answers
385 views

Rename “Title” column on multiple lists

I have 3 or 4 lists where the title column is not required. Hence I started renaming the Title field to any other text field that I have in the list per the below blog. ...
1
vote
0answers
298 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. ...
0
votes
1answer
186 views

missing content type name and description in the new item dropdown [duplicate]

I have created a content type based on the oob item content type, list definition and a list instance and they are activated via a web scoped feature. It all works as expected apart from one thing. ...
1
vote
3answers
305 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?
0
votes
1answer
126 views

View and Edit SP list from another site with Sharepoint 2010?

I have been searching for a way to view my SP list into another site. I want the members to be able to delete items so the list changes on my site. I tried to create a view of the list and created a ...
0
votes
1answer
86 views

Permission only get list information from admin site to user site Sharepoint 2010

I discovered a problem while I was testing my webparts this morning. In my project I have an Admin Site and a user site. The user site is supposed to only be shown by users. It contains a webpart menu ...