Represents a field in a list on a SharePoint Foundation Web site.

learn more… | top users | synonyms

2
votes
2answers
451 views

Create custom SPFieldLookUp that allows multiple values

I am pretty new to creating a custom field tupe and I have recently come across a need to create a custom SPLookUPField that allows multiple values. The main requirement is to change the way the ...
1
vote
2answers
277 views

Using PowerShell how do I change the column ordering for a SharePoint List

Been trying to search for the answer to this, what I need to do is re-order the fields of a SharePoint list and propagate that change down to 300+ sites (should have used a content type, but oh well) ...
3
votes
1answer
44 views

Changing enterprise keywords column title programatically

I'm trying to rename an enterprise keywords column in a specific list of a subsite. In a Feature Activated event receiver i tried to set the column's display name by setting its title using the ...
1
vote
1answer
242 views

Get all lists and sites using a given site column in sharepoint 2007 using powershell

In other words, is there a SPField.ListsFieldUsedIn() equivalent in SharePoint 2007? Ref: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfield.listsfieldusedin.aspx
1
vote
1answer
127 views

Custom field type - how inherit attributes from base field type

I need to create custom field type which must inherit ATTRIBUTES from inherited field type (e.g. Note). I know how to add custom attribute on my custom type (using fldtypes...xml, custom ascx,...) ...
0
votes
1answer
20 views

Dates and times in Properties vs Fields

I'm trying to roll my own archiver for SharePoint. I always try to let the underlying object serialize itself. Only when it fails do I try to use .ToString(). Anyway, while inspecting the Properties ...
0
votes
1answer
56 views

How to set a UserMulti field via a UserField Control?

I have a list similar to the usual Tasks Sharepoint List and I introduced the field assigned to as a multi user field like this (I have read somewhere that with Mult option should always be set to ...
0
votes
1answer
134 views

SPFieldCollection TryGetFieldByStaticName bug?

I had expected that if TryGetFieldByStaticName succeeds and returns a value, there would be an SPField in the item that has a static name equal to what I used in the TryGet... call, but no? I.e. can ...
0
votes
1answer
89 views

add field directly to a Document library or via a Content Type

What is differents between adding a field (Site column) directly to a document library or via adding the field to a content type and then add this content type to the list? Because fields directly ...
0
votes
1answer
345 views

Modifying XSL for multi lookup field

I'm trying to create custom XSLT for a multi lookup field, based on this article. When changing disable-output-escaping to yes I can see the html I want to modyify: <a ...
0
votes
1answer
133 views

ContentType.FieldLinks.Add() issue with hidden and required

I have a feature that does the following in the feature activation Code : Creates a new SiteColumn (Type=Text, Hidden=False and Required =True) Set the french version of the Name (using ...
0
votes
1answer
121 views

Custom Field PropertySchema Type=User

I have a custom field in my SP Project. In my .xml file, I have a propertySchema and a user field inside it. Currently the field does not accept multiple users/groups. How can I change that? I ...
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 ...
0
votes
1answer
87 views

How to identify if the list field come from web or site col?

I have a following task in sharepoint 2007 to identify if the list fields come from the parent web or site col, this i'm planning to do with a powershell script. So what I want to do is to iterate ...
0
votes
1answer
131 views

How to get rid of a broken SPField? Field is not updatable / deletable

I have a broken field in my site collection that is not updatable / deletable. Every change that I try to make on the field does nothing - the field is in the same state as before. I tried it via UI, ...
0
votes
1answer
709 views

BaseFieldControl in SPControlMode.Display not display correct values

I'm creating my own Display Form based on a view in a webpart. I'm getting the list (Document Library), and view, and then iterating through the fields, and creating a BaseFieldControl and then adding ...
1
vote
0answers
23 views

External lists: Field GUIDs always empty?

I want to turn an external list into a DataTable using the ID/GUID values of external list's Fields as the DataTable column names; however, I've noticed for the external list I'm using, all of the ...
1
vote
0answers
47 views

SPListItem.Update Not working

So I have this really simple function which updates a couple of fields on two different lists (one is a document library) The thing is on the document library does not updates any of the fields I need ...
1
vote
0answers
42 views

PowerShell error when comparing the fields titles

I've wrote a simple script which will loop through all the webs in all the site collections store all the field id's into the hashtable next with their display names. Later interating throught lists ...
1
vote
0answers
121 views

using calculated field in calculated field

I have field1, field2, field3, calcfield1, calcfield2, complexCalcField1 Calcfield1, Calcfield2 uses field1, field2 and field3 for its values. ComplexCalcField1 uses Calcfield1 and Calcfield2 for its ...
0
votes
0answers
15 views

Adding SPFieldCalculated to a Document Library not working

I am using this piece of code to copy Fields from Document Library "A" to Document Library "B". I have only one issue when adding a calculated. This is the code. private static string ...
0
votes
0answers
14 views

Retrieving the SPLookupFieldCollection with particular ID's

The situation is following: I have this kind of string = 58;#value;#59;#value2;#60;#value3;.... So as you see this is just if i do: SPFieldLookupValueCollection collection= new ...
0
votes
0answers
99 views

How to save data in ItemFieldValue of custom lookup field type?

I have created custom field type inherited from SPFieldText successfully. I save a data in the item value as string of the next format: "id;#title". Now I need to convert the base type from ...
0
votes
0answers
80 views

SP 2010 Metadata and Crawled Properties

I'm creating a new custom list in code and when complete, the list looks fine. When I look in the Metadata section, in Crawled Properties specifically, I see most (if not all of my columns) under the ...
0
votes
0answers
42 views

Custom SPField error when re-deploying or upgrading WSP

I have created a custom SPField and is working well. But if I retract/deploy or if a upgrade the solution, I've got this error when accessing the item: SPField Field type is not installed ...
0
votes
0answers
16 views

owner field value disappears when coping document to another SC

On RootWeb of both site collections I have created same User field (owner). I mean same user field becuase I used same ID (GUID), name and everything. Then I add the field to a content Type and add ...
0
votes
0answers
103 views

Field display name / static name / title confusion

The msdn documentation for SPFieldCollection.Item[String] says Gets the field with the specified display name from the collection. In Microsoft C#, this property is an indexer for the ...
0
votes
0answers
109 views

EditForm - custom control and updating field values

I'm using a custom rendering template on a list's EditForm. I created a UserControl with a asp:GridView and I would like to use it to insert mulit lookup field values (the standard multi lookup field ...
0
votes
0answers
33 views

Comments fieldlink not visibile

Here my code to add a field link of comments field to a content type SPField field = site.RootWeb.Fields["Comments"] if (field != null) { SPFieldLink spFieldLink = new SPFieldLink(field); ...