spfield

Can I create my own formula for calculated field in Sharepoint 2010 using C#

非 Y 不嫁゛ 提交于 2019-12-12 15:59:48
问题 I want to create a programmatically calculated field for Sharepoint 2010 using Visual Studio 2010 in C# language. Is there a way to set a formula that will call to my own function and return a result back to the field? My scenario: let's say I want to create a field that always returned the sum between two other fields, but I don't want to use something like "=sum([filed1],[field2])". I want to call to function "calc2Fields()" and return a result. Is it possible? 回答1: No, it is not possible.

Programatically changing field order in Sharepoint 2007 list

北城以北 提交于 2019-12-02 10:53:04
问题 I'm adding in two new fields into an already existing Sharepoint list programmatically through a feature. The fields are being added successfully but I have been unable to adjust the column order. This task is done simply through the UI by going to List Settings and then Column Ordering, but I have been unable to achieve the task programmatically. Through some research I've seen that you can use the SPContentType of the form to change the ordering of the FieldLinks (as follows): SPList list =