0
votes
1answer
16 views

Feature Event Receiver not picking up latest code until second activation

I have a Feature with an event receiver (written in c#), which for the sake of brevity creates a list which is a data store for a form on a custom web part. I have ps1 scripts which retract and deploy ...
0
votes
0answers
506 views

C#: cannot get listitem field value but works fine in powershell?

back again with a strange issue. Using powershell I can get a handle on a SPListItem and do Item["My Field"] which prints its value. However, in a C# custm workflow activity, when I attempt to do ...
0
votes
2answers
2k views

Sharepoint 2007 Powershell: $item.update() gives error that file has been modified

I am trying to programmatically update some metadata for a sharepoint item using powershell. Here is my code: $web = getWebByURL("http://test-site/spadmin/") $itm = $web.lists["Documents"].items[0] ...
1
vote
1answer
359 views

Adding a content type to a list gives me a duplicate field error

I have the following code: list.ContentTypes.Add(contentType); It works on my dev environment, but on test fails with the following error: A duplicate field name "[GUID]" was found. I've had ...
0
votes
1answer
39 views

Number field on custom content type working inconsistently amongst items

In a document library, I've included a field of type 'Number' in my custom content type. At a particular point in my solution I increment this field by 1. On certain items it will work, on certain ...
2
votes
1answer
231 views

Can't find a site column that DOES apparently exist

Well I've deployed a site column from my xml definition and upto now it's been fine. I then checked my content type (after some unexpected errors) and it's removed itself from the content type and is ...
0
votes
1answer
68 views

Pro grammatically adding choice field with another field relation

sorry about the title am not sure how i should name it. I want to be able to create two columns for a list that have a division - subdivision relation. If in the first field if i choose People the ...
1
vote
1answer
155 views

Non-global fields for custom content types?

I've been tasked with creating a fairly complex system in sharepoint 2010. Coming from a background of from-scratch .NET applications, I'm used to defining tables with their own "local" columns. My ...
2
votes
1answer
224 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
2answers
2k views

Sharepoint External Data field with multiple values

I need to create a list column which contains external data (from BDC). The field has to contain multiple values. But I haven't found a way how to make a external-data-field take multiple values. ...
1
vote
1answer
866 views

Avoid metadata columns in SOAP response

I searched around the internet (and on this stackexchange site), but didnt find any answer. I wrote a small C# application that should retrieve some data via the SOAP webservice of a sharepoint ...
1
vote
1answer
262 views

Create a new column in a calendar programatically

When a new item is added to the event list, I would like to: Verify if the new column already exists If not create a new hyperlink column. I am not sure how to do this by code using SharePoint ...
7
votes
4answers
5k views

How to rename title column in Document Library using code?

Everybody loves renaming columns. The title column is a favorite of mine and I can't seem to rename it via code: SPList list = web.Lists.TryGetList("MyList"); Guid guid = new ...
1
vote
2answers
3k 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 ...
0
votes
1answer
401 views

infopath 2007 field count

Is there a menu option in InfoPath 2007 that would give me the total number of fields? The reason that I am doing this is because I have a form that I developed that cannot be uploaded to a ...