Questions tagged [spfield]
26 questions
0
votes
1 answer
Use the custom SPFieldType when adding new column
I would like to know how to use the custom SPFieldType (Existing on the Site) when adding new SPList column.
E.g.
[Normal way using the SPFieldType.Text field type]
list.Fields.Add("Location", SPFieldType.Text, true);
list.Update();
How about for…

fEi
- 3
- 2
0
votes
1 answer
SharePoint 2010 - Custom calculated column
In a document library I need a custom calculated column, because the default Excel formula don't provide the functionality I need.
I created a custom field inheriting from SPFieldText, that I then could customize at will. The question is: how is it…

Quiche31
- 119
- 10
0
votes
1 answer
SharePoint calculated field based on another hidden field
In a production deployment we have a calculated field which is composed of a formula that references two other hidden fields. This is simple concatenation with a little logic for determining…

Chris Ballance
- 33,810
- 26
- 104
- 151
0
votes
1 answer
Unable to add site column with jslink on SharePoint online with CSOM
I'm facing a weird issue today, we have a SharePoint provider hosted add-in which used to work properly for the last year and a half.
In that SPPH Add-In we use jslink on fields. When we try to add a new site column with a jslink property specified…

baywet
- 4,377
- 4
- 20
- 49
0
votes
0 answers
SPField.sortable returns actual value only after watching it in debug
Here is my method, that should return if field can be sorted:
public bool IsSortable(SPList list, string fieldName)
{
SPField field = list.Fields.GetFieldByInternalName(fieldName);
return…

ivanblin
- 120
- 10
0
votes
2 answers
Get a reference to current Listitem from within custom SPField
I've successfully created a custom field inheriting from SPFieldText and happily have complete control over rendering it on the input form as a control.
Problem:
I have a need to create a link to a popup with the ListId and ListitemID in the…

Nick Pearce
- 720
- 5
- 14
0
votes
1 answer
Non-empty fields are empty in word
I have created a multicolumn custom field and deployed it in SharePoint. To be able to use the field values from my custom field I also deployed an event receiver to copy the three values from my custom field to three separate regular text fields.…

Martin Larsson
- 720
- 2
- 10
- 21
0
votes
1 answer
What control from InfoPath 2007 maps as SPFieldLookUp or SPFieldLookUpCollection field?
Does anyone know what control from InfoPath 2007 maps as SPFieldLookUp or SPFieldLookUpCollection field in SharePoint?
Any idea is accepted.
Thnx.
Alexandr
0
votes
1 answer
Add 7 days to SPField.DateTime list field
I have a SharePoint list field called ArchiveDate.
In a C# function I'm looping through the list and have the item in question.
foreach (SPListItem fListItem in fList.Items)
{
foreach (SPField field in fList.Fields)
{
If…

Hell.Bent
- 1,667
- 9
- 38
- 73
0
votes
1 answer
Visualization SPmenuField in SPGridView
I have created SPGridView and added one SPMenuField as the first column and some BoundFields. Then I added MenuTemplate to the first column. But there are rectangles with white color border. I want to hide them. How can I do it ?
Here is the…

andDaviD
- 555
- 1
- 11
- 26
0
votes
2 answers
Problem adding field to a custom list type in SharePoint
I have defined a custom list template type for SharePoint. I install it using VSeWSS 1.3 and everything seems to behave correctly.
I have added a custom action which will add additional columns (SPFields) to the list. However, every time that code…

Philipp Schmid
- 5,778
- 5
- 44
- 66