Показаны сообщения с ярлыком SharePoint. Показать все сообщения
Показаны сообщения с ярлыком SharePoint. Показать все сообщения

вторник, 14 ноября 2017 г.

Установка видимости полей списка SharePoint online Chrome dev tools (F12) и JavaScript


Часто возникает необходимость установить свойства видимости полей списка.
Для SharePoint on-premise можно использовать SharePoint manager.
Для SharePoint online можно использовать Chrome dev tools (F12) и JavaScript




  1. function setFieldVisibility(listTitle,fieldName,properties,success,failure)
  2. {
  3.      var ctx = SP.ClientContext.get_current();
  4.      var web = ctx.get_web();
  5.      var list = web.get_lists().getByTitle(listTitle);
  6.      var field = list.get_fields().getByTitle(fieldName);
  7.      field.setShowInDisplayForm(properties.ShowInDisplayForm);
  8.      field.setShowInNewForm(properties.ShowInNewForm);
  9.      field.setShowInEditForm(properties.ShowInEditForm);
  10.      field.set_hidden(properties.Hidden);
  11.      field.update();
  12.      ctx.executeQueryAsync(success,failure);
  13. }
  14.        
  15. var listTitle = 'Custom List';
  16. var fieldName = 'Title';
  17. var properties = {
  18.       'ShowInDisplayForm': false,
  19.       'ShowInNewForm': false,
  20.       'ShowInEditForm': false,
  21.       'Hidden': true
  22. };
  23. setFieldVisibility(listTitle,fieldName,properties,
  24.    function () {
  25.       console.log("Field visibility settings has been changed");
  26.    },
  27.    function(sender,args){
  28.       console.log(args.get_message());
  29.    }
  30. );

воскресенье, 13 ноября 2016 г.

SharePoint диагностика: включаем подробный лог



Зайти на сервер SharePoint  и запустить SharePoint PowerShell как Администратор, потом вы полните следующие шаги.
- Создайте новый файл с ULS логами:

New-splogfile

- Для изменения уровня трассировки до Verbose нужно выполнить команду:

Set-sploglevel –traceseverity Verbose
$starttime=get-date
...

Выполняем действия которые нужно залогировать

...
$endtime=get-date
Clear-sploglevel

- Обьединяем логи:

Merge-splogfile –path “c:\merged.log” –overwrite –starttime $starttime –endtime $endtime

вторник, 5 мая 2015 г.

Ссылка на экспорт списка в Excel

В списках есть удобная функция экспорта данных в файл Excel. Кнопка для экспорта расположена в риббоне на вкладке ( список -> экспорт в excel  ).

Чтобы реализовать такой же функционал на своей странице в кнопке или ссылке можно использовать ссылку специального вида.

Узнать GUID списка и представления можно выполнив экспорт через кнопку в риббоне. Затем в Excel открыть, далее ( данные -> подключения -> свойства -> текст команды ).
Или можно узнать через SharePoint manager.

Получится ссылка такого вида.

site_url/_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&List=F412F320-2E05-4E27-98B7-4E01282FF247&View=1E79350F-7CB6-416D-AB59-4271F5150F84&CacheControl=1

понедельник, 30 сентября 2013 г.

Фильтрация поля типа lookup в стандартных формах SharePoint

Для фильтрации поля типа выпадающий список в стандартных формах, существует множество решений, spservices, filtered lookup на codeplex. Или фильтрация с помощью JQuery , но есть еще один простой способ.
Нужно в списке из которого берется подстановка сделать вычисляемое поле, используя конструкцию ЕСЛИ, и при невыполнение условия брать пустое значение. В списке где нужно поле подстановки нужно выбрать это поле. Пустые значения не попадут в выпадающий список значений.

=ЕСЛИ([Порядок отображения]<3;[Фамилия Имя]&" ("&Должность&")";"")

понедельник, 19 августа 2013 г.

Полезные ссылки по SharePoint CSR (JSLink)

