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

3
votes
1answer
8k views

Custom list definition - fields in Elements.xml and Schema.xml

I'm creating a custom list definition in SharePoint 2010 by following this article. The tutorial is OK and it works. There is a thing that I don't understand though. Why do I need to insert the ...
0
votes
1answer
292 views

Custom List Definitions - Remove the standard create item menu option

I'm creating a custom list definition in SharePoint 2010 by following this article. It works well but I need to remove the default create list item option and only keep that for Bug Item. How can ...
1
vote
2answers
441 views

Best practices for updating list template schema files in SharePoint

I have a requirement to update the schema files of a list template which modifies the options available to the fields. But, when I am updating the schema file the options for the already defined ...
1
vote
2answers
2k 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
2
votes
1answer
3k views

How to handle 'Feature for list template is not installed in this farm' for custom lists

I have a feature in which I have a custom ListDefinition. Within the definition, I also have a ListInstance based off of the definition. When installing and activating the feature, these lists are ...
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
597 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 ...
8
votes
4answers
612 views

Save metadata on this list as social tags

On the UI, for a document Library settings, under "Enterprise Metadata and Keywords Settings" there is an option to "Save metadata on this list as social tags" Is there a way to activate this, ...
1
vote
0answers
548 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
2answers
913 views

change attributes of a site column when using in list definition

i want to know how to change Required Property on site column when it is consumed in a list definition. like i have deployed a site column <?xml version="1.0" encoding="utf-8"?> <Elements ...
2
votes
2answers
6k views

Programmatically creating a list

I have created a new list definition following the steps listed here: http://msdn.microsoft.com/en-us/library/gg276355.aspx I can create new lists using this definition in the browser with out any ...
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 ...
5
votes
2answers
7k 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?
2
votes
1answer
3k views

Error occurred in deployment step 'Activate Features': Could not find any recognizable digits

Error occurred in deployment step 'Activate Features': Could not find any recognizable digits. Dos anyone know what this error message means? I'm trying to deploy a feature containing some, content ...
1
vote
1answer
620 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 ...
0
votes
1answer
375 views

External CT Related Lists - Examples - CAML - LINQ to SharePoint

I'm trying to return related data via External Content Types. I was wondering which is better to use, CAML queries or LINQ to SharePoint? I'm fine with writing CAML queries besides the relating part ...
0
votes
1answer
780 views

List Schema Modification Effect

I have created a list using schema.xml and then i have created a list instance. later on i need to to add one column in the list schema which is not shown in the existing list instance. any idea how ...
1
vote
1answer
223 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 ...
3
votes
2answers
2k views

How do I deploy custom list edit forms in the sandbox?

I'm creating a List Definition for use on 2007, 2010 (Sandboxed), and 2010 (unrestricted) that will need custom new and edit forms; unfortunately the Sandbox specifically excludes custom application ...
7
votes
2answers
9k 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 ...
2
votes
0answers
1k 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
1answer
245 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" ... ...
2
votes
2answers
2k views

List Schema : Title Field ID

When creating custom List definitions, what should the ID value of the "Title" field be? At one point I was told I should be using the OOTB ID (fa564e0f-0c70-4ab9-b863-0177e6ddd247) as it caused ...
0
votes
1answer
590 views

List definition simply won't work

I have created this list-definition which I then refer to in a site-definition. When I then create a new site with the site-definition, the list gets created too on the site, but all the custom fields ...
2
votes
1answer
583 views

List instance not working after solution retraction

I have a project with a Content Type A list definition based on the Content Type A list instance When I deploy this solution, it all works fine. To my knowledge, when this solution is retracted, ...
2
votes
2answers
8k views

Add fields to New/Edit form with custom list definition (document library)

I'm using Visual Studio 2010's template "List Definition" to create a new list definition for a document library. Nothing fancy at all - I only want to add a couple of fields to the list and to the ...
9
votes
3answers
5k views

How to disable launch modal dialog in list definition schema.xml?

I have a sharepoint 2010 site template. The site template activates a feature that deploys several lists. Some lists need to open the new/edit/display forms in full page mode. Is there a way to ...
1
vote
1answer
4k views

List Definition and List Instance in SharePoint 2010

What is List Definition and List Instance in SharePoint 2010?
3
votes
3answers
2k views

Display an SPFieldUrlValue property from a BCS Model

I have a pretty simple BCS model: public Guid Id { get; set; } public SPFieldUrlValue Url { get; set; } public string Description { get; set; } public string Owner { get; set; } public DateTime ...
0
votes
2answers
370 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 ...
1
vote
1answer
531 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 ...
2
votes
0answers
520 views

ListInstance not firing all item event receivers [closed]

I have a feature that defines a number of list instances to provision whenever a new site is created using a particular site definition. The list template for one of these instances has an item event ...
2
votes
3answers
6k views

Creating a document library list definition in visual studio 2010

In visual studio 2010 I create a new empty sharepoint project. I then add a new list definition selected document library as the type of list. It generates the def and I then change the type in the ...
2
votes
2answers
3k views

Getting an existing list definition in sharepoint 2010

I have created a list in sharepoint 2010 and want to somehow export the list definition for use in a feature in visual studio 2010. What is the best approach to getting the list definition?
2
votes
2answers
1k views

Changing site/list definitions post-production

There have been several questions asked on this site regarding the best way to provision sites and lists (definition schemas vs. templates vs. the object model vs. the web interface vs. provisioning ...
3
votes
0answers
519 views

Custom list defintion with OrderedList property [closed]

I've created a custom list in SharePoint 2010 from a custom content type (inherit from item) and I would like to give the users the option to order the items in this list - similar to how users can ...
0
votes
2answers
555 views

How do I create a Forms Library feature with a custom list definition?

I'm working on a prototype SharePoint site at the moment where a forms library has been created with an InfoPath form published to it. A content type has not been used, the form is bound directly to ...