Tagged Questions
0
votes
1answer
190 views
Sharepoint how to add field to list where field with such name already exists?
I have sharepoint list 'Events' with field Location.
I am trying to add from web existing field with same internal name from other package.
var fields = contentType.ParentWeb.Fields;
SPField ...
0
votes
1answer
214 views
SharePoint OM wont' read item property
I have a list item with one field Classes which is a multiple choice lookup. I want to implement an ASPX page which contains a ListBox which is filled with values from the Classes field. The following ...
2
votes
1answer
143 views
why updating formula, title in large list/library programmatically takes really long time
I have to update formula of calculated field. I wrote method for that, it is working fine and is updating formula as well. But it takes really long time to update formula in large library ie library ...
2
votes
1answer
243 views
Have different column title in Edit View form and view itself
I'm using C# code to automatically create a read-only Note column that is a truncated version of an existing Note column.
list.Fields.Add(field.Title + " (truncated)", SPFieldType.Note, false);
At ...
3
votes
3answers
261 views
The CHOICE element contains the value within its body. What gives?
As stated on MSDN, the CHOICE element contains the value within its body.
That means that in a field, if I have:
<CHOICES>
<CHOICE>foo</CHOICE>
...
5
votes
2answers
6k views
How do I convert SPUser to SPFieldUser?
I have a field in a list that accepts an SPFieldUser object. I have an SPUser object that I would like to populate that field with, but I cannot implicitly convert from one to the other.
How would I ...
1
vote
2answers
2k views
How to have a column contain multiple users
I have a list with various columns. One of those columns is to store users. However, when I use the code
configurationListFields.Add("Limit_Access_To", SPFieldType.User);
I am only allowed to ...