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
2answers
1k views

Issue adding description column to custom document library in VS2010

I want to add a description column to my List definiton. However when i do it the column does not show up on the EditForm dialog so that you can actually set the description. Can someone look at the ...
2
votes
1answer
916 views

Composite unique indexes in Sharepoint 2010

I'm looking for something like Composite unique indexes in Sharepoint 2010. I have found that I can make some field in list unique. But how to make unique index composed from two or more cols in list? ...
1
vote
1answer
5k 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 ...
0
votes
1answer
279 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
420 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
1answer
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
2
votes
1answer
2k 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
980 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
0answers
508 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
552 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 ...
2
votes
2answers
7k 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 ...
1
vote
1answer
537 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 ...
0
votes
1answer
566 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 ...
3
votes
2answers
6k 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?
1
vote
1answer
228 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
5k 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 ...
2
votes
1answer
2k 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 ...
2
votes
2answers
1k 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 ...
1
vote
1answer
516 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 ...
0
votes
1answer
373 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
721 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 ...
2
votes
1answer
552 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, ...
1
vote
1answer
209 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 ...
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 ...
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 ...
2
votes
3answers
5k 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 ...
1
vote
1answer
4k views

List Definition and List Instance in SharePoint 2010

What is List Definition and List Instance in SharePoint 2010?
0
votes
2answers
351 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 ...
2
votes
0answers
512 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 ...
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 ...
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
516 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 ...