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.
0
votes
2answers
41 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
1answer
312 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 ...
0
votes
1answer
1k 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
25 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
16 views
missing content type name and description in the new item dropdown
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
321 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
590 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 ...
0
votes
2answers
356 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;" ...
2
votes
2answers
374 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
624 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 ...
0
votes
1answer
42 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 ...
1
vote
1answer
838 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
3answers
133 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
0answers
70 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
1answer
30 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
38 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
2answers
494 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
2answers
206 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 ...
0
votes
2answers
682 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. ...
1
vote
2answers
227 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 ...
0
votes
0answers
66 views
Redeploying ListInstance in Sandbox Solution retains old fields. Help!
I originally created a sandbox solution. Created a elements file to hold all the Fields. I created 5 fields. I then created a content type to hold all 5 fields. I then created a List definition and ...
0
votes
0answers
299 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
228 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, ...
3
votes
3answers
94 views
Is a ContentType worthwhile/necessary in this situation?
I'm creating a custom List Definition. I've previously been told that I should create a ContentType, and a ListDefinition from that. But this seems to mean a lot of duplication in my project files. So ...
1
vote
1answer
265 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
0answers
45 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 ...
2
votes
1answer
173 views
Add content type from sandboxed solution to list definition (farm solution) does not work
I'm using a sandboxed solution from a 3rd party vendor which contains some site columns and a site content type.
I want to add this content type to my document library definition in CAML.
But when I ...
0
votes
0answers
22 views
CustomRibbon not displaying in inbuilt List created
I have created my CustomRibbon button in my project.
When I deploy it, it is showing me in the CustomList which is created from Site, but not displaying in the List which is created from VisualStudio ...
0
votes
2answers
375 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 ...
4
votes
2answers
4k 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
644 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 ...
1
vote
1answer
4k 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 ...
1
vote
0answers
39 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
0answers
378 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 ...
0
votes
1answer
67 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"
...
1
vote
1answer
482 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
398 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 ...
3
votes
2answers
1k 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
1answer
642 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 ...
0
votes
1answer
2k 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
0
votes
1answer
557 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 ...
3
votes
1answer
429 views
Using part of date in CAML query
I want to create new view for my list. The list contains a column called Year, which is a number and contains, as name suggests, year. Eg.:
2012
2011
2010
2009
I would like create a view, where I ...
1
vote
1answer
302 views
Change Add new Item Text
I've developed a ListTemplate via ListDefinition in SP 2010 using Visual Studio. Nearly everything works fine, but the Link at the bottom of my ListInstance is missing the Text "Add new Item". Is ...
0
votes
1answer
90 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
46 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
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 ...
0
votes
1answer
85 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
3answers
1k 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 ...
3
votes
3answers
2k views
Trying to hide the title column the sharepoint way
I am currently just messing around with defining lists via the elements.xml
Content Type
<?xml version="1.0" encoding="utf-8"?>
<Elements ...
0
votes
1answer
187 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 ...