Введение в CSR
JS Link for SharePoint 2013 Web Parts–A Quick Functional Primer | idubbs.com
Uploading JavaScript (JS Files) as Javascript Display Template in SharePoint 2013
JSLink - Custom JS Rendering in SharePoint 2013 – CodeProject
Chris O'Brien: Using JSLink to change the UI of a SharePoint list/view
Create a "% Complete" Progress Bar with JS Link in SharePoint 2013 - E. Struyf's Blog - E. Struyf's Blog
Cas van Iersel » JSLink with Paging for Rendering List Views
Инструкция. Настройка представления списка в приложениях для SharePoint с использованием способа отображения на стороне клиента
Customize List Form Fields in Display Form (DispForm.aspx) using JS Link in SharePoint 2013
AnnouncementsCSR.js
Introduction to Client-Side Rendering in SharePoint 2013\
office 365 - Customing the newform.aspx of a list using jslink in SharePoint 2013 - SharePoint Stack Exchange
Custom Field Rendering with JSLink | Lester Sconyers Jr
Custom Field Types in SharePoint 2013 Apps « Aptillon Blog
http://code.msdn.microsoft.com/office/SharePoint-2013-Customize-0663543f/sourcecode?fileId=76614&pathId=1620234563

четверг, 15 августа 2013 г.

Добавление данных в ListInstance

Часто в процессе отладки, и не только отладки, требуется заполнять списки тестовыми данными. Это не обязательно делать вручную, можно прописать их в файле Elements.xml (относящийся к ListInstance) в теге <Data></Data>.
 
 
<ListInstance Title="Список" OnQuickLaunch="TRUE" TemplateType="12001" Url="Lists/List" Description="Список ">
  <Data>
    <Rows>
      <Row>
        <Field Name="Title">Действия</Field>
        <Field Name="Section">Общие вопросы</Field>
      </Row>
      <Row>
        <Field Name="Title">Пыльные системные блоки</Field>
        <Field Name="Section">Техническое состояние офиса</Field>
      </Row>
    </Rows>
  </Data>
</ListInstance>

воскресенье, 16 июня 2013 г.

Автоматическая установка размера SharePoint App Part

Задать размер App Part  можно в теге.
<ClientWebPart Name="" Title="" Description="" DefaultWidth="300" DefaultHeight="200">


Но для контента чей размер заранее неизвестен нужно задать размер фрейма в котором App Part   размещается.

Чтобы установить размер фрейма в котором размещается App Part  можно использовать функцию ниже.

 



   1: //Задание размера фрэйма
   2: function resizeIFrame() {
   3:     if (window.parent != null) {
   4:  
   5:         var senderId;
   6:         var params = document.URL.split("?")[1].split("&");
   7:         for (var i = 0; i < params.length; i = i + 1) {
   8:             var param = params[i].split("=");
   9:             if (param[0].toLowerCase() == "senderid")
  10:                 senderId = decodeURIComponent(param[1]);
  11:         }
  12:  
  13:         var height = $('html').height();
  14:  
  15:         if ($('body').height() > height) {// для совместимости хром ИЕ
  16:             height = $('body').height();
  17:         }
  18:  
  19:         var width = $('html').width();
  20:         var message = "<Message senderId=" + senderId + " >" + "resize(" + width + "," + height + ")</Message>";
  21:         window.parent.postMessage(message, document.referrer);
  22:  
  23:     }
  24: }

четверг, 16 мая 2013 г.

Чтение поля картинка SharePoint JS Client Object Model

Чтение обычного текстового поля с помощью JS COM происходит так:
   1: var fotoUrl = item.get_item(fotoUrlField);

Но для чтения поля типа URL или Картинка значения получаются с помощью дополнительных методов
get_url() и get_description()

   1: var fotoUrl = item.get_item(fotoUrlField).get_url();   

суббота, 20 апреля 2013 г.

Проблема при открытии страницы центра администрирования SharePoint 2013

