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

learn more… | top users | synonyms

0
votes
0answers
18 views

How to create SP list programatically with localized titles and description

I'm trying to create a list programatically, but I need to have internal names of fields english and then change the field titles to localized ones. I've already tried many options, but still it does ...
0
votes
0answers
9 views

OnUpdated is not called on field when called with powershell

I have a custom type field, called MyCustomField, this field has some action to perform on the "OnUpdated". So when I go and update field in the UI throught the sharepoint site, and I jump into the ...
-1
votes
0answers
14 views

SPFieldLookUpValue Issue

I have a class in which there is a string KeyName variable: [Serializable] public abstract class BaseItem { public Nullable<int> ID { get; set; } public string Title { ...
0
votes
0answers
21 views

Creating a Calculated Date Field with embedded double quotes

I have been provisioning a load of Site Colummns with PowerShell . I am however, having a lot grief with a calculated field spField.Formula = "=TEXT(DATE([Created],"mmyyyy"))" spField.OutputType = ...
1
vote
0answers
28 views

Sharepoint 2010 Adjusting lists limits to recomendations

I have huge list, which has too much fields of same type (e.g., Date and Time fields limit in list is 8, of that type I have way more). If those those limits are exceeded, list item data will be saved ...
2
votes
2answers
49 views

How to programmatically get questions from a Survey

The question is quite simple: how can I get the list of questions from a Survey?
1
vote
0answers
38 views

The object has been updated by another user since it was last fetched

I am trying to update a site column on my content. When I save the changes, I get the error "The object has been updated by another user since it was last fetched." When I searched the issue, I found ...
0
votes
0answers
25 views

webprovisioned activatedfeature save conflict

I am having an issue when creating a WebProvisioned eventreceiver that activates a feature. However I am getting the "Save conflict - Your changes conflict with those made concurrently by another ...
0
votes
0answers
23 views

Execute Custom Code Or Code Behind on DataFormWebPart submit

I want to create custom form that submits entered data to a custom list and do some Extra Logic with the entered data. I also want to add some extra custom controls like Captcha etc. and be able to ...
2
votes
1answer
127 views

Modified vs Last_x0020_Modified

Which is the difference between the fields: Modified and Last_x0020_Modified in a SharePoint list item ?
2
votes
1answer
61 views

executeQueryAsync fail on Chrome

I am using SP.ClientContext (JS library) to update some item's fields. It is working fine on IE but on Chrome I get this error (displayed as alert): Request Failed, status code 0 text '' The ...
0
votes
2answers
45 views

How retrieve custom fields only when using SPListItemCollection?

Hi with following code I am retrieving a DataTable from a List: using (SPSite site = new SPSite("http:...")) { using(SPWeb web = site.OpenWeb()) { ...
3
votes
1answer
44 views

NewFormUrl stops user field from saving data

I have a custom content type inheriting from document set. The content type has various # of fields, including two user (e.g. Person or Group) fields. <Field ...
0
votes
1answer
58 views

get all possible value for lookup field

I've a site column define in choice and with two possibles values. FR NL I'd like to retrieve this two values. i've tested this to get the spfieldlookup but now i'm blocked to get all values: ...
0
votes
0answers
44 views

Title field is reset when I create a template (list, site, etc.)

In a rush, I changed the "Title" field within my custom list on the "item" content type. I had done this previously and clicking "title" on the content type had let me edit it at the list level. But ...
0
votes
2answers
47 views

powershell : create column in a group

Like described in the title, i'm writing a powershell script that create a content type and some column. The issue is that my columns are not in the specified group but in group "custom column" Here ...
1
vote
1answer
18 views

remove column from showing up in document properties

Which property in the object model do I use to tell an SPField not to show up in the document properties in Office integration? I tried ShowInEditForm but that didn't work. i want my Status column to ...
1
vote
2answers
99 views

New field is not accessible via Powershell

I have a list "Orders" in SP, where I have some data. The list definition and instance were previously created in Visual Studio and then successfully deployed. Today I've opened VS again and added ...
0
votes
0answers
21 views

Changing Field Type of a column

Is it possible to change Field Type of a column from TaxonomyField to Single Line of Text? It is a SharePoint online solution.
0
votes
2answers
54 views

Is there a way to find a unique internal name in a SPFieldCollection without a try catch?

The method SPFieldCollection.GetFieldByInternalName throws an error if it can't find the field with the given the internal name. Is there a way to determine if a field with an internal name exists ...
0
votes
0answers
74 views

Cannot Get custom properties in BaseFieldControl

A have a custom field for cross site lookup. At the creation, i have to save the webId the ListId and FieldId, right now everything works. But in the Field Class i cannot save this properties and at ...
1
vote
0answers
73 views

Field's TitleResource.SetValueForUICulture() does not work for the web's default language

I have a site column in my site collection whose title I change / translate with following PowerShell statement: $w = Get-SPWeb "URL to the site collection" $f = ...
0
votes
1answer
28 views

Retrieving columns created by user not built in columns

I want to retrieve columns in SPList which are created in the UI not the built in columns, I tried with the !field.FromBaseType but it's not working, I tried with the ...
0
votes
1answer
275 views

How can I set/select a field in the display form?

I'm in a SharePoint Display form and want to do some calculations on the client's side to populate a blank single line of text field. In an edit form, to set and select my value I have something ...
3
votes
3answers
652 views

How can I get the status of a Workflow in C#

I need to get the status of a Workflow programatically. Things i tried: item[workflowName] - gave me a "8" altough the workflow is completed (seems to always return 8, I don't know why) (was not ...
1
vote
1answer
398 views

How to get username through REST

I am currently working with a task where you have a SPList in one farm that holds some data that we need to aggregate into a view on another farm. Therefore I am working on a Visual Web Part that ...
4
votes
2answers
138 views

Get field values from SiteMapNode when getting Items from PortalSiteMapProvider

I'm trying to query my list using PortalSiteMapProvider. Here is my Code: public List<string> GetChachedItems(string webUrl, SPQuery query) { SiteMapNodeCollection nodeCollection = ...
2
votes
0answers
151 views

Custom field XSLT Rendering Issue in SP 2007, Works on 2010

I have created a VS 2008 WSP builder solution. IN that i have a custom field which has a XSL for list item view rendering using XSLT. This Solution does not render the image or hyperlink in SharePoint ...
1
vote
1answer
663 views

How to set the default value to sharepoint date time field programmatically?

I want to set the default value for the sharepoint's built-in field ArticleStartDate programmatically. But I am unable to do so. My code is as follows: SPField articleDate = ...
0
votes
1answer
195 views

Change Display name for a Site Column

Following is my script to change display name for a Site Column. However when I look at display name it still remaining unchanged(in Schema). It only updated title not display name. $w = Get-SPWeb ...
0
votes
0answers
99 views

Adding custom PublishingRollUpImage to pagelayout

Is it possible to create your own PublishingRollUpImage. Do I need to map Crawl properties with new Managed Properties to make the new one act like a PublishingRollUpImage when it comes to search ...
0
votes
1answer
203 views

adding link to SummaryLink field using Powershell not working

I have created a Summary Link field and added it to a page layout and created a page based on this page layout. I have tried to add links to the summary link using powershell but the links do not ...
1
vote
2answers
615 views

Updating 'Created By' field in SP2010 programatically

I'm trying to import data from an .xml file to a custom list in SP2010(created programmatically). I'm able to create and update all fields except 'Created By' as it says that "Cannot update read only ...
1
vote
0answers
50 views

Determining wether SPContentType and SPField are created by user or not

I am doing a migration tool (web part) that copies a site collection from point a to point b. Everything works so far, but currently only custom lists are copied to point b. Now I need a way to ...
0
votes
1answer
66 views

How to add clickable and filterable user field for users not in site

I have users in string like "Mikhail Pushin" and I want to add clickable links to users in a column of list item. Also I should be able to use filtering on this user column. Unfortunately, I can't do ...
0
votes
0answers
6 views

showing ModifiedBy field on Page Layout [duplicate]

I have created page layout using VS 2012 for publising pages. Ho do I add a field to the Page Layout which shows who has modified the page last time.
0
votes
1answer
184 views

error when saving custom user field in a custom Page Layout

I have created a custom user field as follows <Field ID="{9B49F1A5-7FFB-400B-9B0E-0FC4D6C1417C}" Name="AMtalatFieldEditors" DisplayName="My Editors" Type="UserMulti" Mult="TRUE" ...
1
vote
1answer
284 views

find out which page is not published in Pages list

I have a publishing site and about 20 pages in Pages list. When you check out one page the icon is changed and you detect that that page is checked out. However when there is a unpublished page it is ...
0
votes
1answer
140 views

Saving values of multiple TextFields in one SPField

I've written a custom SPField which extends SPFieldText. This Field allows the admin to create a column with a cloze-text, where a user has to fill the missing words. The admin marks the positions for ...
0
votes
0answers
30 views

Hide Field on Specific SPListItems

I am trying to figure out if I can hide/show a field for specific list items using the SP object model. I am aware that you can set the SPField.Hidden property however it appears as though this does ...
1
vote
2answers
55 views

Disappear background in HTML Field

I created HTML field in SharePoint 2010 <Field ID="{3E83492C-0420-473E-AB65-E4355535AFD0}" Name="MyField" StaticName="MyField" DisplayName="My Field" Type="HTML" Required="FALSE" RichText="TRUE" ...
0
votes
1answer
100 views

adding alert on a Date Field

I have a custom list containing Expire date field. I would like to get an alert (email) 30 days before the expire date for all items in the list. what is the best solution for that?
0
votes
2answers
729 views

Which field type can I use for more than 255 characters?

I try to create a new field programmatically. See code below. This type of field has a maximum of 255 characters. I would like to have more characters, like the page-content field. Which type do I ...
0
votes
2answers
202 views

Adding SPFieldLookup to specific content types in Custom List

I have a custom list that contains a number of custom content types. When a web is provisioned this custom list is provisioned. In addition to custom list is an Asset Library which is will serve ...
1
vote
2answers
618 views

Field level permission development

I am aware that there already are some questions regarding on how to implement field level permissions customization in SharePoint, such as: SP 2010: column permission Permissions for List or ...
1
vote
1answer
325 views

Copy list item field value to newly created custom column

I have the necessity to switch from using a default field to using a custom one in a number of list. I have also to "copy" the value contained in the old to-be-deleted column to the new created one. ...
0
votes
1answer
195 views

How can I make sure that if linebreaks is inserted inside a multiline textbox it gets displayed like it

I have a field that looks like this in my schema: <Field ID="{7662cd2c-f069-4dba-9e35-082cf976e170}" Type="Note" RestrictedMode="TRUE" NumLines="15" Name="Body" ...
1
vote
0answers
87 views

JavaScript function in URL field value

Is it possible to set the value for the URL field so that when clicked it runs a JavaScript function? I have created a field which stores links to files in SharePoint, but when clicked, the file is ...
0
votes
1answer
156 views

Editing SPFieldMultiColumn and saving updated value

I can get a reference to my SPFieldMultiColumn var documentLinkFieldValue = listItems[i]["DocumentLink"] as SPFieldMultiColumnValue; var oField = listItems[i].Fields["Document Link"] as ...
1
vote
0answers
50 views

Is it actually possible to instantiate SPField?

I want to create a custom List programmatically from scratch: First I add: Guid listID = web.Lists.Add(title, description, SPListTemplateType.GenericList); list = web.Lists[listID]; Then I want to ...