DataZoom
$SPFields Context Item
 Send Feedback
Classes > $SPFields Context Item

Glossary Item Box

The $SPFields context item is used to interact with SharePoint Lookup, User, URL, Multi-Choice, Multi-Column, and Rating Scale field data. 

$SPUtility Operations

Operation Description
GetDistinctFieldValues

Method used to get a list of distinct field values in a list.

Parameters

  • SPList : list
  • string : internalFieldName

Output

  • System.String[]
GetLookupValue

Method used to get a multi-column field value.

Parameters

  • string : fieldValue

Output

  • Microsoft.SharePoint.SPFieldLookupValue
GetLookupValueCollection

Method used to get a lookup collection field value.

Parameters

  • string : fieldValue

Output

  • Microsoft.SharePoint.SPFieldLookupValueCollection
GetUrlValue

Method used to get a URL field value.

Parameters

  • string : fieldValue

Output

  • Microsoft.SharePoint.SPFieldUrlValue
GetUserValue

Method used to get a user field value.

Parameters

  • Microsoft.SharePoint.SPWeb : web
  • string : fieldValue

Output

  • Microsoft.SharePoint.SPFieldUserValue
GetUserValueCollection

Method used to get a multi-user field value.

Parameters

  • Microsoft.SharePoint.SPWeb : web
  • string : fieldValue

Output

  • Microsoft.SharePoint.SPFieldUserValueCollection
GetMultiChoiceValue

Method used to get a multi-choice field value.

Parameters

  • string : fieldValue

Output

  • Microsoft.SharePoint.SPFieldMultiChoiceValue
GetRatingScaleValue

Method used to get a rating scale field value.

Parameters

  • string : fieldValue

Output

  • Microsoft.SharePoint.SPFieldRatingScaleValue
GetMultiColumnValue

Method used to get a multi-column field value.

Parameters

  • string : fieldValue

Output

  • Microsoft.SharePoint.SPFieldMultiColumnValue

 

View the Read Complex Field Data page for sample usage.
©2010 SharePoint Solutions. All Rights Reserved.