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

“Value does not fall within the expected range.” After adding a column in a existing list

I updated a list of mine by adding a column. After this update I receive the following error "Value does not fall within the expected range" when I try to get the data in the colum. This is the code ...
0
votes
1answer
2k views

List validation on multiple fields?

I would like to validate a list item so that if one field is true, then another must be completed. If the first one is false, then it can be ignored. =(([Start Deferment]="Specific Date") AND [Start ...
0
votes
3answers
3k views

Display Calculated Field as link

in a custom ListDefinition I used a calculated field to format a Text into an URL. I'm developping in VisualStudio2010 for SP2010. Here is my ListDefinition: <Fields> <Field ...
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. ...
0
votes
1answer
308 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, ...
0
votes
2answers
1k views

ListInstance with CustomSchema breaks OnQuickLaunch

I have a solution in which one of the features defines a collection of External Content Types. The solution also has a feature that creates an External List Instance for accessing one of the ECTs. ...
0
votes
1answer
460 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
948 views

Make field editable in List, EditForm?

[N00b to SP, sorry! Inherited an SP2007 site] I have a List in SP2007, when I Edit an item, it opens up the EditForm.aspx page, however, some of the fields are not editable. I now need to make one ...
0
votes
1answer
440 views

How to add header to AllItems.aspx

Wondering if and how this is possible. I have a Document Library list definition that I use to create several lists. I want to modify the AllItems.aspx so that there is a header with the lists name ...
0
votes
1answer
242 views

Me Filter Issue

I have added the following field to a custom list definition based on custom content type. <Field Type="User" DisplayName="Line Manager" List="UserInfo" Required="FALSE" ...
0
votes
1answer
280 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 ...
0
votes
2answers
822 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 ...
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
733 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 ...
0
votes
1answer
571 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 ...
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 ...
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 ...
0
votes
1answer
48 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
0answers
30 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
63 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 ...
0
votes
1answer
104 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
588 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 ...
0
votes
1answer
172 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. ...
0
votes
1answer
534 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
122 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
85 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 ...
0
votes
0answers
477 views

create list using CustomSchemaXml from client object model

I'm using Client Object model of SharePoint 2010. What is the property CustomXmlScheme in list creation? MSDN say nothing about it. It seems not working. I'm using this code: string xml = @" <?xml ...
0
votes
1answer
1k views

Can't see any custom fields when 'adding new item' to custom list

As title says, I can only see the 'Title' field when adding a new item to my custom list. Any ideas? I've double checked the field definitions and checked the field references are in both default ...
0
votes
1answer
100 views

Help to understand content type

Given the below definition of a content type: <List xmlns:ows="Microsoft SharePoint" Title="Algorithm Types List Definition" EnableContentTypes="TRUE" FolderCreation="FALSE" ...
0
votes
1answer
237 views

Programmatic Setting List Options

In the list definition, is there a way to programmatically set the "Dialogs" parameters? I see available parameters such as OnQuickLaunch, as well as the parameters listed: ...
0
votes
1answer
76 views

Creating a New list based on previous List Definition

I have a List definition with following files Feature.xml <?xml version="1.0" encoding="utf-8"?> <Feature Id="GUID" Title="abc" Description="mmmmmmm." Version="1.0.0.0" ...
0
votes
1answer
262 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 ...
0
votes
1answer
61 views

Limiting a List (Listview webpart) to a single User

I have a List Definition and I want to limit only 1 specific user to "add new items" to this list, oh by the way its a custom list definition, I was wondering what are the possible ways to accomplish ...
0
votes
1answer
51 views

Creating a Copy of Site Definition with a different Name

I have a site definition folder with following structure, XML default.aspx MasterPageabc.master masterpageabcajax.master In XML folder I have "ONET.XML" and I looked into this file, and realized ...
0
votes
1answer
1k views

Can fieldrefs in content type definitions change the internal name of a site column?

I have a content type that references a built-in site column like this: <Elements ...> <ContentType ...> <FieldRefs> <!-- a reference to the built-in ...