Если возникает проблема при открытии страницы центра администрирования SharePoint 2013.
Возможное решение запустить браузер под администратором.

понедельник, 18 марта 2013 г.

PowerGui и .NET 4

Проблема:

При попытки запустить скрипт использующий SharePoint команды в PowerGui  пишет ошибку.

PowerGui : Microsoft SharePoint не поддерживается версией 4.0.30319.296 среды выполнения Microsoft .NET.

Решение:

Отредактируйте файл конфигурации ( C:\Program Files (x86)\PowerGUI\ScriptEditor.exe.config )
<configuration>
<startup useLegacyV2RuntimeActivationPolicy=”true”>
<supportedRuntime version=”v4.0″ sku=”.NETFramework,Version=v4.0″ />
<supportedRuntime version=”v2.0.50727″ />
</startup>

Заменить на
<configuration>
<startup useLegacyV2RuntimeActivationPolicy=”true”>
<supportedRuntime version=”v2.0.50727″ />
</startup> 

среда, 13 марта 2013 г.

SharePoint silverlight подборка

http://sharepointempower.com/2012/11/silverlight-in-sharepoint-the-silverlight-client-object-model/

http://gandjustas.blogspot.de/2012/03/silverlight-sharepoint-2.html

http://ranaictiu-technicalblog.blogspot.ru/2010/06/sharepoint-2010-attach-files-to.html

http://www.silverlightshow.net/items/Silverlight-and-Sharepoint-2010-a-step-forward-how-to-build-a-small-Silverlight-4-utility-to-upload-files-in-a-List-or-Library-of-Sharepoint.aspx

http://msmvps.com/blogs/sundar_narasiman/archive/2011/11/20/programmatically-add-attachments-to-custom-list-using-sharepoint-2010-client-object-model.aspx

http://social.msdn.microsoft.com/Forums/pl/sharepoint2010programming/thread/1cbbba15-3607-42e5-800a-e46ee0bfa6f0

суббота, 26 января 2013 г.

Эмуляторы SharePoint для тестирования

Вышел набор эмуляторов для тестирования SharePoint.
Нужно попробовать.

Группа разработчиков Visual Studio с гордостью объявляет о выпуске эмуляторов SharePoint для Visual Studio 2012. Модульное тестирование программного кода для SharePoint –– довольно трудная задача. В идеальном случае тестируемый код следует изолировать от среды SharePoint, например, с помощью платформы изоляции Microsoft Fakes. К сожалению, отзывы специалистов, опробовавших этот подход на практике, сводятся к следующему: создание и поддержка макетов и тестовых заполнителей для среды SharePoint отнимают много времени и сил. К счастью, группа разработчиков эмуляторов SharePoint взялась за решение этой непростой задачи. Эмуляторы SharePoint –– это система макетов на основе оболочек совместимости, реализующих основные режимы работы объектной модели сервера SharePoint 2010.

http://blogs.msdn.com/b/developer-tools-rus/archive/2013/01/16/sharepoint.aspx

среда, 23 января 2013 г.

Хранение настроек в SharePoint


http://www.wictorwilen.se/Post/Six-ways-to-store-settings-in-SharePoint.aspx
http://blogs.technet.com/b/msjimblog/archive/2012/07/31/where-to-store-your-sql-connection-strings-in-sharepoint.aspx

среда, 10 октября 2012 г.

SharePoint Data View / Data Form: ServerVariables

http://blogs.msdn.com/b/spdsupport/archive/2008/07/25/data-view-data-form-parameters-you-don-t-know-about.aspx

