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
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 ...
1
vote
2answers
582 views

Custom list definition using OOB Site column causing problem

I have a custom list definition where i want to use the OOB URL site column plus a site column that i created in another list definition. When i do it and try to display the All Items view it says it ...
1
vote
1answer
4k 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
2answers
384 views

Limiting List Permissions Programmatically

Scenario: When a User (let say Controller 1) creates a site using a site definition, "which already has a Custom List definition in it and different other things(like lists, webparts)" Custom List: ...
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
1
vote
1answer
144 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
3answers
311 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
962 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
6k 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
1answer
23 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, ...
1
vote
2answers
151 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
954 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
516 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
876 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
2k 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
443 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
772 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
1k 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
569 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
595 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
218 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
523 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
1answer
539 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
0answers
24 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" ...
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, ...
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 ...
1
vote
2answers
196 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
323 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
413 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
2k 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
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. ...
1
vote
0answers
525 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
43 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
1k 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
3k 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
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
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
102 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
576 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
539 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
242 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
242 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
2answers
379 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
496 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
727 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
358 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
310 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
263 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
2answers
417 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. ...