VariableDescription
ALL_HTTPReturns all HTTP headers sent by the client. Always prefixed with HTTP_ and capitalized
ALL_RAWReturns all headers in raw form
APPL_MD_PATHReturns the meta base path for the application for the ISAPI DLL
APPL_PHYSICAL_PATHReturns the physical path corresponding to the meta base path
AUTH_PASSWORDReturns the value entered in the client’s authentication dialog
AUTH_TYPEThe authentication method that the server uses to validate users
AUTH_USERReturns the raw authenticated user name
CERT_COOKIEReturns the unique ID for client certificate as a string
CERT_FLAGSbit0 is set to 1 if the client certificate is present and bit1 is set to 1 if the cCertification authority of the client certificate is not valid
CERT_ISSUERReturns the issuer field of the client certificate
CERT_KEYSIZEReturns the number of bits in Secure Sockets Layer connection key size
CERT_SECRETKEYSIZEReturns the number of bits in server certificate private key
CERT_SERIALNUMBERReturns the serial number field of the client certificate
CERT_SERVER_ISSUERReturns the issuer field of the server certificate
CERT_SERVER_SUBJECTReturns the subject field of the server certificate
CERT_SUBJECTReturns the subject field of the client certificate
CONTENT_LENGTHReturns the length of the content as sent by the client
CONTENT_TYPEReturns the data type of the content
GATEWAY_INTERFACEReturns the revision of the CGI specification used by the server
HTTP_<HeaderName>Returns the value stored in the header HeaderName
HTTP_ACCEPTReturns the value of the Accept header
HTTP_ACCEPT_LANGUAGEReturns a string describing the language to use for displaying content
HTTP_COOKIEReturns the cookie string included with the request
HTTP_REFERERReturns a string containing the URL of the page that referred the request to the current page using an <a> tag. If the page is redirected, HTTP_REFERER is empty
HTTP_USER_AGENTReturns a string describing the browser that sent the request
HTTPSReturns ON if the request came in through secure channel or OFF if the request came in through a non-secure channel
HTTPS_KEYSIZEReturns the number of bits in Secure Sockets Layer connection key size
HTTPS_SECRETKEYSIZEReturns the number of bits in server certificate private key
HTTPS_SERVER_ISSUERReturns the issuer field of the server certificate
HTTPS_SERVER_SUBJECTReturns the subject field of the server certificate
INSTANCE_IDThe ID for the IIS instance in text format
INSTANCE_META_PATHThe meta base path for the instance of IIS that responds to the request
LOCAL_ADDRReturns the server address on which the request came in
LOGON_USERReturns the Windows account that the user is logged into
PATH_INFOReturns extra path information as given by the client
PATH_TRANSLATEDA translated version of PATH_INFO that takes the path and performs any necessary virtual-to-physical mapping
QUERY_STRINGReturns the query information stored in the string following the question mark (?) in the HTTP request
REMOTE_ADDRReturns the IP address of the remote host making the request
REMOTE_HOSTReturns the name of the host making the request
REMOTE_USERReturns an unmapped user-name string sent in by the user
REQUEST_METHODReturns the method used to make the request
SCRIPT_NAMEReturns a virtual path to the script being executed
SERVER_NAMEReturns the server’s host name, DNS alias, or IP address as it would appear in self-referencing URLs
SERVER_PORTReturns the port number to which the request was sent
SERVER_PORT_SECUREReturns a string that contains 0 or 1. If the request is being handled on the secure port, it will be 1. Otherwise, it will be 0
SERVER_PROTOCOLReturns the name and revision of the request information protocol
SERVER_SOFTWAREReturns the name and version of the server software that answers the request and runs the gateway
URLReturns the base portion of the URL

Source or read more about it on MSDN.
Note: A fun trick to see what the server variable values actually are is to output them into your data view:<xsl:value-of select=”$MyServerParam” />
Now whenever you change Server Variable Name (ex: LOGON_USER to AUTH_TYPE) the value will be reflected in your data view.

понедельник, 24 сентября 2012 г.

Формулы вычисляемых столбцов SharePoint

Оригинал здесь
для русской версии лучше смотреть тут http://office.microsoft.com/ru-ru/sharepoint-server-help/HA010379915.aspx?CTT=1

TypeExplanationOutput
NUMBERS
ProfitShows the percentage profit on a sale (tick “Show as percentage”)10%
([Price]-[Cost])/[Cost]
MarkupGives a price from a cost and a percentage markup$120.00
[Cost]*(1+[Markup])
CommissionGives the commission due on a sale (based on a commission %)$25.00
[Sale]*[Commission]
FormattingFormatted with $ curency, comma thousand seperator and 2 decimal places$1234.56
TEXT([Sales],”$#,###.00″);
Negative numbers in brackets(95.99)
TEXT([Sales],”#,###.00;(#,###.00)”);
OPERATORS
&Concatanate (put two text values or fields together)
4 & “3″
43
^Power (e.g. [Field]^2 = Squared)
4^3
64
/, +, -, *Divide, Add, Subtract, Multiply
RELATIONAL OPERATORS
= (Equal to)> (Greater than)>= (Greater than or equal to)
<> Not equal to)< (Less than)<= (Less than or equal to)
DATE AND TIME
Time onlyTEXT([DateTimeField],”hh:mm:ss”)01:21:51
WeekdayTEXT([DateField],”dddd”)Wednesday
TEXT([DateField],”ddd”)Wed
MonthTEXT([DateField],”mmmm”)October
TEXT([DateField],”mmm”)Oct
YearTEXT([DateField],”yyyy”)2012
TEXT([DateField],”yy”)12
CombinationsTEXT([DateField],”mmmm dd, yyyy”October 17, 2012
Fiscal YearShows which fiscal year a date falls in (1st October)
FY & IF(DATE(YEAR([Date]), 10, 1)>[Date], YEAR([Date]), YEAR([Date])+1)FY 2012
SeasonShows which season a date falls in. Takes into account one month offset from quarter.
CHOOSE(INT((MOD(MONTH(When)+1,12)/4))+
1,”Winter”,”Spring”,”Summer”,”Autumn”)
Spring
QuarterShows which quarter a date falls in
Q & INT((MONTH([Date])-1)/3)+1Q1
Q & INT((MONTH([Date])-1)/3)+1 & “-” & YEAR([Date])Q1-2012
Week NumberShows the week number (US style)
ROUNDDOWN(([Date]-DATE(YEAR([Date]),1,1)+
WEEKDAY(DATE(YEAR([Date]),1,1))-WEEKDAY([Date])+1)/7,0)+1
5
Week CommencingShows the date of the first day of the week (useful for grouping by week)
[Date]-WEEKDAY([Date])+13/4/2012
Day/NightShows whether time is day or night
IF(AND(HOUR([Time])>6,HOUR([Time])<18),”Day”,”Night”)Day
AM/PMShows whether a time is AM or PM
IF(HOUR([Time]) < 12,”AM”,”PM”)PM
OTHER
ModifiedShows whether an item has been modified since creation
IF([Modified] > [Created], “Changed”, “Original”)Changed
Marks out of tenGives general comments on a mark out of ten
CHOOSE(INT([Marks]/3),”Bad”,”Poor”,”Good”,”Great”)Great
Random StringChooses a string at random, based on the time (in seconds)
CHOOSE(MOD(TEXT(Created,”s”),2)+1,”String A”,”String B”, “String C”)String C
TEXT
TEXT (Value, Format)Converts Value to a Text value, using Format2012|04
TEXT([Created], “yyyy|mm”)
REPT (Text, Number)Repeats Text the given Number of timesHelloHelloHello
REPT(“Hello”,3)
FIXED (Num, Dec, NoCommas)Returns Number with the given number of decimals as text (commas optional)
FIXED(2044.23,1,TRUE)2044.23
FIXED(2044.23,0,FALSE)2,044
LEN (Text)The length of Text4
LEN(“Hola”)
LEFT (Text, Number)Return X characters from the left
LEFT(“The Quick Brown Fox”, 5)The Q
RIGHT (Text, Number)Return X characters from the right
RIGHT(“The Quick Brown Fox”, 5)n Fox
MID (Text, Num1, Num2)Returns Number2 characters from the middle of Text, starting at Number1
MID(“The Quick Brown Fox”, 4, 15)Quick Brown
SEARCH (Text1, Text2, Num)Returns the index of Text1 within Text2,starting the search at index Number
SEARCH(“Banana”, “Banana Banana”, 4)8
LOWER (Text)Text in lower case
LOWER(“Hello”)hello
UPPER (Text)Text in upper case
UPPER(“Hello”)HELLO
PROPER (Text)Capitalize first letter of each word
PROPER(“good morning”)Good Morning
TRIM (Text)Removes spaces from the start and end
TRIM(” Hello “)Hello
CLEAN (Text)Returns Text without non-printable characters added by clipboard or similar
CLEAN(“String1? String2??”)String1 String2
REPLACE (T1, N1, N2, T2)Replaces Number2 characters starting at Number1 from Text1 with Text2
REPLACE(“Hello”,2,4,”i”)Hi
CONCATENATE (T1, T2, …)Combines the string values together into one string
CONCATENATE(“A”,” Fine “,”Morning”)A Fine Morning
DOLLAR (Number, Decimals)Converts number to currency text, with the given number of decimals
DOLLAR(11.267,2)$11.27
EXACT (Text1, Text2)Checks if two text values are identical, returns boolean
EXACT(“Hello”,”hello”)False
MATH
SUM (Number1, Number2, …)Returns the total of all Numbers and number-like values
SUM(0, 2, “26″, 100, TRUE)128
MINA (Number1, Number2, …)Gets the smallest of the numbers, including non-number values
MINA(0, 2, “26″, 100, “MyString”, TRUE)0
MIN (Number1, Number2, …)Gets the smallest of the numbers, including Text fields containing numbers
MIN(0, 1, “26″, 100)0
MAXA (Number1, Number2, …)Gets the largest of the numbers, including on-number values
MAXA(0, 2, “26″, 100, “MyString”, TRUE)100
COUNTA (Value1, Value2, …)Counts all values, including empty text (“”), ignoring empty columns
COUNTA(5, 0,TRUE)3
COUNT (Num1, Num2, …)Averages the Numbers, ignoring non-Number values
COUNT(5, 0,TRUE)2
AVERAGEA (Num1, Num2, …)Averages the Numbers, non-Number values are interpreted
AVERAGEA(5,0, TRUE)2
AVERAGE (Num1, Num2, …)Averages the Numbers, ignoring non-Number values
AVERAGE(10, 0, “”, “0″)5
VALUE (Text)Converts Text to a Number, Date or Time, according to its format
VALUE(“00:05″)00:05
TRUNC (Number)Returns Number with decimals removed
TRUNC(14.999999)14
SQRT (Number)Returns the square root
SQRT(25)5
SIGN (Number)Returns -1 for negative numbers, 1 for positive, and 0 when 0
SIGN(-5.2786)-1
ROUNDUP (Num1, Num2)Rounds Number1 to Number2 decimals, always rounding up
ROUNDUP(22.0001, 0)23
ROUNDDOWN (Num1, Num2)Rounds Number1 to Number2 decimals, always rounding down
ROUNDDOWN(122.492, 1)122.4
ROUND (Number1, Number2)Rounds Number1 to Number2 decimals
ROUND(221.298, 1)221.6
PI ()Returns Pi to 15 decimal places
PI()3.14159265358979
ODD (Number)Rounds Number up to the nearest odd number
ODD(1.5)3
MOD (Number1, Number2)Returns the remainder of Number1 divided by Number2
MOD(5, 4)1
EVEN (Number)Rounds Number up to the nearest even number
EVEN(0.5)2
ABS (Number)Makes a number positive if it is negative
ABS(-1)1
LOGICAL
AND (Condition1, Condition2)Returns True if both conditions are True
AND(4>=3,3>2)True
OR (Condition1, Condition2)Returns True if either condition is True
OR(4>=3, 3<2)True
NOT (Condition1)Returns the opposite to the condition
NOT(1=1)False
CHOOSE(Num, Val1, Val2, …)Returns the value corresponding to the number. Up to 29 values can be used.
CHOOSE(2, “A”, “B”, “C”, “D”)B
IF(Condition, Val1, Val2)If Conditon is true, return Value1, otherwise return Value2
IF([Modified] > [Created], “Changed”, Original)Changed
ERROR & TYPE CHECKING
ISTEXT (Value)Returns True if Value is Text
ISTEXT(99)False
ISNUMBER (Value)Returns True if Value is a Number, oherwise False
ISNUMBER(99) {True
ISNONTEXT (Value)Returns True if Value is not text or is empty, False otherwise
ISNONTEXT(99)True
ISNA (Value)Returns True if Value returns error #N/A, otherwise False
ISERR(#N/A)True
ISLOGICAL (Value)Returns True if Value returns a logical value (True or False), False otherwise
ISLOGICAL(FALSE)True
ISERR (Value)Returns True if Value returns an error (except #N/A), otherwise False
ISERR(#REF!)True
ISBLANK (Value)Returns True if Value is empty, otherwise False
IF(ISBLANK([Attendee])Needs Attendee
FORBIDDEN COLUMNS
Lookup columnsNot supported
[ID]Only works on column addition/update, will not work from then on
[Today] and [Me]Only available in default columns

понедельник, 10 сентября 2012 г.

Типы полей SharePoint


Список


Microsoft.SharePoint.SPField
 Microsoft.SharePoint.SPFieldAttachments
 Microsoft.SharePoint.SPFieldBoolean
 Microsoft.SharePoint.SPFieldCalculated
 Microsoft.SharePoint.SPFieldComputed
 Microsoft.SharePoint.SPFieldCrossProjectLink
 Microsoft.SharePoint.SPFieldDateTime
 Microsoft.SharePoint.SPFieldFile
 Microsoft.SharePoint.SPFieldGuid
 Microsoft.SharePoint.SPFieldLookup
      Microsoft.SharePoint.Applications.GroupBoard.SPFieldFacilities
      Microsoft.SharePoint.SPFieldUser
 Microsoft.SharePoint.SPFieldMultiChoice
 Microsoft.SharePoint.SPFieldMultiColumn
 Microsoft.SharePoint.SPFieldMultiLineText
 Microsoft.SharePoint.SPFieldNumber
 Microsoft.SharePoint.SPFieldPageSeparator
 Microsoft.SharePoint.SPFieldRecurrence
 Microsoft.SharePoint.SPFieldText
 Microsoft.SharePoint.SPFieldUrl


NameFormat
AttachmentsSystem.Boolean
BooleanSystem.Boolean
CalculatedN/A
ChoiceSystem.String
ComputedN/A
CounterSystem.Int32
CrossProjectLinkSystem.Boolean
CurrencySystem.Double
DateTimeSystem.DateTime
GridChoiceSystem.String
GuidSystem.Guid
IntegerSystem.Int32
LookupSystem.String
MaxItemsSystem.Int32
ModStatSystem.Int32
MultiChoiceSystem.String
NoteSystem.String
NumberSystem.Double
RecurrenceSystem.Boolean
TextSystem.String
ThreadingSystem.String
URLSystem.String, System.String
UserSystem.String
NoteSystem.String



Поле "Пользователь или группа"

Формат
Console.WriteLine(item["Кому назначено"].ToString());
1;#WIN-MAHUIK21MH6\администратор

Запись
emploer  - LinqToSharePoint
taslItem["Кому назначено"] = emploer.DomainLoginИдентификатор ?? null;

Можно записать просто числовой ID юзера
http://msdn.microsoft.com/en-us/library/ms415089(v=office.14).aspx
Работа с полями SPFieldUser, SPFieldUrl and SPFieldLookup используя extension methods